| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_COMMON_ACCESSIBILITY_TYPES_H_ | |
| 6 #define CHROME_COMMON_ACCESSIBILITY_TYPES_H_ | |
| 7 | |
| 8 //////////////////////////////////////////////////////////////////////////////// | |
| 9 // | |
| 10 // AccessibilityTypes | |
| 11 // | |
| 12 // Provides enumerations used to preserve platform-independence in accessibility | |
| 13 // functions used in various Views, both in Browser\Views and Views. | |
| 14 // | |
| 15 //////////////////////////////////////////////////////////////////////////////// | |
| 16 class AccessibilityTypes { | |
| 17 public: | |
| 18 // This defines an enumeration of the supported accessibility roles in our | |
| 19 // Views (e.g. used in View::GetAccessibleRole). Any interface using roles | |
| 20 // must provide a conversion to its own roles (see e.g. | |
| 21 // ViewAccessibility::get_accRole and ViewAccessibility::MSAARole). | |
| 22 enum Role { | |
| 23 ROLE_APPLICATION, | |
| 24 ROLE_BUTTONDROPDOWN, | |
| 25 ROLE_CLIENT, | |
| 26 ROLE_GROUPING, | |
| 27 ROLE_PAGETAB, | |
| 28 ROLE_PUSHBUTTON, | |
| 29 ROLE_TEXT, | |
| 30 ROLE_TOOLBAR | |
| 31 }; | |
| 32 | |
| 33 // This defines an enumeration of the supported accessibility roles in our | |
| 34 // Views (e.g. used in View::GetAccessibleState). Any interface using roles | |
| 35 // must provide a conversion to its own roles (see e.g. | |
| 36 // ViewAccessibility::get_accState and ViewAccessibility::MSAAState). | |
| 37 enum State { | |
| 38 STATE_HASPOPUP, | |
| 39 STATE_READONLY | |
| 40 }; | |
| 41 | |
| 42 private: | |
| 43 // Do not instantiate this class. | |
| 44 AccessibilityTypes() {} | |
| 45 ~AccessibilityTypes() {} | |
| 46 }; | |
| 47 | |
| 48 #endif // CHROME_COMMON_ACCESSIBILITY_TYPES_H_ | |
| OLD | NEW |