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_BUTTONMENU, |
26 ROLE_CLIENT, | 26 ROLE_CLIENT, |
| 27 ROLE_GRAPHIC, |
27 ROLE_GROUPING, | 28 ROLE_GROUPING, |
28 ROLE_PAGETAB, | 29 ROLE_PAGETAB, |
29 ROLE_PAGETABLIST, | 30 ROLE_PAGETABLIST, |
30 ROLE_PUSHBUTTON, | 31 ROLE_PUSHBUTTON, |
31 ROLE_SEPARATOR, | 32 ROLE_SEPARATOR, |
32 ROLE_TEXT, | 33 ROLE_TEXT, |
33 ROLE_TITLEBAR, | 34 ROLE_TITLEBAR, |
34 ROLE_TOOLBAR, | 35 ROLE_TOOLBAR, |
35 ROLE_WINDOW | 36 ROLE_WINDOW |
36 }; | 37 }; |
37 | 38 |
38 // This defines an enumeration of the supported accessibility roles in our | 39 // This defines an enumeration of the supported accessibility roles in our |
39 // Views (e.g. used in View::GetAccessibleState). Any interface using roles | 40 // Views (e.g. used in View::GetAccessibleState). Any interface using roles |
40 // must provide a conversion to its own roles (see e.g. | 41 // must provide a conversion to its own roles (see e.g. |
41 // ViewAccessibility::get_accState and ViewAccessibility::MSAAState). | 42 // ViewAccessibility::get_accState and ViewAccessibility::MSAAState). |
42 enum State { | 43 enum State { |
43 STATE_HASPOPUP, | 44 STATE_HASPOPUP, |
44 STATE_READONLY | 45 STATE_READONLY |
45 }; | 46 }; |
46 | 47 |
47 private: | 48 private: |
48 // Do not instantiate this class. | 49 // Do not instantiate this class. |
49 AccessibilityTypes() {} | 50 AccessibilityTypes() {} |
50 ~AccessibilityTypes() {} | 51 ~AccessibilityTypes() {} |
51 }; | 52 }; |
52 | 53 |
53 #endif // VIEWS_ACCESSIBILITY_ACCESSIBILITY_TYPES_H_ | 54 #endif // VIEWS_ACCESSIBILITY_ACCESSIBILITY_TYPES_H_ |
OLD | NEW |