Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: public/web/WebAXEnums.h

Issue 22331005: Clean up accessibility enums for use in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add forgotten file back Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « public/testing/WebTestProxy.h ('k') | public/web/WebAXObject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met:
7 *
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above
11 * copyright notice, this list of conditions and the following disclaimer
12 * in the documentation and/or other materials provided with the
13 * distribution.
14 * * Neither the name of Google Inc. nor the names of its
15 * contributors may be used to endorse or promote products derived from
16 * this software without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31 #ifndef WebAXEnums_h
32 #define WebAXEnums_h
33
34 namespace WebKit {
35
36 // Accessibility events sent from Blink to the embedder.
37 // These values must match WebCore::AXObjectCache::AXNotification values.
38 // Enforced in AssertMatchingEnums.cpp.
39 enum WebAXEvent {
40 WebAXEventActiveDescendantChanged,
41 WebAXEventAlert,
42 WebAXEventAriaAttributeChanged,
43 WebAXEventAutocorrectionOccured,
44 WebAXEventBlur,
45 WebAXEventCheckedStateChanged,
46 WebAXEventChildrenChanged,
47 WebAXEventFocus,
48 WebAXEventHide,
49 WebAXEventInvalidStatusChanged,
50 WebAXEventLayoutComplete,
51 WebAXEventLiveRegionChanged,
52 WebAXEventLoadComplete,
53 WebAXEventLocationChanged,
54 WebAXEventMenuListItemSelected,
55 WebAXEventMenuListValueChanged,
56 WebAXEventRowCollapsed,
57 WebAXEventRowCountChanged,
58 WebAXEventRowExpanded,
59 WebAXEventScrolledToAnchor,
60 WebAXEventSelectedChildrenChanged,
61 WebAXEventSelectedTextChanged,
62 WebAXEventShow,
63 WebAXEventTextChanged,
64 WebAXEventTextInserted,
65 WebAXEventTextRemoved,
66 WebAXEventValueChanged
67 };
68
69 // Accessibility roles.
70 // These values must match WebCore::AccessibilityRole values.
71 // Enforced in AssertMatchingEnums.cpp.
72 enum WebAXRole {
73 WebAXRoleAlertDialog = 1,
74 WebAXRoleAlert,
75 WebAXRoleAnnotation,
76 WebAXRoleApplication,
77 WebAXRoleArticle,
78 WebAXRoleBanner,
79 WebAXRoleBrowser,
80 WebAXRoleBusyIndicator,
81 WebAXRoleButton,
82 WebAXRoleCanvas,
83 WebAXRoleCell,
84 WebAXRoleCheckBox,
85 WebAXRoleColorWell,
86 WebAXRoleColumnHeader,
87 WebAXRoleColumn,
88 WebAXRoleComboBox,
89 WebAXRoleComplementary,
90 WebAXRoleContentInfo,
91 WebAXRoleDefinition,
92 WebAXRoleDescriptionListDetail,
93 WebAXRoleDescriptionListTerm,
94 WebAXRoleDialog,
95 WebAXRoleDirectory,
96 WebAXRoleDisclosureTriangle,
97 WebAXRoleDiv,
98 WebAXRoleDocument,
99 WebAXRoleDrawer,
100 WebAXRoleEditableText,
101 WebAXRoleFooter,
102 WebAXRoleForm,
103 WebAXRoleGrid,
104 WebAXRoleGroup,
105 WebAXRoleGrowArea,
106 WebAXRoleHeading,
107 WebAXRoleHelpTag,
108 WebAXRoleHorizontalRule,
109 WebAXRoleIgnored,
110 WebAXRoleImageMapLink,
111 WebAXRoleImageMap,
112 WebAXRoleImage,
113 WebAXRoleIncrementor,
114 WebAXRoleLabel,
115 WebAXRoleLegend,
116 WebAXRoleLink,
117 WebAXRoleListBoxOption,
118 WebAXRoleListBox,
119 WebAXRoleListItem,
120 WebAXRoleListMarker,
121 WebAXRoleList,
122 WebAXRoleLog,
123 WebAXRoleMain,
124 WebAXRoleMarquee,
125 WebAXRoleMathElement,
126 WebAXRoleMath,
127 WebAXRoleMatte,
128 WebAXRoleMenuBar,
129 WebAXRoleMenuButton,
130 WebAXRoleMenuItem,
131 WebAXRoleMenuListOption,
132 WebAXRoleMenuListPopup,
133 WebAXRoleMenu,
134 WebAXRoleNavigation,
135 WebAXRoleNote,
136 WebAXRoleOutline,
137 WebAXRoleParagraph,
138 WebAXRolePopUpButton,
139 WebAXRolePresentational,
140 WebAXRoleProgressIndicator,
141 WebAXRoleRadioButton,
142 WebAXRoleRadioGroup,
143 WebAXRoleRegion,
144 WebAXRoleRootWebArea,
145 WebAXRoleRowHeader,
146 WebAXRoleRow,
147 WebAXRoleRulerMarker,
148 WebAXRoleRuler,
149 WebAXRoleSVGRoot,
150 WebAXRoleScrollArea,
151 WebAXRoleScrollBar,
152 WebAXRoleSeamlessWebArea,
153 WebAXRoleSearch,
154 WebAXRoleSheet,
155 WebAXRoleSlider,
156 WebAXRoleSliderThumb,
157 WebAXRoleSpinButtonPart,
158 WebAXRoleSpinButton,
159 WebAXRoleSplitGroup,
160 WebAXRoleSplitter,
161 WebAXRoleStaticText,
162 WebAXRoleStatus,
163 WebAXRoleSystemWide,
164 WebAXRoleTabGroup,
165 WebAXRoleTabList,
166 WebAXRoleTabPanel,
167 WebAXRoleTab,
168 WebAXRoleTableHeaderContainer,
169 WebAXRoleTable,
170 WebAXRoleTextArea,
171 WebAXRoleTextField,
172 WebAXRoleTimer,
173 WebAXRoleToggleButton,
174 WebAXRoleToolbar,
175 WebAXRoleTreeGrid,
176 WebAXRoleTreeItem,
177 WebAXRoleTree,
178 WebAXRoleUnknown,
179 WebAXRoleUserInterfaceTooltip,
180 WebAXRoleValueIndicator,
181 WebAXRoleWebArea,
182 WebAXRoleWindow,
183 };
184
185 // Accessibility states, used as a bitmask.
186 enum WebAXState {
187 WebAXStateBusy,
188 WebAXStateChecked,
189 WebAXStateCollapsed,
190 WebAXStateEnabled,
191 WebAXStateExpanded,
192 WebAXStateFocusable,
193 WebAXStateFocused,
194 WebAXStateHaspopup,
195 WebAXStateHovered,
196 WebAXStateIndeterminate,
197 WebAXStateInvisible,
198 WebAXStateLinked,
199 WebAXStateMultiselectable,
200 WebAXStateOffscreen,
201 WebAXStatePressed,
202 WebAXStateProtected,
203 WebAXStateReadonly,
204 WebAXStateRequired,
205 WebAXStateSelectable,
206 WebAXStateSelected,
207 WebAXStateVertical,
208 WebAXStateVisited,
209 };
210
211 } // namespace WebKit
212
213 #endif
OLDNEW
« no previous file with comments | « public/testing/WebTestProxy.h ('k') | public/web/WebAXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698