OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 STATE_EXPANDED = 1 << 3, | 31 STATE_EXPANDED = 1 << 3, |
32 STATE_HASPOPUP = 1 << 4, | 32 STATE_HASPOPUP = 1 << 4, |
33 STATE_HOTTRACKED = 1 << 5, | 33 STATE_HOTTRACKED = 1 << 5, |
34 STATE_INVISIBLE = 1 << 6, | 34 STATE_INVISIBLE = 1 << 6, |
35 STATE_LINKED = 1 << 7, | 35 STATE_LINKED = 1 << 7, |
36 STATE_OFFSCREEN = 1 << 8, | 36 STATE_OFFSCREEN = 1 << 8, |
37 STATE_PRESSED = 1 << 9, | 37 STATE_PRESSED = 1 << 9, |
38 STATE_PROTECTED = 1 << 10, | 38 STATE_PROTECTED = 1 << 10, |
39 STATE_READONLY = 1 << 11, | 39 STATE_READONLY = 1 << 11, |
40 STATE_SELECTED = 1 << 12, | 40 STATE_SELECTED = 1 << 12, |
41 STATE_UNAVAILABLE = 1 << 13 | 41 STATE_FOCUSED = 1 << 13, |
| 42 STATE_UNAVAILABLE = 1 << 14 |
42 }; | 43 }; |
43 | 44 |
44 // This defines an enumeration of the supported accessibility roles in our | 45 // This defines an enumeration of the supported accessibility roles in our |
45 // Views (e.g. used in View::GetAccessibleRole). Any interface using roles | 46 // Views (e.g. used in View::GetAccessibleRole). Any interface using roles |
46 // must provide a conversion to its own roles (see e.g. | 47 // must provide a conversion to its own roles (see e.g. |
47 // ViewAccessibility::get_accRole and ViewAccessibility::MSAARole). | 48 // ViewAccessibility::get_accRole and ViewAccessibility::MSAARole). |
48 enum Role { | 49 enum Role { |
49 ROLE_APPLICATION, | 50 ROLE_APPLICATION, |
50 ROLE_BUTTONDROPDOWN, | 51 ROLE_BUTTONDROPDOWN, |
51 ROLE_BUTTONMENU, | 52 ROLE_BUTTONMENU, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 EVENT_MENUPOPUPEND | 88 EVENT_MENUPOPUPEND |
88 }; | 89 }; |
89 | 90 |
90 private: | 91 private: |
91 // Do not instantiate this class. | 92 // Do not instantiate this class. |
92 AccessibilityTypes() {} | 93 AccessibilityTypes() {} |
93 ~AccessibilityTypes() {} | 94 ~AccessibilityTypes() {} |
94 }; | 95 }; |
95 | 96 |
96 #endif // VIEWS_ACCESSIBILITY_ACCESSIBILITY_TYPES_H_ | 97 #endif // VIEWS_ACCESSIBILITY_ACCESSIBILITY_TYPES_H_ |
OLD | NEW |