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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 DIRECTION_UP, | 52 DIRECTION_UP, |
53 DIRECTION_DOWN, | 53 DIRECTION_DOWN, |
54 DIRECTION_LEFT, | 54 DIRECTION_LEFT, |
55 DIRECTION_RIGHT, | 55 DIRECTION_RIGHT, |
56 DIRECTION_NEXT, | 56 DIRECTION_NEXT, |
57 DIRECTION_PREVIOUS, | 57 DIRECTION_PREVIOUS, |
58 DIRECTION_FIRSTCHILD, | 58 DIRECTION_FIRSTCHILD, |
59 DIRECTION_LASTCHILD | 59 DIRECTION_LASTCHILD |
60 }; | 60 }; |
61 | 61 |
62 // This defines an enumeration of the supported accessibility roles in our | 62 // This defines an enumeration (in alphabetical order) of the supported |
63 // Glue layer (used in GlueAccessibilityObject::Role). Any interface using | 63 // accessibility roles in our Glue layer (used in |
64 // roles must provide a conversion to its own roles (see e.g. | 64 // GlueAccessibilityObject::Role). Any interface using roles must provide a |
65 // BrowserAccessibility::get_accRole and BrowserAccessibility::MSAARole). | 65 // conversion to its own roles (see e.g. BrowserAccessibility::get_accRole and |
| 66 // BrowserAccessibility::MSAARole). |
66 enum Role { | 67 enum Role { |
| 68 ROLE_CELL, |
| 69 ROLE_CHECKBUTTON, |
| 70 ROLE_CLIENT, |
| 71 ROLE_COLUMN, |
| 72 ROLE_COLUMNHEADER, |
| 73 ROLE_GRAPHIC, |
| 74 ROLE_GROUPING, |
| 75 ROLE_LINK, |
| 76 ROLE_LIST, |
| 77 ROLE_LISTBOX, |
| 78 ROLE_MENUITEM, |
| 79 ROLE_MENUPOPUP, |
| 80 ROLE_OUTLINE, |
| 81 ROLE_PAGETABLIST, |
| 82 ROLE_PROGRESSBAR, |
67 ROLE_PUSHBUTTON, | 83 ROLE_PUSHBUTTON, |
68 ROLE_RADIOBUTTON, | 84 ROLE_RADIOBUTTON, |
69 ROLE_CHECKBUTTON, | 85 ROLE_ROW, |
| 86 ROLE_ROWHEADER, |
70 ROLE_SLIDER, | 87 ROLE_SLIDER, |
71 ROLE_PAGETABLIST, | |
72 ROLE_TEXT, | |
73 ROLE_STATICTEXT, | 88 ROLE_STATICTEXT, |
74 ROLE_OUTLINE, | |
75 ROLE_COLUMN, | |
76 ROLE_ROW, | |
77 ROLE_GROUPING, | |
78 ROLE_LIST, | |
79 ROLE_TABLE, | 89 ROLE_TABLE, |
80 ROLE_LINK, | 90 ROLE_TEXT |
81 ROLE_GRAPHIC, | |
82 ROLE_CLIENT | |
83 }; | 91 }; |
84 | 92 |
85 // This defines an enumeration of the supported accessibility states in our | 93 // This defines an enumeration (in alphabetical order) of the supported |
86 // Glue layer (used in GlueAccessibilityObject::State). Any interface using | 94 // accessibility states in our Glue layer (used in |
87 // states must provide a conversion to its own states (see e.g. | 95 // GlueAccessibilityObject::State). Any interface using states must provide a |
88 // BrowserAccessibility::get_accState and BrowserAccessibility::MSAAState). | 96 // conversion to its own states (see e.g. BrowserAccessibility::get_accState |
| 97 // and BrowserAccessibility::MSAAState). |
89 enum State { | 98 enum State { |
| 99 STATE_CHECKED, |
| 100 STATE_FOCUSABLE, |
| 101 STATE_FOCUSED, |
| 102 STATE_HOTTRACKED, |
| 103 STATE_INDETERMINATE, |
90 STATE_LINKED, | 104 STATE_LINKED, |
91 STATE_HOTTRACKED, | 105 STATE_MULTISELECTABLE, |
92 STATE_UNAVAILABLE, | 106 STATE_OFFSCREEN, |
| 107 STATE_PRESSED, |
| 108 STATE_PROTECTED, |
93 STATE_READONLY, | 109 STATE_READONLY, |
94 STATE_OFFSCREEN, | |
95 STATE_MULTISELECTABLE, | |
96 STATE_PROTECTED, | |
97 STATE_INDETERMINATE, | |
98 STATE_CHECKED, | |
99 STATE_PRESSED, | |
100 STATE_FOCUSED, | |
101 STATE_TRAVERSED, | 110 STATE_TRAVERSED, |
102 STATE_FOCUSABLE | 111 STATE_UNAVAILABLE |
103 }; | 112 }; |
104 | 113 |
105 // Parameters structure to hold a union of the possible accessibility function | 114 // Parameters structure to hold a union of the possible accessibility function |
106 // INPUT variables, with the unused fields always set to default value. Used | 115 // INPUT variables, with the unused fields always set to default value. Used |
107 // in ViewMsg_GetAccessibilityInfo, as only parameter. | 116 // in ViewMsg_GetAccessibilityInfo, as only parameter. |
108 struct InParams { | 117 struct InParams { |
109 // Identifier to uniquely distinguish which instance of accessibility | 118 // Identifier to uniquely distinguish which instance of accessibility |
110 // information is being called upon on the renderer side. | 119 // information is being called upon on the renderer side. |
111 int object_id; | 120 int object_id; |
112 | 121 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // Interface-specific error return codes (e.g. MSAA's E_POINTER, | 155 // Interface-specific error return codes (e.g. MSAA's E_POINTER, |
147 // E_INVALIDARG, E_FAIL, E_NOTIMPL) must be handled on the browser side by | 156 // E_INVALIDARG, E_FAIL, E_NOTIMPL) must be handled on the browser side by |
148 // input validation. | 157 // input validation. |
149 bool return_code; | 158 bool return_code; |
150 }; | 159 }; |
151 }; | 160 }; |
152 | 161 |
153 } // namespace webkit_glue | 162 } // namespace webkit_glue |
154 | 163 |
155 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_ | 164 #endif // WEBKIT_GLUE_WEBACCESSIBILITY_H_ |
OLD | NEW |