11 case ax::mojom::Event::kNone:
13 case ax::mojom::Event::kActiveDescendantChanged:
14 return "activedescendantchanged";
15 case ax::mojom::Event::kAlert:
17 case ax::mojom::Event::kAriaAttributeChanged:
18 return "ariaAttributeChanged";
19 case ax::mojom::Event::kAutocorrectionOccured:
20 return "autocorrectionOccured";
21 case ax::mojom::Event::kBlur:
23 case ax::mojom::Event::kCheckedStateChanged:
24 return "checkedStateChanged";
25 case ax::mojom::Event::kChildrenChanged:
26 return "childrenChanged";
27 case ax::mojom::Event::kClicked:
29 case ax::mojom::Event::kControlsChanged:
30 return "controlsChanged";
31 case ax::mojom::Event::kDocumentSelectionChanged:
32 return "documentSelectionChanged";
33 case ax::mojom::Event::kDocumentTitleChanged:
34 return "documentTitleChanged";
35 case ax::mojom::Event::kEndOfTest:
37 case ax::mojom::Event::kExpandedChanged:
38 return "expandedChanged";
39 case ax::mojom::Event::kFocus:
41 case ax::mojom::Event::kFocusAfterMenuClose:
42 return "focusAfterMenuClose";
43 case ax::mojom::Event::kFocusContext:
44 return "focusContext";
45 case ax::mojom::Event::kHide:
47 case ax::mojom::Event::kHitTestResult:
48 return "hitTestResult";
49 case ax::mojom::Event::kHover:
51 case ax::mojom::Event::kImageFrameUpdated:
52 return "imageFrameUpdated";
53 case ax::mojom::Event::kInvalidStatusChanged:
54 return "invalidStatusChanged";
55 case ax::mojom::Event::kLayoutComplete:
56 return "layoutComplete";
57 case ax::mojom::Event::kLiveRegionCreated:
58 return "liveRegionCreated";
59 case ax::mojom::Event::kLiveRegionChanged:
60 return "liveRegionChanged";
61 case ax::mojom::Event::kLoadComplete:
62 return "loadComplete";
63 case ax::mojom::Event::kLoadStart:
65 case ax::mojom::Event::kLocationChanged:
66 return "locationChanged";
67 case ax::mojom::Event::kMediaStartedPlaying:
68 return "mediaStartedPlaying";
69 case ax::mojom::Event::kMediaStoppedPlaying:
70 return "mediaStoppedPlaying";
71 case ax::mojom::Event::kMenuEnd:
73 case ax::mojom::Event::kMenuListItemSelected:
74 return "menuListItemSelected";
75 case ax::mojom::Event::kMenuListValueChanged:
76 return "menuListValueChanged";
77 case ax::mojom::Event::kMenuPopupEnd:
78 return "menuPopupEnd";
79 case ax::mojom::Event::kMenuPopupStart:
80 return "menuPopupStart";
81 case ax::mojom::Event::kMenuStart:
83 case ax::mojom::Event::kMouseCanceled:
84 return "mouseCanceled";
85 case ax::mojom::Event::kMouseDragged:
86 return "mouseDragged";
87 case ax::mojom::Event::kMouseMoved:
89 case ax::mojom::Event::kMousePressed:
90 return "mousePressed";
91 case ax::mojom::Event::kMouseReleased:
92 return "mouseReleased";
93 case ax::mojom::Event::kRowCollapsed:
94 return "rowCollapsed";
95 case ax::mojom::Event::kRowCountChanged:
96 return "rowCountChanged";
97 case ax::mojom::Event::kRowExpanded:
99 case ax::mojom::Event::kScrollPositionChanged:
100 return "scrollPositionChanged";
101 case ax::mojom::Event::kScrolledToAnchor:
102 return "scrolledToAnchor";
103 case ax::mojom::Event::kSelectedChildrenChanged:
104 return "selectedChildrenChanged";
105 case ax::mojom::Event::kSelection:
107 case ax::mojom::Event::kSelectionAdd:
108 return "selectionAdd";
109 case ax::mojom::Event::kSelectionRemove:
110 return "selectionRemove";
111 case ax::mojom::Event::kShow:
113 case ax::mojom::Event::kStateChanged:
114 return "stateChanged";
115 case ax::mojom::Event::kTextChanged:
116 return "textChanged";
117 case ax::mojom::Event::kTextSelectionChanged:
118 return "textSelectionChanged";
119 case ax::mojom::Event::kTooltipClosed:
120 return "tooltipClosed";
121 case ax::mojom::Event::kTooltipOpened:
122 return "tooltipOpened";
123 case ax::mojom::Event::kWindowActivated:
124 return "windowActivated";
125 case ax::mojom::Event::kWindowDeactivated:
126 return "windowDeactivated";
127 case ax::mojom::Event::kWindowVisibilityChanged:
128 return "windowVisibilityChanged";
129 case ax::mojom::Event::kTreeChanged:
130 return "treeChanged";
131 case ax::mojom::Event::kValueChanged:
132 return "valueChanged";
139 if (0 == strcmp(
event,
"none"))
140 return ax::mojom::Event::kNone;
141 if (0 == strcmp(
event,
"activedescendantchanged"))
142 return ax::mojom::Event::kActiveDescendantChanged;
143 if (0 == strcmp(
event,
"alert"))
144 return ax::mojom::Event::kAlert;
145 if (0 == strcmp(
event,
"ariaAttributeChanged"))
146 return ax::mojom::Event::kAriaAttributeChanged;
147 if (0 == strcmp(
event,
"autocorrectionOccured"))
148 return ax::mojom::Event::kAutocorrectionOccured;
149 if (0 == strcmp(
event,
"blur"))
150 return ax::mojom::Event::kBlur;
151 if (0 == strcmp(
event,
"checkedStateChanged"))
152 return ax::mojom::Event::kCheckedStateChanged;
153 if (0 == strcmp(
event,
"childrenChanged"))
154 return ax::mojom::Event::kChildrenChanged;
155 if (0 == strcmp(
event,
"clicked"))
156 return ax::mojom::Event::kClicked;
157 if (0 == strcmp(
event,
"controlsChanged"))
158 return ax::mojom::Event::kControlsChanged;
159 if (0 == strcmp(
event,
"documentSelectionChanged"))
160 return ax::mojom::Event::kDocumentSelectionChanged;
161 if (0 == strcmp(
event,
"documentTitleChanged"))
162 return ax::mojom::Event::kDocumentTitleChanged;
163 if (0 == strcmp(
event,
"endOfTest"))
164 return ax::mojom::Event::kEndOfTest;
165 if (0 == strcmp(
event,
"expandedChanged"))
166 return ax::mojom::Event::kExpandedChanged;
167 if (0 == strcmp(
event,
"focus"))
168 return ax::mojom::Event::kFocus;
169 if (0 == strcmp(
event,
"focusAfterMenuClose"))
170 return ax::mojom::Event::kFocusAfterMenuClose;
171 if (0 == strcmp(
event,
"focusContext"))
172 return ax::mojom::Event::kFocusContext;
173 if (0 == strcmp(
event,
"hide"))
174 return ax::mojom::Event::kHide;
175 if (0 == strcmp(
event,
"hitTestResult"))
176 return ax::mojom::Event::kHitTestResult;
177 if (0 == strcmp(
event,
"hover"))
178 return ax::mojom::Event::kHover;
179 if (0 == strcmp(
event,
"imageFrameUpdated"))
180 return ax::mojom::Event::kImageFrameUpdated;
181 if (0 == strcmp(
event,
"invalidStatusChanged"))
182 return ax::mojom::Event::kInvalidStatusChanged;
183 if (0 == strcmp(
event,
"layoutComplete"))
184 return ax::mojom::Event::kLayoutComplete;
185 if (0 == strcmp(
event,
"liveRegionCreated"))
186 return ax::mojom::Event::kLiveRegionCreated;
187 if (0 == strcmp(
event,
"liveRegionChanged"))
188 return ax::mojom::Event::kLiveRegionChanged;
189 if (0 == strcmp(
event,
"loadComplete"))
190 return ax::mojom::Event::kLoadComplete;
191 if (0 == strcmp(
event,
"loadStart"))
192 return ax::mojom::Event::kLoadStart;
193 if (0 == strcmp(
event,
"locationChanged"))
194 return ax::mojom::Event::kLocationChanged;
195 if (0 == strcmp(
event,
"mediaStartedPlaying"))
196 return ax::mojom::Event::kMediaStartedPlaying;
197 if (0 == strcmp(
event,
"mediaStoppedPlaying"))
198 return ax::mojom::Event::kMediaStoppedPlaying;
199 if (0 == strcmp(
event,
"menuEnd"))
200 return ax::mojom::Event::kMenuEnd;
201 if (0 == strcmp(
event,
"menuListItemSelected"))
202 return ax::mojom::Event::kMenuListItemSelected;
203 if (0 == strcmp(
event,
"menuListValueChanged"))
204 return ax::mojom::Event::kMenuListValueChanged;
205 if (0 == strcmp(
event,
"menuPopupEnd"))
206 return ax::mojom::Event::kMenuPopupEnd;
207 if (0 == strcmp(
event,
"menuPopupStart"))
208 return ax::mojom::Event::kMenuPopupStart;
209 if (0 == strcmp(
event,
"menuStart"))
210 return ax::mojom::Event::kMenuStart;
211 if (0 == strcmp(
event,
"mouseCanceled"))
212 return ax::mojom::Event::kMouseCanceled;
213 if (0 == strcmp(
event,
"mouseDragged"))
214 return ax::mojom::Event::kMouseDragged;
215 if (0 == strcmp(
event,
"mouseMoved"))
216 return ax::mojom::Event::kMouseMoved;
217 if (0 == strcmp(
event,
"mousePressed"))
218 return ax::mojom::Event::kMousePressed;
219 if (0 == strcmp(
event,
"mouseReleased"))
220 return ax::mojom::Event::kMouseReleased;
221 if (0 == strcmp(
event,
"rowCollapsed"))
222 return ax::mojom::Event::kRowCollapsed;
223 if (0 == strcmp(
event,
"rowCountChanged"))
224 return ax::mojom::Event::kRowCountChanged;
225 if (0 == strcmp(
event,
"rowExpanded"))
226 return ax::mojom::Event::kRowExpanded;
227 if (0 == strcmp(
event,
"scrollPositionChanged"))
228 return ax::mojom::Event::kScrollPositionChanged;
229 if (0 == strcmp(
event,
"scrolledToAnchor"))
230 return ax::mojom::Event::kScrolledToAnchor;
231 if (0 == strcmp(
event,
"selectedChildrenChanged"))
232 return ax::mojom::Event::kSelectedChildrenChanged;
233 if (0 == strcmp(
event,
"selection"))
234 return ax::mojom::Event::kSelection;
235 if (0 == strcmp(
event,
"selectionAdd"))
236 return ax::mojom::Event::kSelectionAdd;
237 if (0 == strcmp(
event,
"selectionRemove"))
238 return ax::mojom::Event::kSelectionRemove;
239 if (0 == strcmp(
event,
"show"))
240 return ax::mojom::Event::kShow;
241 if (0 == strcmp(
event,
"stateChanged"))
242 return ax::mojom::Event::kStateChanged;
243 if (0 == strcmp(
event,
"textChanged"))
244 return ax::mojom::Event::kTextChanged;
245 if (0 == strcmp(
event,
"textSelectionChanged"))
246 return ax::mojom::Event::kTextSelectionChanged;
247 if (0 == strcmp(
event,
"tooltipClosed"))
248 return ax::mojom::Event::kTooltipClosed;
249 if (0 == strcmp(
event,
"tooltipOpened"))
250 return ax::mojom::Event::kTooltipOpened;
251 if (0 == strcmp(
event,
"windowActivated"))
252 return ax::mojom::Event::kWindowActivated;
253 if (0 == strcmp(
event,
"windowDeactivated"))
254 return ax::mojom::Event::kWindowDeactivated;
255 if (0 == strcmp(
event,
"windowVisibilityChanged"))
256 return ax::mojom::Event::kWindowVisibilityChanged;
257 if (0 == strcmp(
event,
"treeChanged"))
258 return ax::mojom::Event::kTreeChanged;
259 if (0 == strcmp(
event,
"valueChanged"))
260 return ax::mojom::Event::kValueChanged;
261 return ax::mojom::Event::kNone;
1470 if (0 == strcmp(string_attribute,
"none"))
1472 if (0 == strcmp(string_attribute,
"accessKey"))
1474 if (0 == strcmp(string_attribute,
"ariaInvalidValue"))
1476 if (0 == strcmp(string_attribute,
"autoComplete"))
1478 if (0 == strcmp(string_attribute,
"childTreeId"))
1480 if (0 == strcmp(string_attribute,
"className"))
1482 if (0 == strcmp(string_attribute,
"containerLiveRelevant"))
1484 if (0 == strcmp(string_attribute,
"containerLiveStatus"))
1486 if (0 == strcmp(string_attribute,
"description"))
1488 if (0 == strcmp(string_attribute,
"display"))
1490 if (0 == strcmp(string_attribute,
"fontFamily"))
1492 if (0 == strcmp(string_attribute,
"htmlTag"))
1494 if (0 == strcmp(string_attribute,
"imageAnnotation"))
1496 if (0 == strcmp(string_attribute,
"imageDataUrl"))
1498 if (0 == strcmp(string_attribute,
"innerHtml"))
1500 if (0 == strcmp(string_attribute,
"inputType"))
1502 if (0 == strcmp(string_attribute,
"keyShortcuts"))
1504 if (0 == strcmp(string_attribute,
"language"))
1506 if (0 == strcmp(string_attribute,
"name"))
1508 if (0 == strcmp(string_attribute,
"liveRelevant"))
1510 if (0 == strcmp(string_attribute,
"liveStatus"))
1512 if (0 == strcmp(string_attribute,
"placeholder"))
1514 if (0 == strcmp(string_attribute,
"role"))
1516 if (0 == strcmp(string_attribute,
"roleDescription"))
1518 if (0 == strcmp(string_attribute,
"tooltip"))
1520 if (0 == strcmp(string_attribute,
"url"))
1522 if (0 == strcmp(string_attribute,
"value"))
1657 if (0 == strcmp(int_attribute,
"none"))
1659 if (0 == strcmp(int_attribute,
"defaultActionVerb"))
1661 if (0 == strcmp(int_attribute,
"dropeffect"))
1663 if (0 == strcmp(int_attribute,
"scrollX"))
1665 if (0 == strcmp(int_attribute,
"scrollXMin"))
1667 if (0 == strcmp(int_attribute,
"scrollXMax"))
1669 if (0 == strcmp(int_attribute,
"scrollY"))
1671 if (0 == strcmp(int_attribute,
"scrollYMin"))
1673 if (0 == strcmp(int_attribute,
"scrollYMax"))
1675 if (0 == strcmp(int_attribute,
"textSelStart"))
1677 if (0 == strcmp(int_attribute,
"textSelEnd"))
1679 if (0 == strcmp(int_attribute,
"ariaColumnCount"))
1681 if (0 == strcmp(int_attribute,
"ariaCellColumnIndex"))
1683 if (0 == strcmp(int_attribute,
"ariaCellColumnSpan"))
1685 if (0 == strcmp(int_attribute,
"ariaRowCount"))
1687 if (0 == strcmp(int_attribute,
"ariaCellRowIndex"))
1689 if (0 == strcmp(int_attribute,
"ariaCellRowSpan"))
1691 if (0 == strcmp(int_attribute,
"tableRowCount"))
1693 if (0 == strcmp(int_attribute,
"tableColumnCount"))
1695 if (0 == strcmp(int_attribute,
"tableHeaderId"))
1697 if (0 == strcmp(int_attribute,
"tableRowIndex"))
1699 if (0 == strcmp(int_attribute,
"tableRowHeaderId"))
1701 if (0 == strcmp(int_attribute,
"tableColumnIndex"))
1703 if (0 == strcmp(int_attribute,
"tableColumnHeaderId"))
1705 if (0 == strcmp(int_attribute,
"tableCellColumnIndex"))
1707 if (0 == strcmp(int_attribute,
"tableCellColumnSpan"))
1709 if (0 == strcmp(int_attribute,
"tableCellRowIndex"))
1711 if (0 == strcmp(int_attribute,
"tableCellRowSpan"))
1713 if (0 == strcmp(int_attribute,
"sortDirection"))
1715 if (0 == strcmp(int_attribute,
"hierarchicalLevel"))
1717 if (0 == strcmp(int_attribute,
"nameFrom"))
1719 if (0 == strcmp(int_attribute,
"descriptionFrom"))
1721 if (0 == strcmp(int_attribute,
"activedescendantId"))
1723 if (0 == strcmp(int_attribute,
"errormessageId"))
1725 if (0 == strcmp(int_attribute,
"inPageLinkTargetId"))
1727 if (0 == strcmp(int_attribute,
"memberOfId"))
1729 if (0 == strcmp(int_attribute,
"nextOnLineId"))
1731 if (0 == strcmp(int_attribute,
"popupForId"))
1733 if (0 == strcmp(int_attribute,
"previousOnLineId"))
1735 if (0 == strcmp(int_attribute,
"restriction"))
1737 if (0 == strcmp(int_attribute,
"setSize"))
1739 if (0 == strcmp(int_attribute,
"posInSet"))
1741 if (0 == strcmp(int_attribute,
"colorValue"))
1743 if (0 == strcmp(int_attribute,
"ariaCurrentState"))
1745 if (0 == strcmp(int_attribute,
"backgroundColor"))
1747 if (0 == strcmp(int_attribute,
"color"))
1749 if (0 == strcmp(int_attribute,
"haspopup"))
1751 if (0 == strcmp(int_attribute,
"invalidState"))
1753 if (0 == strcmp(int_attribute,
"checkedState"))
1755 if (0 == strcmp(int_attribute,
"listStyle"))
1757 if (0 == strcmp(int_attribute,
"text-align"))
1759 if (0 == strcmp(int_attribute,
"textDirection"))
1761 if (0 == strcmp(int_attribute,
"textPosition"))
1763 if (0 == strcmp(int_attribute,
"textStyle"))
1765 if (0 == strcmp(int_attribute,
"textOverlineStyle"))
1767 if (0 == strcmp(int_attribute,
"textStrikethroughStyle"))
1769 if (0 == strcmp(int_attribute,
"textUnderlineStyle"))
1771 if (0 == strcmp(int_attribute,
"previousFocusId"))
1773 if (0 == strcmp(int_attribute,
"nextFocusId"))
1775 if (0 == strcmp(int_attribute,
"imageAnnotationStatus"))
1777 if (0 == strcmp(int_attribute,
"domNodeId"))
1873 if (0 == strcmp(bool_attribute,
"none"))
1875 if (0 == strcmp(bool_attribute,
"busy"))
1877 if (0 == strcmp(bool_attribute,
"editableRoot"))
1879 if (0 == strcmp(bool_attribute,
"containerLiveAtomic"))
1881 if (0 == strcmp(bool_attribute,
"containerLiveBusy"))
1883 if (0 == strcmp(bool_attribute,
"grabbed"))
1885 if (0 == strcmp(bool_attribute,
"liveAtomic"))
1887 if (0 == strcmp(bool_attribute,
"modal"))
1889 if (0 == strcmp(bool_attribute,
"updateLocationOnly"))
1891 if (0 == strcmp(bool_attribute,
"canvasHasFallback"))
1893 if (0 == strcmp(bool_attribute,
"scrollable"))
1895 if (0 == strcmp(bool_attribute,
"clickable"))
1897 if (0 == strcmp(bool_attribute,
"clipsChildren"))
1899 if (0 == strcmp(bool_attribute,
"notUserSelectableStyle"))
1901 if (0 == strcmp(bool_attribute,
"selected"))
1903 if (0 == strcmp(bool_attribute,
"selectedFromFocus"))
1905 if (0 == strcmp(bool_attribute,
"supportsTextLocation"))
1907 if (0 == strcmp(bool_attribute,
"isLineBreakingObject"))
1909 if (0 == strcmp(bool_attribute,
"isPageBreakingObject"))
1911 if (0 == strcmp(bool_attribute,
"hasAriaAttribute"))
1956 const char* int_list_attribute) {
1957 if (0 == strcmp(int_list_attribute,
"none"))
1959 if (0 == strcmp(int_list_attribute,
"indirectChildIds"))
1961 if (0 == strcmp(int_list_attribute,
"controlsIds"))
1963 if (0 == strcmp(int_list_attribute,
"detailsIds"))
1965 if (0 == strcmp(int_list_attribute,
"describedbyIds"))
1967 if (0 == strcmp(int_list_attribute,
"flowtoIds"))
1969 if (0 == strcmp(int_list_attribute,
"labelledbyIds"))
1971 if (0 == strcmp(int_list_attribute,
"radioGroupIds"))
1973 if (0 == strcmp(int_list_attribute,
"markerTypes"))
1975 if (0 == strcmp(int_list_attribute,
"markerStarts"))
1977 if (0 == strcmp(int_list_attribute,
"markerEnds"))
1979 if (0 == strcmp(int_list_attribute,
"characterOffsets"))
1981 if (0 == strcmp(int_list_attribute,
"cachedLineStarts"))
1983 if (0 == strcmp(int_list_attribute,
"wordStarts"))
1985 if (0 == strcmp(int_list_attribute,
"wordEnds"))
1987 if (0 == strcmp(int_list_attribute,
"customActionIds"))
2216 if (0 == strcmp(text_boundary,
"object"))
2218 if (0 == strcmp(text_boundary,
"character"))
2220 if (0 == strcmp(text_boundary,
"format"))
2222 if (0 == strcmp(text_boundary,
"lineEnd"))
2224 if (0 == strcmp(text_boundary,
"lineStart"))
2226 if (0 == strcmp(text_boundary,
"lineStartOrEnd"))
2228 if (0 == strcmp(text_boundary,
"pageEnd"))
2230 if (0 == strcmp(text_boundary,
"pageStart"))
2232 if (0 == strcmp(text_boundary,
"pageStartOrEnd"))
2234 if (0 == strcmp(text_boundary,
"paragraphEnd"))
2236 if (0 == strcmp(text_boundary,
"paragraphStart"))
2238 if (0 == strcmp(text_boundary,
"paragraphStartOrEnd"))
2240 if (0 == strcmp(text_boundary,
"sentenceEnd"))
2242 if (0 == strcmp(text_boundary,
"sentenceStart"))
2244 if (0 == strcmp(text_boundary,
"sentenceStartOrEnd"))
2246 if (0 == strcmp(text_boundary,
"webPage"))
2248 if (0 == strcmp(text_boundary,
"wordEnd"))
2250 if (0 == strcmp(text_boundary,
"wordStart"))
2252 if (0 == strcmp(text_boundary,
"wordStartOrEnd"))