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 WebAXEventMenuListValueChanged,
56 WebAXEventRowCollapsed,
57 WebAXEventRowCountChanged,
58 WebAXEventRowExpanded,
59 WebAXEventScrollPositionChanged,
60 WebAXEventScrolledToAnchor,
61 WebAXEventSelectedChildrenChanged,
62 WebAXEventSelectedTextChanged,
64 WebAXEventTextChanged,
65 WebAXEventTextInserted,
66 WebAXEventTextRemoved,
67 WebAXEventValueChanged
70 // Accessibility roles.
71 // These values must match blink::AccessibilityRole values.
72 // Enforced in AssertMatchingEnums.cpp.
74 WebAXRoleAlertDialog = 1,
82 WebAXRoleBusyIndicator,
88 WebAXRoleColumnHeader,
91 WebAXRoleComplementary,
96 WebAXRoleDescriptionListDetail,
97 WebAXRoleDescriptionList,
98 WebAXRoleDescriptionListTerm,
102 WebAXRoleDisclosureTriangle,
106 WebAXRoleEditableText,
107 WebAXRoleEmbeddedObject,
117 WebAXRoleHorizontalRule,
120 WebAXRoleImageMapLink,
123 WebAXRoleIncrementor,
124 WebAXRoleInlineTextBox,
128 WebAXRoleListBoxOption,
136 WebAXRoleMathElement,
142 WebAXRoleMenuItemCheckBox,
143 WebAXRoleMenuItemRadio,
144 WebAXRoleMenuListOption,
145 WebAXRoleMenuListPopup,
153 WebAXRolePopUpButton,
155 WebAXRolePresentational,
156 WebAXRoleProgressIndicator,
157 WebAXRoleRadioButton,
160 WebAXRoleRootWebArea,
163 WebAXRoleRulerMarker,
168 WebAXRoleSeamlessWebArea,
172 WebAXRoleSliderThumb,
173 WebAXRoleSpinButtonPart,
184 WebAXRoleTableHeaderContainer,
190 WebAXRoleToggleButton,
196 WebAXRoleUserInterfaceTooltip,
197 WebAXRoleValueIndicator,
202 // Accessibility states, used as a bitmask.
212 WebAXStateIndeterminate,
215 WebAXStateMultiselectable,
221 WebAXStateSelectable,
227 // Text direction, only used for role=WebAXRoleInlineTextBox.
228 enum WebAXTextDirection {
229 WebAXTextDirectionLR,
230 WebAXTextDirectionRL,
231 WebAXTextDirectionTB,
236 // These values must match blink::AccessibilityExpanded values.
237 // Enforced in AssertMatchingEnums.cpp.
239 WebAXExpandedUndefined = 0,
240 WebAXExpandedCollapsed,
241 WebAXExpandedExpanded