/src/mozilla-central/accessible/xpcom/xpcAccessibleValue.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* vim: set ts=2 et sw=2 tw=80: */ |
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 file, |
5 | | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
6 | | |
7 | | #ifndef mozilla_a11y_xpcAccessibleValue_h_ |
8 | | #define mozilla_a11y_xpcAccessibleValue_h_ |
9 | | |
10 | | #include "nsIAccessibleValue.h" |
11 | | |
12 | | namespace mozilla { |
13 | | namespace a11y { |
14 | | |
15 | | class Accessible; |
16 | | |
17 | | /** |
18 | | * XPCOM nsIAccessibleValue interface implementation, used by |
19 | | * xpcAccessibleGeneric class. |
20 | | */ |
21 | | class xpcAccessibleValue : public nsIAccessibleValue |
22 | | { |
23 | | public: |
24 | | NS_IMETHOD GetMaximumValue(double* aValue) final; |
25 | | NS_IMETHOD GetMinimumValue(double* aValue) final; |
26 | | NS_IMETHOD GetCurrentValue(double* aValue) final; |
27 | | NS_IMETHOD SetCurrentValue(double aValue) final; |
28 | | NS_IMETHOD GetMinimumIncrement(double* aMinIncrement) final; |
29 | | |
30 | | protected: |
31 | 0 | xpcAccessibleValue() { } |
32 | 0 | virtual ~xpcAccessibleValue() {} |
33 | | |
34 | | private: |
35 | | AccessibleOrProxy Intl(); |
36 | | |
37 | | xpcAccessibleValue(const xpcAccessibleValue&) = delete; |
38 | | xpcAccessibleValue& operator =(const xpcAccessibleValue&) = delete; |
39 | | }; |
40 | | |
41 | | } // namespace a11y |
42 | | } // namespace mozilla |
43 | | #endif |