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,
81 WebAXRoleBusyIndicator,
87 WebAXRoleColumnHeader,
90 WebAXRoleComplementary,
93 WebAXRoleDescriptionListDetail,
94 WebAXRoleDescriptionListTerm,
98 WebAXRoleDisclosureTriangle,
102 WebAXRoleEditableText,
103 WebAXRoleEmbeddedObject,
113 WebAXRoleHorizontalRule,
116 WebAXRoleImageMapLink,
119 WebAXRoleIncrementor,
120 WebAXRoleInlineTextBox,
124 WebAXRoleListBoxOption,
132 WebAXRoleMathElement,
138 WebAXRoleMenuListOption,
139 WebAXRoleMenuListPopup,
146 WebAXRolePopUpButton,
147 WebAXRolePresentational,
148 WebAXRoleProgressIndicator,
149 WebAXRoleRadioButton,
152 WebAXRoleRootWebArea,
155 WebAXRoleRulerMarker,
160 WebAXRoleSeamlessWebArea,
164 WebAXRoleSliderThumb,
165 WebAXRoleSpinButtonPart,
176 WebAXRoleTableHeaderContainer,
181 WebAXRoleToggleButton,
187 WebAXRoleUserInterfaceTooltip,
188 WebAXRoleValueIndicator,
193 // Accessibility states, used as a bitmask.
204 WebAXStateIndeterminate,
207 WebAXStateMultiselectable,
213 WebAXStateSelectable,
219 // Text direction, only used for role=WebAXRoleInlineTextBox.
220 enum WebAXTextDirection {
221 WebAXTextDirectionLR,
222 WebAXTextDirectionRL,
223 WebAXTextDirectionTB,