| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 WEBKIT_GLUE_WEBACCESSIBILITY_H_ | 5 #ifndef WEBKIT_GLUE_WEBACCESSIBILITY_H_ |
| 6 #define WEBKIT_GLUE_WEBACCESSIBILITY_H_ | 6 #define WEBKIT_GLUE_WEBACCESSIBILITY_H_ |
| 7 | 7 |
| 8 #include "base/string16.h" | 8 #include "base/string16.h" |
| 9 | 9 |
| 10 namespace webkit_glue { | 10 namespace webkit_glue { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 DIRECTION_FIRSTCHILD, | 58 DIRECTION_FIRSTCHILD, |
| 59 DIRECTION_LASTCHILD | 59 DIRECTION_LASTCHILD |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 // This defines an enumeration (in alphabetical order) of the supported | 62 // This defines an enumeration (in alphabetical order) of the supported |
| 63 // accessibility roles in our Glue layer (used in | 63 // accessibility roles in our Glue layer (used in |
| 64 // GlueAccessibilityObject::Role). Any interface using roles must provide a | 64 // GlueAccessibilityObject::Role). Any interface using roles must provide a |
| 65 // conversion to its own roles (see e.g. BrowserAccessibility::get_accRole and | 65 // conversion to its own roles (see e.g. BrowserAccessibility::get_accRole and |
| 66 // BrowserAccessibility::MSAARole). | 66 // BrowserAccessibility::MSAARole). |
| 67 enum Role { | 67 enum Role { |
| 68 ROLE_APPLICATION, |
| 68 ROLE_CELL, | 69 ROLE_CELL, |
| 69 ROLE_CHECKBUTTON, | 70 ROLE_CHECKBUTTON, |
| 70 ROLE_CLIENT, | 71 ROLE_CLIENT, |
| 71 ROLE_COLUMN, | 72 ROLE_COLUMN, |
| 72 ROLE_COLUMNHEADER, | 73 ROLE_COLUMNHEADER, |
| 73 ROLE_DOCUMENT, | 74 ROLE_DOCUMENT, |
| 74 ROLE_GRAPHIC, | 75 ROLE_GRAPHIC, |
| 75 ROLE_GROUPING, | 76 ROLE_GROUPING, |
| 76 ROLE_LINK, | 77 ROLE_LINK, |
| 77 ROLE_LIST, | 78 ROLE_LIST, |
| 78 ROLE_LISTBOX, | 79 ROLE_LISTBOX, |
| 79 ROLE_MENUBAR, | 80 ROLE_MENUBAR, |
| 80 ROLE_MENUITEM, | 81 ROLE_MENUITEM, |
| 81 ROLE_MENUPOPUP, | 82 ROLE_MENUPOPUP, |
| 82 ROLE_OUTLINE, | 83 ROLE_OUTLINE, |
| 83 ROLE_PAGETABLIST, | 84 ROLE_PAGETABLIST, |
| 84 ROLE_PROGRESSBAR, | 85 ROLE_PROGRESSBAR, |
| 85 ROLE_PUSHBUTTON, | 86 ROLE_PUSHBUTTON, |
| 86 ROLE_RADIOBUTTON, | 87 ROLE_RADIOBUTTON, |
| 87 ROLE_ROW, | 88 ROLE_ROW, |
| 88 ROLE_ROWHEADER, | 89 ROLE_ROWHEADER, |
| 90 ROLE_SEPARATOR, |
| 89 ROLE_SLIDER, | 91 ROLE_SLIDER, |
| 90 ROLE_STATICTEXT, | 92 ROLE_STATICTEXT, |
| 93 ROLE_STATUSBAR, |
| 91 ROLE_TABLE, | 94 ROLE_TABLE, |
| 92 ROLE_TEXT, | 95 ROLE_TEXT, |
| 93 ROLE_TOOLBAR | 96 ROLE_TOOLBAR, |
| 97 ROLE_TOOLTIP |
| 94 }; | 98 }; |
| 95 | 99 |
| 96 // This defines an enumeration (in alphabetical order) of the supported | 100 // This defines an enumeration (in alphabetical order) of the supported |
| 97 // accessibility states in our Glue layer (used in | 101 // accessibility states in our Glue layer (used in |
| 98 // GlueAccessibilityObject::State). Any interface using states must provide a | 102 // GlueAccessibilityObject::State). Any interface using states must provide a |
| 99 // conversion to its own states (see e.g. BrowserAccessibility::get_accState | 103 // conversion to its own states (see e.g. BrowserAccessibility::get_accState |
| 100 // and BrowserAccessibility::MSAAState). | 104 // and BrowserAccessibility::MSAAState). |
| 101 enum State { | 105 enum State { |
| 102 STATE_CHECKED, | 106 STATE_CHECKED, |
| 103 STATE_FOCUSABLE, | 107 STATE_FOCUSABLE, |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 // Interface-specific error return codes (e.g. MSAA's E_POINTER, | 162 // Interface-specific error return codes (e.g. MSAA's E_POINTER, |
| 159 // E_INVALIDARG, E_FAIL, E_NOTIMPL) must be handled on the browser side by | 163 // E_INVALIDARG, E_FAIL, E_NOTIMPL) must be handled on the browser side by |
| 160 // input validation. | 164 // input validation. |
| 161 bool return_code; | 165 bool return_code; |
| 162 }; | 166 }; |
| 163 }; | 167 }; |
| 164 | 168 |
| 165 } // namespace webkit_glue | 169 } // namespace webkit_glue |
| 166 | 170 |
| 167 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_ | 171 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_ |
| OLD | NEW |