OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef VIEWS_ACCESSIBILITY_ACCESSIBILITY_TYPES_H_ | 5 #ifndef VIEWS_ACCESSIBILITY_ACCESSIBILITY_TYPES_H_ |
6 #define VIEWS_ACCESSIBILITY_ACCESSIBILITY_TYPES_H_ | 6 #define VIEWS_ACCESSIBILITY_ACCESSIBILITY_TYPES_H_ |
7 | 7 |
8 //////////////////////////////////////////////////////////////////////////////// | 8 //////////////////////////////////////////////////////////////////////////////// |
9 // | 9 // |
10 // AccessibilityTypes | 10 // AccessibilityTypes |
11 // | 11 // |
12 // Provides enumerations used to preserve platform-independence in accessibility | 12 // Provides enumerations used to preserve platform-independence in accessibility |
13 // functions used in various Views, both in Browser\Views and Views. | 13 // functions used in various Views, both in Browser\Views and Views. |
14 // | 14 // |
15 //////////////////////////////////////////////////////////////////////////////// | 15 //////////////////////////////////////////////////////////////////////////////// |
16 class AccessibilityTypes { | 16 class AccessibilityTypes { |
17 public: | 17 public: |
18 // This defines an enumeration of the supported accessibility roles in our | 18 // This defines an enumeration of the supported accessibility roles in our |
19 // Views (e.g. used in View::GetAccessibleRole). Any interface using roles | 19 // Views (e.g. used in View::GetAccessibleRole). Any interface using roles |
20 // must provide a conversion to its own roles (see e.g. | 20 // must provide a conversion to its own roles (see e.g. |
21 // ViewAccessibility::get_accRole and ViewAccessibility::MSAARole). | 21 // ViewAccessibility::get_accRole and ViewAccessibility::MSAARole). |
22 enum Role { | 22 enum Role { |
23 ROLE_APPLICATION, | 23 ROLE_APPLICATION, |
24 ROLE_BUTTONDROPDOWN, | 24 ROLE_BUTTONDROPDOWN, |
| 25 ROLE_BUTTONMENU, |
25 ROLE_CLIENT, | 26 ROLE_CLIENT, |
26 ROLE_GROUPING, | 27 ROLE_GROUPING, |
27 ROLE_PAGETAB, | 28 ROLE_PAGETAB, |
| 29 ROLE_PAGETABLIST, |
28 ROLE_PUSHBUTTON, | 30 ROLE_PUSHBUTTON, |
| 31 ROLE_SEPARATOR, |
29 ROLE_TEXT, | 32 ROLE_TEXT, |
30 ROLE_TOOLBAR | 33 ROLE_TOOLBAR, |
| 34 ROLE_WINDOW |
31 }; | 35 }; |
32 | 36 |
33 // This defines an enumeration of the supported accessibility roles in our | 37 // This defines an enumeration of the supported accessibility roles in our |
34 // Views (e.g. used in View::GetAccessibleState). Any interface using roles | 38 // Views (e.g. used in View::GetAccessibleState). Any interface using roles |
35 // must provide a conversion to its own roles (see e.g. | 39 // must provide a conversion to its own roles (see e.g. |
36 // ViewAccessibility::get_accState and ViewAccessibility::MSAAState). | 40 // ViewAccessibility::get_accState and ViewAccessibility::MSAAState). |
37 enum State { | 41 enum State { |
38 STATE_HASPOPUP, | 42 STATE_HASPOPUP, |
39 STATE_READONLY | 43 STATE_READONLY |
40 }; | 44 }; |
41 | 45 |
42 private: | 46 private: |
43 // Do not instantiate this class. | 47 // Do not instantiate this class. |
44 AccessibilityTypes() {} | 48 AccessibilityTypes() {} |
45 ~AccessibilityTypes() {} | 49 ~AccessibilityTypes() {} |
46 }; | 50 }; |
47 | 51 |
48 #endif // VIEWS_ACCESSIBILITY_ACCESSIBILITY_TYPES_H_ | 52 #endif // VIEWS_ACCESSIBILITY_ACCESSIBILITY_TYPES_H_ |
OLD | NEW |