nsIAccessibleValue.idl 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2. *
  3. * This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  6. #include "nsISupports.idl"
  7. [scriptable, builtinclass, uuid(42a1e1dc-58cf-419d-bff0-ed3314c70016)]
  8. interface nsIAccessibleValue : nsISupports
  9. {
  10. readonly attribute double maximumValue;
  11. readonly attribute double minimumValue;
  12. attribute double currentValue;
  13. readonly attribute double minimumIncrement;
  14. };
  15. /*
  16. Assumptions:
  17. The attribute currentValue will throw an exception
  18. if it cannot be set i.e. if the value is not a
  19. member of the interval.
  20. This may not be the 'desired' behaviour given gObject
  21. equivalent. Thus it could be changed to be:
  22. readonly attribute double currentValue;
  23. boolean setCurrentValue (double long value);
  24. GValue can represent many basic types.
  25. Since this interface is designed to represent
  26. an interval and a member of double should
  27. cover the cases of char int and float.
  28. */