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 WebCore::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 WebCore::AccessibilityRole values.
72 // Enforced in AssertMatchingEnums.cpp.
74 WebAXRoleAlertDialog = 1,
81 WebAXRoleBusyIndicator,
87 WebAXRoleColumnHeader,
90 WebAXRoleComplementary,
93 WebAXRoleDescriptionListDetail,
94 WebAXRoleDescriptionListTerm,
97 WebAXRoleDisclosureTriangle,
101 WebAXRoleEditableText,
102 WebAXRoleEmbeddedObject,
110 WebAXRoleHorizontalRule,
113 WebAXRoleImageMapLink,
116 WebAXRoleIncrementor,
117 WebAXRoleInlineTextBox,
121 WebAXRoleListBoxOption,
129 WebAXRoleMathElement,
135 WebAXRoleMenuListOption,
136 WebAXRoleMenuListPopup,
142 WebAXRolePopUpButton,
143 WebAXRolePresentational,
144 WebAXRoleProgressIndicator,
145 WebAXRoleRadioButton,
148 WebAXRoleRootWebArea,
151 WebAXRoleRulerMarker,
156 WebAXRoleSeamlessWebArea,
160 WebAXRoleSliderThumb,
161 WebAXRoleSpinButtonPart,
172 WebAXRoleTableHeaderContainer,
177 WebAXRoleToggleButton,
183 WebAXRoleUserInterfaceTooltip,
184 WebAXRoleValueIndicator,
189 // Accessibility states, used as a bitmask.
200 WebAXStateIndeterminate,
203 WebAXStateMultiselectable,
209 WebAXStateSelectable,
215 // Text direction, only used for role=WebAXRoleInlineTextBox.
216 enum WebAXTextDirection {
217 WebAXTextDirectionLR,
218 WebAXTextDirectionRL,
219 WebAXTextDirectionTB,