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

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

Issue 22331005: Clean up accessibility enums for use in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: reupload Created 7 years, 4 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
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 WebAccessibilityEnums_h
32 #define WebAccessibilityEnums_h
33
34 #include "../platform/WebCommon.h"
tfarina 2013/08/07 17:22:52 do you need this include here?
dmazzoni 2013/08/07 18:27:29 Done.
35
36 namespace WebKit {
37
38 // These values must match WebCore::AXObjectCache::AXNotification values.
39 // Enforced in AssertMatchingEnums.cpp.
40 enum AXNotification {
jamesr 2013/08/07 17:26:09 all public Blink API types should have a 'Web' pre
dmazzoni 2013/08/07 18:27:29 No problem.
41 AXActiveDescendantChanged,
jamesr 2013/08/07 17:26:09 all enum values in the Blink public API should be
dmazzoni 2013/08/07 18:27:29 OK, how about this?
42 AXAlert,
43 AXAriaAttributeChanged,
44 AXAutocorrectionOccured,
45 AXBlur,
46 AXCheckedStateChanged,
47 AXChildrenChanged,
48 AXFocus,
49 AXHide,
50 AXInvalidStatusChanged,
51 AXLayoutComplete,
52 AXLiveRegionChanged,
53 AXLoadComplete,
54 AXLocationChanged,
55 AXMenuListItemSelected,
56 AXMenuListValueChanged,
57 AXRowCollapsed,
58 AXRowCountChanged,
59 AXRowExpanded,
60 AXScrolledToAnchor,
61 AXSelectedChildrenChanged,
62 AXSelectedTextChanged,
63 AXShow,
64 AXTextChanged,
65 AXTextInserted,
66 AXTextRemoved,
67 AXValueChanged
68 };
69
70 // These values must match WebCore::AccessibilityRole values.
71 // Enforced in AssertMatchingEnums.cpp.
72 enum AXRole {
73 AXAlertDialogRole = 1,
74 AXAlertRole,
75 AXAnnotationRole,
76 AXApplicationRole,
77 AXArticleRole,
78 AXBannerRole,
79 AXBrowserRole,
80 AXBusyIndicatorRole,
81 AXButtonRole,
82 AXCanvasRole,
83 AXCellRole,
84 AXCheckBoxRole,
85 AXColorWellRole,
86 AXColumnHeaderRole,
87 AXColumnRole,
88 AXComboBoxRole,
89 AXComplementaryRole,
90 AXContentInfoRole,
91 AXDefinitionRole,
92 AXDescriptionListDetailRole,
93 AXDescriptionListTermRole,
94 AXDialogRole,
95 AXDirectoryRole,
96 AXDisclosureTriangleRole,
97 AXDivRole,
98 AXDocumentRole,
99 AXDrawerRole,
100 AXEditableTextRole,
101 AXFooterRole,
102 AXFormRole,
103 AXGridRole,
104 AXGroupRole,
105 AXGrowAreaRole,
106 AXHeadingRole,
107 AXHelpTagRole,
108 AXHorizontalRuleRole,
109 AXIgnoredRole,
110 AXImageMapLinkRole,
111 AXImageMapRole,
112 AXImageRole,
113 AXIncrementorRole,
114 AXLabelRole,
115 AXLegendRole,
116 AXLinkRole,
117 AXListBoxOptionRole,
118 AXListBoxRole,
119 AXListItemRole,
120 AXListMarkerRole,
121 AXListRole,
122 AXLogRole,
123 AXMainRole,
124 AXMarqueeRole,
125 AXMathElementRole,
126 AXMathRole,
127 AXMatteRole,
128 AXMenuBarRole,
129 AXMenuButtonRole,
130 AXMenuItemRole,
131 AXMenuListOptionRole,
132 AXMenuListPopupRole,
133 AXMenuRole,
134 AXNavigationRole,
135 AXNoteRole,
136 AXOutlineRole,
137 AXParagraphRole,
138 AXPopUpButtonRole,
139 AXPresentationalRole,
140 AXProgressIndicatorRole,
141 AXRadioButtonRole,
142 AXRadioGroupRole,
143 AXRegionRole,
144 AXRowHeaderRole,
145 AXRowRole,
146 AXRulerMarkerRole,
147 AXRulerRole,
148 AXSVGRootRole,
149 AXScrollAreaRole,
150 AXScrollBarRole,
151 AXSeamlessWebAreaRole,
152 AXSearchRole,
153 AXSheetRole,
154 AXSliderRole,
155 AXSliderThumbRole,
156 AXSpinButtonPartRole,
157 AXSpinButtonRole,
158 AXSplitGroupRole,
159 AXSplitterRole,
160 AXStaticTextRole,
161 AXStatusRole,
162 AXSystemWideRole,
163 AXTabGroupRole,
164 AXTabListRole,
165 AXTabPanelRole,
166 AXTabRole,
167 AXTableHeaderContainerRole,
168 AXTableRole,
169 AXTextAreaRole,
170 AXTextFieldRole,
171 AXTimerRole,
172 AXToggleButtonRole,
173 AXToolbarRole,
174 AXTreeGridRole,
175 AXTreeItemRole,
176 AXTreeRole,
177 AXUnknownRole,
178 AXUserInterfaceTooltipRole,
179 AXValueIndicatorRole,
180 AXWebAreaRole,
181 AXWindowRole,
182 };
183
184 enum AXState {
185 AXBusyState,
186 AXCheckedState,
187 AXCollapsedState,
188 AXEnabledState,
189 AXExpandedState,
190 AXFocusableState,
191 AXFocusedState,
192 AXHaspopupState,
193 AXHoveredState,
194 AXIndeterminateState,
195 AXInvisibleState,
196 AXLinkedState,
197 AXMultiselectableState,
198 AXOffscreenState,
199 AXPressedState,
200 AXProtectedState,
201 AXReadonlyState,
202 AXRequiredState,
203 AXSelectableState,
204 AXSelectedState,
205 AXVerticalState,
206 AXVisitedState,
207 };
208
209 } // namespace WebKit
210
211 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698