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

Side by Side Diff: third_party/WebKit/Source/core/dom/AXObject.h

Issue 2876453003: Move enums from AXObjectImpl to AXObject (Closed)
Patch Set: Rebase Created 3 years, 7 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 | « no previous file | third_party/WebKit/Source/modules/accessibility/AXObjectImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 AXObject_h 5 #ifndef AXObject_h
6 #define AXObject_h 6 #define AXObject_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 enum AccessibilityRole {
13 kUnknownRole = 0, // Not mapped in platform APIs, generally indicates a bug
14 kAbbrRole, // No mapping to ARIA role.
15 kAlertDialogRole,
16 kAlertRole,
17 kAnchorRole, // No mapping to ARIA role.
18 kAnnotationRole, // No mapping to ARIA role.
19 kApplicationRole,
20 kArticleRole,
21 kAudioRole, // No mapping to ARIA role.
22 kBannerRole,
23 kBlockquoteRole, // No mapping to ARIA role.
24 kBusyIndicatorRole, // No mapping to ARIA role.
25 kButtonRole,
26 kCanvasRole, // No mapping to ARIA role.
27 kCaptionRole, // No mapping to ARIA role.
28 kCellRole,
29 kCheckBoxRole,
30 kColorWellRole, // No mapping to ARIA role.
31 kColumnHeaderRole,
32 kColumnRole, // No mapping to ARIA role.
33 kComboBoxRole,
34 kComplementaryRole,
35 kContentInfoRole,
36 kDateRole, // No mapping to ARIA role.
37 kDateTimeRole, // No mapping to ARIA role.
38 kDefinitionRole,
39 kDescriptionListDetailRole, // No mapping to ARIA role.
40 kDescriptionListRole, // No mapping to ARIA role.
41 kDescriptionListTermRole, // No mapping to ARIA role.
42 kDetailsRole, // No mapping to ARIA role.
43 kDialogRole,
44 kDirectoryRole,
45 kDisclosureTriangleRole, // No mapping to ARIA role.
46 kDocumentRole,
47 kEmbeddedObjectRole, // No mapping to ARIA role.
48 kFeedRole,
49 kFigcaptionRole, // No mapping to ARIA role.
50 kFigureRole,
51 kFooterRole,
52 kFormRole,
53 kGenericContainerRole, // No role was defined for this container
54 kGridRole,
55 kGroupRole,
56 kHeadingRole,
57 kIframePresentationalRole, // No mapping to ARIA role.
58 kIframeRole, // No mapping to ARIA role.
59 kIgnoredRole, // No mapping to ARIA role.
60 kImageMapLinkRole, // No mapping to ARIA role.
61 kImageMapRole, // No mapping to ARIA role.
62 kImageRole,
63 kInlineTextBoxRole, // No mapping to ARIA role.
64 kInputTimeRole, // No mapping to ARIA role.
65 kLabelRole,
66 kLegendRole, // No mapping to ARIA role.
67 kLineBreakRole, // No mapping to ARIA role.
68 kLinkRole,
69 kListBoxOptionRole,
70 kListBoxRole,
71 kListItemRole,
72 kListMarkerRole, // No mapping to ARIA role.
73 kListRole,
74 kLogRole,
75 kMainRole,
76 kMarkRole, // No mapping to ARIA role.
77 kMarqueeRole,
78 kMathRole,
79 kMenuBarRole,
80 kMenuButtonRole,
81 kMenuItemRole,
82 kMenuItemCheckBoxRole,
83 kMenuItemRadioRole,
84 kMenuListOptionRole,
85 kMenuListPopupRole,
86 kMenuRole,
87 kMeterRole,
88 kNavigationRole,
89 kNoneRole, // ARIA role of "none"
90 kNoteRole,
91 kOutlineRole, // No mapping to ARIA role.
92 kParagraphRole, // No mapping to ARIA role.
93 kPopUpButtonRole,
94 kPreRole, // No mapping to ARIA role.
95 kPresentationalRole,
96 kProgressIndicatorRole,
97 kRadioButtonRole,
98 kRadioGroupRole,
99 kRegionRole,
100 kRootWebAreaRole, // No mapping to ARIA role.
101 kRowHeaderRole,
102 kRowRole,
103 kRubyRole, // No mapping to ARIA role.
104 kRulerRole, // No mapping to ARIA role.
105 kSVGRootRole, // No mapping to ARIA role.
106 kScrollAreaRole, // No mapping to ARIA role.
107 kScrollBarRole,
108 kSeamlessWebAreaRole, // No mapping to ARIA role.
109 kSearchRole,
110 kSearchBoxRole,
111 kSliderRole,
112 kSliderThumbRole, // No mapping to ARIA role.
113 kSpinButtonPartRole, // No mapping to ARIA role.
114 kSpinButtonRole,
115 kSplitterRole,
116 kStaticTextRole, // No mapping to ARIA role.
117 kStatusRole,
118 kSwitchRole,
119 kTabGroupRole, // No mapping to ARIA role.
120 kTabListRole,
121 kTabPanelRole,
122 kTabRole,
123 kTableHeaderContainerRole, // No mapping to ARIA role.
124 kTableRole,
125 kTermRole,
126 kTextFieldRole,
127 kTimeRole, // No mapping to ARIA role.
128 kTimerRole,
129 kToggleButtonRole,
130 kToolbarRole,
131 kTreeGridRole,
132 kTreeItemRole,
133 kTreeRole,
134 kUserInterfaceTooltipRole,
135 kVideoRole, // No mapping to ARIA role.
136 kWebAreaRole, // No mapping to ARIA role.
137 kWindowRole, // No mapping to ARIA role.
138 kNumRoles
139 };
140
141 enum AccessibilityState {
142 kAXBusyState,
143 kAXCheckedState,
144 kAXEnabledState,
145 kAXExpandedState,
146 kAXFocusableState,
147 kAXFocusedState,
148 kAXHaspopupState,
149 kAXHoveredState,
150 kAXInvisibleState,
151 kAXLinkedState,
152 kAXMultilineState,
153 kAXMultiselectableState,
154 kAXOffscreenState,
155 kAXPressedState,
156 kAXProtectedState,
157 kAXReadonlyState,
158 kAXRequiredState,
159 kAXSelectableState,
160 kAXSelectedState,
161 kAXVerticalState,
162 kAXVisitedState
163 };
164
165 enum AccessibilityOrientation {
166 kAccessibilityOrientationUndefined = 0,
167 kAccessibilityOrientationVertical,
168 kAccessibilityOrientationHorizontal,
169 };
170
171 enum class AXDefaultActionVerb {
172 kNone = 0,
173 kActivate,
174 kCheck,
175 kClick,
176 kJump,
177 kOpen,
178 kPress,
179 kSelect,
180 kUncheck
181 };
182
183 enum class AXSupportedAction {
184 kNone = 0,
185 kActivate,
186 kCheck,
187 kClick,
188 kJump,
189 kOpen,
190 kPress,
191 kSelect,
192 kUncheck
193 };
194
195 enum AccessibilityTextDirection {
196 kAccessibilityTextDirectionLTR,
197 kAccessibilityTextDirectionRTL,
198 kAccessibilityTextDirectionTTB,
199 kAccessibilityTextDirectionBTT
200 };
201
202 enum SortDirection {
203 kSortDirectionUndefined = 0,
204 kSortDirectionNone,
205 kSortDirectionAscending,
206 kSortDirectionDescending,
207 kSortDirectionOther
208 };
209
210 enum AccessibilityExpanded {
211 kExpandedUndefined = 0,
212 kExpandedCollapsed,
213 kExpandedExpanded,
214 };
215
216 enum AriaCurrentState {
217 kAriaCurrentStateUndefined = 0,
218 kAriaCurrentStateFalse,
219 kAriaCurrentStateTrue,
220 kAriaCurrentStatePage,
221 kAriaCurrentStateStep,
222 kAriaCurrentStateLocation,
223 kAriaCurrentStateDate,
224 kAriaCurrentStateTime
225 };
226
227 enum InvalidState {
228 kInvalidStateUndefined = 0,
229 kInvalidStateFalse,
230 kInvalidStateTrue,
231 kInvalidStateSpelling,
232 kInvalidStateGrammar,
233 kInvalidStateOther
234 };
235
236 enum TextStyle {
237 kTextStyleNone = 0,
238 kTextStyleBold = 1 << 0,
239 kTextStyleItalic = 1 << 1,
240 kTextStyleUnderline = 1 << 2,
241 kTextStyleLineThrough = 1 << 3
242 };
243
244 enum class AXStringAttribute {
245 kAriaKeyShortcuts,
246 kAriaRoleDescription,
247 };
248
249 enum class AXObjectAttribute {
250 kAriaActiveDescendant,
251 kAriaErrorMessage,
252 };
253
254 enum class AXObjectVectorAttribute {
255 kAriaControls,
256 kAriaDetails,
257 kAriaFlowTo,
258 };
259
260 // The source of the accessible name of an element. This is needed
261 // because on some platforms this determines how the accessible name
262 // is exposed.
263 enum AXNameFrom {
264 kAXNameFromUninitialized = -1,
265 kAXNameFromAttribute = 0,
266 kAXNameFromAttributeExplicitlyEmpty,
267 kAXNameFromCaption,
268 kAXNameFromContents,
269 kAXNameFromPlaceholder,
270 kAXNameFromRelatedElement,
271 kAXNameFromValue,
272 kAXNameFromTitle,
273 };
274
275 // The source of the accessible description of an element. This is needed
276 // because on some platforms this determines how the accessible description
277 // is exposed.
278 enum AXDescriptionFrom {
279 kAXDescriptionFromUninitialized = -1,
280 kAXDescriptionFromAttribute = 0,
281 kAXDescriptionFromContents,
282 kAXDescriptionFromRelatedElement,
283 };
284
12 // TODO(sashab): Add pure virtual methods to this class to remove dependencies 285 // TODO(sashab): Add pure virtual methods to this class to remove dependencies
13 // on AXObjectImpl from outside of modules/. 286 // on AXObjectImpl from outside of modules/.
14 class CORE_EXPORT AXObject {}; 287 class CORE_EXPORT AXObject {};
15 288
16 } // namespace blink 289 } // namespace blink
17 290
18 #endif // AXObject_h 291 #endif // AXObject_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/accessibility/AXObjectImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698