2 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
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
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.
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.
36 // Accessibility events sent from Blink to the embedder.
37 // These values must match blink::AXObjectCache::AXNotification values.
38 // Enforced in AssertMatchingEnums.cpp.
40 WebAXEventActiveDescendantChanged
,
42 WebAXEventAriaAttributeChanged
,
43 WebAXEventAutocorrectionOccured
,
45 WebAXEventCheckedStateChanged
,
46 WebAXEventChildrenChanged
,
49 WebAXEventInvalidStatusChanged
,
50 WebAXEventLayoutComplete
,
51 WebAXEventLiveRegionChanged
,
52 WebAXEventLoadComplete
,
53 WebAXEventLocationChanged
,
54 WebAXEventMenuListItemSelected
,
55 WebAXEventMenuListItemUnselected
,
56 WebAXEventMenuListValueChanged
,
57 WebAXEventRowCollapsed
,
58 WebAXEventRowCountChanged
,
59 WebAXEventRowExpanded
,
60 WebAXEventScrollPositionChanged
,
61 WebAXEventScrolledToAnchor
,
62 WebAXEventSelectedChildrenChanged
,
63 WebAXEventSelectedTextChanged
,
65 WebAXEventTextChanged
,
66 WebAXEventTextInserted
,
67 WebAXEventTextRemoved
,
68 WebAXEventValueChanged
71 // Accessibility roles.
72 // These values must match blink::AccessibilityRole values.
73 // Enforced in AssertMatchingEnums.cpp.
83 WebAXRoleBusyIndicator
,
90 WebAXRoleColumnHeader
,
93 WebAXRoleComplementary
,
98 WebAXRoleDescriptionListDetail
,
99 WebAXRoleDescriptionList
,
100 WebAXRoleDescriptionListTerm
,
104 WebAXRoleDisclosureTriangle
,
107 WebAXRoleEmbeddedObject
,
115 WebAXRoleIframePresentational
,
118 WebAXRoleImageMapLink
,
121 WebAXRoleInlineTextBox
,
126 WebAXRoleListBoxOption
,
139 WebAXRoleMenuItemCheckBox
,
140 WebAXRoleMenuItemRadio
,
141 WebAXRoleMenuListOption
,
142 WebAXRoleMenuListPopup
,
150 WebAXRolePopUpButton
,
152 WebAXRolePresentational
,
153 WebAXRoleProgressIndicator
,
154 WebAXRoleRadioButton
,
157 WebAXRoleRootWebArea
,
165 WebAXRoleSeamlessWebArea
,
169 WebAXRoleSliderThumb
,
170 WebAXRoleSpinButtonPart
,
180 WebAXRoleTableHeaderContainer
,
185 WebAXRoleToggleButton
,
190 WebAXRoleUserInterfaceTooltip
,
196 // Accessibility states, used as a bitmask.
206 WebAXStateIndeterminate
,
210 WebAXStateMultiselectable
,
216 WebAXStateSelectable
,
222 enum WebAXTextDirection
{
223 WebAXTextDirectionLR
,
224 WebAXTextDirectionRL
,
225 WebAXTextDirectionTB
,
229 // Sort direction, only used for roles = WebAXRoleRowHeader and
230 // WebAXRoleColumnHeader.
231 enum WebAXSortDirection
{
232 WebAXSortDirectionUndefined
= 0,
233 WebAXSortDirectionNone
,
234 WebAXSortDirectionAscending
,
235 WebAXSortDirectionDescending
,
236 WebAXSortDirectionOther
240 // These values must match blink::AccessibilityExpanded values.
241 // Enforced in AssertMatchingEnums.cpp.
243 WebAXExpandedUndefined
= 0,
244 WebAXExpandedCollapsed
,
245 WebAXExpandedExpanded
248 // These values must match blink::AccessibilityOrientation values.
249 // Enforced in AssertMatchingEnums.cpp.
250 enum WebAXOrientation
{
251 WebAXOrientationUndefined
= 0,
252 WebAXOrientationVertical
,
253 WebAXOrientationHorizontal
,
256 // Only used by HTML form controls and any other element that has
257 // an aria-invalid attribute specified.
258 enum WebAXInvalidState
{
259 WebAXInvalidStateUndefined
= 0,
260 WebAXInvalidStateFalse
,
261 WebAXInvalidStateTrue
,
262 WebAXInvalidStateSpelling
,
263 WebAXInvalidStateGrammar
,
264 WebAXInvalidStateOther
267 // Used for exposing text attributes.
268 enum WebAXTextStyle
{
269 WebAXTextStyleNone
= 0,
270 WebAXTextStyleBold
= 1 << 0,
271 WebAXTextStyleItalic
= 1 << 1,
272 WebAXTextStyleUnderline
= 1 << 2,
273 WebAXTextStyleLineThrough
= 1 << 3
276 // The source of the accessible name of an element. This is needed
277 // because on some platforms this determines how the accessible name
280 WebAXNameFromUninitialized
= -1,
281 WebAXNameFromAttribute
= 0,
282 WebAXNameFromContents
,
283 WebAXNameFromPlaceholder
,
284 WebAXNameFromRelatedElement
,
287 // The source of the accessible description of an element. This is needed
288 // because on some platforms this determines how the accessible description
290 enum WebAXDescriptionFrom
{
291 WebAXDescriptionFromPlaceholder
,
292 WebAXDescriptionFromRelatedElement