michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: [scriptable, uuid(42a1e1dc-58cf-419d-bff0-ed3314c70016)] michael@0: interface nsIAccessibleValue : nsISupports michael@0: { michael@0: readonly attribute double maximumValue; michael@0: readonly attribute double minimumValue; michael@0: attribute double currentValue; michael@0: readonly attribute double minimumIncrement; michael@0: }; michael@0: michael@0: /* michael@0: Assumptions: michael@0: michael@0: The attribute currentValue will throw an exception michael@0: if it cannot be set i.e. if the value is not a michael@0: member of the interval. michael@0: This may not be the 'desired' behaviour given gObject michael@0: equivalent. Thus it could be changed to be: michael@0: michael@0: readonly attribute double currentValue; michael@0: boolean setCurrentValue (double long value); michael@0: michael@0: GValue can represent many basic types. michael@0: Since this interface is designed to represent michael@0: an interval and a member of double should michael@0: cover the cases of char int and float. michael@0: michael@0: */