1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/accessible/public/nsIAccessibleValue.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,35 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 1.5 + * 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#include "nsISupports.idl" 1.11 + 1.12 +[scriptable, uuid(42a1e1dc-58cf-419d-bff0-ed3314c70016)] 1.13 +interface nsIAccessibleValue : nsISupports 1.14 +{ 1.15 + readonly attribute double maximumValue; 1.16 + readonly attribute double minimumValue; 1.17 + attribute double currentValue; 1.18 + readonly attribute double minimumIncrement; 1.19 +}; 1.20 + 1.21 +/* 1.22 + Assumptions: 1.23 + 1.24 + The attribute currentValue will throw an exception 1.25 + if it cannot be set i.e. if the value is not a 1.26 + member of the interval. 1.27 + This may not be the 'desired' behaviour given gObject 1.28 + equivalent. Thus it could be changed to be: 1.29 + 1.30 + readonly attribute double currentValue; 1.31 + boolean setCurrentValue (double long value); 1.32 + 1.33 + GValue can represent many basic types. 1.34 + Since this interface is designed to represent 1.35 + an interval and a member of double should 1.36 + cover the cases of char int and float. 1.37 + 1.38 +*/