xpcAccessibleValue.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  4. * You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef mozilla_a11y_xpcAccessibleValue_h_
  6. #define mozilla_a11y_xpcAccessibleValue_h_
  7. #include "nsIAccessibleValue.h"
  8. namespace mozilla {
  9. namespace a11y {
  10. class Accessible;
  11. /**
  12. * XPCOM nsIAccessibleValue interface implementation, used by
  13. * xpcAccessibleGeneric class.
  14. */
  15. class xpcAccessibleValue : public nsIAccessibleValue
  16. {
  17. public:
  18. NS_IMETHOD GetMaximumValue(double* aValue) final override;
  19. NS_IMETHOD GetMinimumValue(double* aValue) final override;
  20. NS_IMETHOD GetCurrentValue(double* aValue) final override;
  21. NS_IMETHOD SetCurrentValue(double aValue) final override;
  22. NS_IMETHOD GetMinimumIncrement(double* aMinIncrement) final override;
  23. protected:
  24. xpcAccessibleValue() { }
  25. virtual ~xpcAccessibleValue() {}
  26. private:
  27. AccessibleOrProxy Intl();
  28. xpcAccessibleValue(const xpcAccessibleValue&) = delete;
  29. xpcAccessibleValue& operator =(const xpcAccessibleValue&) = delete;
  30. };
  31. } // namespace a11y
  32. } // namespace mozilla
  33. #endif