Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/accessibility/ARIA.js

Issue 2200893003: DevTools: Add autocomplete for ARIA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove done TODO Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 WebInspector.ARIAMetadata.initializeWithConfig({
lushnikov 2016/08/23 17:23:51 why do you need this file?
aboxhall 2016/08/23 21:06:16 I don't quite follow the question. This provides t
lushnikov 2016/08/24 23:05:10 This file seems to be identical to ARIAConfig - lo
2 "attributes": {
3 "aria-activedescendant": { "type": "IDREF" },
4 "aria-atomic": { "default": "false", "type": "boolean" },
5 "aria-autocomplete": {
6 "default": "none",
7 "enum": [ "inline", "list", "both", "none" ],
8 "type": "NMTOKEN"
9 },
10 "aria-busy": { "default": "false", "type": "boolean" },
11 "aria-checked": {
12 "default": "undefined",
13 "enum": [ "true", "false", "mixed", "undefined" ],
14 "type": "NMTOKEN"
15 },
16 "aria-controls": { "type": "IDREFS" },
17 "aria-describedby": { "type": "IDREFS"},
18 "aria-disabled": { "default": "false", "type": "boolean" },
19 "aria-dropeffect": {
20 "default": "none",
21 "enum": [ "copy", "move", "link", "execute", "popup", "none" ],
22 "type": "NMTOKENS"
23 },
24 "aria-expanded": {
25 "default": "undefined",
26 "enum": [ "true", "false", "undefined" ],
27 "type": "NMTOKEN"
28 },
29 "aria-flowto": { "type": "IDREFS" },
30 "aria-grabbed": {
31 "default": "undefined",
32 "enum": [ "true", "false", "undefined" ],
33 "type": "NMTOKEN"
34 },
35 "aria-haspopup": { "default": "false", "type": "boolean" },
36 "aria-hidden": { "default": "false", "type": "boolean" },
37 "aria-invalid": {
38 "default": "false",
39 "enum": [ "grammar", "false", "spelling", "true" ],
40 "type": "NMTOKEN"
41 },
42 "aria-label": { "type": "string" },
43 "aria-labelledby": { "type": "IDREFS" },
44 "aria-level": { "type": "integer" },
45 "aria-live": {
46 "default": "off",
47 "enum": [ "off", "polite", "assertive" ],
48 "type": "NMTOKEN"
49 },
50 "aria-multiline": { "default": "false", "type": "boolean" },
51 "aria-multiselectable": { "default": "false", "type": "boolean" },
52 "aria-orientation": {
53 "default": "vertical",
54 "enum": [ "horizontal", "vertical" ],
55 "type": "NMTOKEN"
56 },
57 "aria-owns": { "type": "IDREFS" },
58 "aria-posinset": { "type": "integer" },
59 "aria-pressed": {
60 "default": "undefined",
61 "enum": [ "true", "false", "mixed", "undefined" ],
62 "type": "NMTOKEN"
63 },
64 "aria-readonly": { "default": "false", "type": "boolean" },
65 "aria-relevant": {
66 "default": "additions text",
67 "enum": [ "additions", "removals", "text", "all" ],
68 "type": "NMTOKENS"
69 },
70 "aria-required": { "default": "false", "type": "boolean" },
71 "aria-selected": {
72 "default": "undefined",
73 "enum": [ "true", "false", "undefined" ],
74 "type": "NMTOKEN"
75 },
76 "aria-setsize": { "type": "integer" },
77 "aria-sort": {
78 "default": "none",
79 "enum": [ "ascending", "descending", "none", "other" ],
80 "type": "NMTOKEN"
81 },
82 "aria-valuemax": { "type": "decimal" },
83 "aria-valuemin": { "type": "decimal" },
84 "aria-valuenow": { "type": "decimal" },
85 "aria-valuetext": { "type": "string" },
86 "tabindex": { "type": "integer" }
87 },
88 "roles": {
89 "alert": { "nameFrom": ["author"], "superclasses": ["region"] },
90 "alertdialog": { "nameFrom": ["author"], "superclasses": ["alert", "dial og"] },
91 "application": { "nameFrom": ["author"], "superclasses": ["landmark"] },
92 "article": { "nameFrom": ["author"], "superclasses": ["document", "regio n"]},
93 "banner": { "nameFrom": ["author"], "superclasses": ["landmark"] },
94 "button": {
95 "nameFrom": ["contents", "author"],
96 "superclasses": ["command"],
97 "supportedAttributes": ["aria-expanded", "aria-pressed"]
98 },
99 "checkbox": {
100 "nameFrom": ["contents", "author"],
101 "requiredAttributes": ["aria-checked"],
102 "superclasses": ["input"]
103 },
104 "columnheader": {
105 "nameFrom": ["contents", "author"],
106 "scope": ["row"],
107 "superclasses": ["gridcell", "sectionhead", "widget"],
108 "supportedAttributes": ["aria-sort"]
109 },
110 "combobox": {
111 "mustContain": ["listbox", "textbox"],
112 "nameFrom": ["author"],
113 "requiredAttributes": ["aria-expanded"],
114 "superclasses": ["select"],
115 "supportedAttributes": ["aria-autocomplete","aria-required"]
116 },
117 "command": {
118 "abstract": true,
119 "nameFrom": ["author"],
120 "superclasses": ["widget"]
121 },
122 "complementary": { "nameFrom": ["author"], "superclasses": ["landmark"] },
123 "composite": {
124 "abstract": true,
125 "nameFrom": ["author"],
126 "superclasses": ["widget"],
127 "supportedAttributes": ["aria-activedescendant"],
128 },
129 "contentinfo": { "nameFrom": ["author"], "superclasses": ["landmark"] },
130 "definition": { "nameFrom": ["author"], "superclasses": ["section"] },
131 "dialog": { "nameFrom": ["author"], "superclasses": ["window"] },
132 "directory": { "nameFrom": ["contents", "author"], "superclasses": ["lis t"] },
133 "document": {
134 "nameFrom": ["author"],
135 "superclasses": ["structure"],
136 "supportedAttributes": ["aria-expanded"]
137 },
138 "form": { "nameFrom": ["author"], "superclasses": ["landmark"] },
139 "grid": {
140 "mustContain": ["row", "rowgroup", "row"],
141 "nameFrom": ["author"],
142 "superclasses": ["composite", "region"],
143 "supportedAttributes": ["aria-level", "aria-multiselectable", "aria- readonly"]
144 },
145 "gridcell": {
146 "nameFrom": ["contents", "author"],
147 "scope": ["row"],
148 "superclasses": ["section", "widget"],
149 "supportedAttributes": ["aria-readonly", "aria-required", "aria-sele cted"]
150 },
151 "group": {
152 "nameFrom": ["author"],
153 "superclasses": ["section"],
154 "supportedAttributes": ["aria-activedescendant"]
155 },
156 "heading": { "superclasses": ["sectionhead"], "supportedAttributes": ["a ria-level"] },
157 "img": { "nameFrom": ["author"], "superclasses": ["section"] },
158 "input": {
159 "abstract": true,
160 "nameFrom": ["author"],
161 "superclasses": ["widget"]
162 },
163 "landmark": {
164 "abstract": true,
165 "nameFrom": ["contents", "author"],
166 "superclasses": ["region"]
167 },
168 "link": {
169 "nameFrom": ["contents", "author"],
170 "superclasses": ["command"],
171 "supportedAttributes": ["aria-expanded"]
172 },
173 "list": {
174 "mustContain": ["group", "listitem", "listitem"],
175 "nameFrom": ["author"],
176 "superclasses": ["region"]
177 },
178 "listbox": {
179 "mustContain": ["option"],
180 "nameFrom": ["author"],
181 "superclasses": ["list", "select"],
182 "supportedAttributes": ["aria-multiselectable", "aria-required"]
183 },
184 "listitem": {
185 "nameFrom": ["contents", "author"],
186 "scope": ["list"],
187 "superclasses": ["section"],
188 "supportedAttributes": ["aria-level", "aria-posinset", "aria-setsize "]
189 },
190 "log": { "nameFrom": ["author"], "superclasses": ["region"] },
191 "main": { "nameFrom": ["author"], "superclasses": ["landmark"] },
192 "marquee": { "superclasses": ["section"] },
193 "math": { "nameFrom": ["author"], "superclasses": ["section"]},
194 "menu": {
195 "mustContain": ["group", "menuitemradio", "menuitem", "menuitemcheck box", "menuitemradio"],
196 "nameFrom": ["author"],
197 "superclasses": ["list", "select"]
198 },
199 "menubar": { "nameFrom": ["author"], "superclasses": ["menu"] },
200 "menuitem": {
201 "nameFrom": ["contents", "author"],
202 "scope": ["menu", "menubar"],
203 "superclasses": ["command"]
204 },
205 "menuitemcheckbox": {
206 "nameFrom": ["contents", "author"],
207 "scope": ["menu", "menubar"],
208 "superclasses": ["checkbox", "menuitem"]
209 },
210 "menuitemradio": {
211 "nameFrom": ["contents", "author"],
212 "scope": ["menu", "menubar"],
213 "superclasses": ["menuitemcheckbox", "radio"]
214 },
215 "navigation": { "nameFrom": ["author"], "superclasses": ["landmark"] },
216 "note": { "nameFrom": ["author"], "superclasses": ["section"] },
217 "option": {
218 "nameFrom": ["contents", "author"],
219 "superclasses": ["input"],
220 "supportedAttributes": ["aria-checked", "aria-posinset", "aria-selec ted", "aria-setsize"]
221 },
222 "presentation": { "superclasses": ["structure"] },
223 "progressbar": { "nameFrom": ["author"], "superclasses": ["range"] },
224 "radio": {
225 "nameFrom": ["contents", "author"],
226 "superclasses": ["checkbox", "option"]
227 },
228 "radiogroup": {
229 "mustContain": ["radio"],
230 "nameFrom": ["author"],
231 "superclasses": ["select"],
232 "supportedAttributes": ["aria-required"]
233 },
234 "range": {
235 "abstract": true,
236 "nameFrom": ["author"],
237 "superclasses": ["widget"],
238 "supportedAttributes": ["aria-valuemax", "aria-valuemin", "aria-valu enow", "aria-valuetext"]
239 },
240 "region": { "nameFrom": ["author"], "superclasses": ["section"] },
241 "roletype": {
242 "abstract": true,
243 "supportedAttributes": [
244 "aria-atomic",
245 "aria-busy",
246 "aria-controls",
247 "aria-describedby",
248 "aria-disabled",
249 "aria-dropeffect",
250 "aria-flowto",
251 "aria-grabbed",
252 "aria-haspopup",
253 "aria-hidden",
254 "aria-invalid",
255 "aria-label",
256 "aria-labelledby",
257 "aria-live",
258 "aria-owns",
259 "aria-relevant"
260 ]
261 },
262 "row": {
263 "mustContain": ["columnheader", "gridcell", "rowheader"],
264 "nameFrom": ["contents", "author"],
265 "scope": ["grid", "rowgroup", "treegrid"],
266 "superclasses": ["group", "widget"],
267 "supportedAttributes": ["aria-level", "aria-selected"]
268 },
269 "rowgroup": {
270 "mustContain": ["row"],
271 "nameFrom": ["contents", "author"],
272 "scope": ["grid"],
273 "superclasses": ["group"]
274 },
275 "rowheader": {
276 "nameFrom": ["contents", "author"],
277 "scope": ["row"],
278 "superclasses": ["gridcell", "sectionhead", "widget"],
279 "supportedAttributes": ["aria-sort"]
280 },
281 "scrollbar": {
282 "nameFrom": ["author"],
283 "requiredAttributes": [
284 "aria-controls",
285 "aria-orientation",
286 "aria-valuemax",
287 "aria-valuemin",
288 "aria-valuenow"
289 ],
290 "superclasses": ["input", "range"]
291 },
292 "search": { "nameFrom": ["author"], "superclasses": ["landmark"] },
293 "section": {
294 "abstract": true,
295 "nameFrom": ["contents", "author"],
296 "superclasses": ["structure"],
297 "supportedAttributes": ["aria-expanded"]
298 },
299 "sectionhead": {
300 "abstract": true,
301 "nameFrom": ["contents", "author"],
302 "superclasses": ["structure"],
303 "supportedAttributes": ["aria-expanded"]
304 },
305 "select": {
306 "abstract": true,
307 "nameFrom": ["author"],
308 "superclasses": ["composite", "group", "input"]
309 },
310 "separator": {
311 "nameFrom": ["author"],
312 "superclasses": ["structure"],
313 "supportedAttributes": ["aria-expanded", "aria-orientation"]
314 },
315 "slider": {
316 "nameFrom": ["author"],
317 "requiredAttributes": ["aria-valuemax", "aria-valuemin", "aria-value now"],
318 "superclasses": ["input", "range"],
319 "supportedAttributes": ["aria-orientation"]
320 },
321 "spinbutton": {
322 "nameFrom": ["author"],
323 "requiredAttributes": ["aria-valuemax", "aria-valuemin", "aria-value now"],
324 "superclasses": ["input", "range"],
325 "supportedAttributes": ["aria-required"]
326 },
327 "status": { "superclasses": ["region"] },
328 "structure": { "abstract": true, "superclasses": ["roletype"] },
329 "tab": {
330 "nameFrom": ["contents", "author"],
331 "scope": ["tablist"],
332 "superclasses": ["sectionhead", "widget"],
333 "supportedAttributes": ["aria-selected"]
334 },
335 "tablist": {
336 "mustContain": ["tab"],
337 "nameFrom": ["author"],
338 "superclasses": ["composite", "directory"],
339 "supportedAttributes": ["aria-level"]
340 },
341 "tabpanel": { "nameFrom": ["author"], "superclasses": ["region"] },
342 "textbox": {
343 "nameFrom": ["author"],
344 "superclasses": ["input"],
345 "supportedAttributes": [
346 "aria-activedescendant",
347 "aria-autocomplete",
348 "aria-multiline",
349 "aria-readonly",
350 "aria-required"
351 ]
352 },
353 "timer": { "nameFrom": ["author"], "superclasses": ["status"] },
354 "toolbar": { "nameFrom": ["author"], "superclasses": ["group"] },
355 "tooltip": { "superclasses": ["section"] },
356 "tree": {
357 "mustContain": ["group", "treeitem", "treeitem"],
358 "nameFrom": ["author"],
359 "superclasses": ["select"],
360 "supportedAttributes": ["aria-multiselectable", "aria-required"]
361 },
362 "treegrid": {
363 "mustContain": ["row"],
364 "nameFrom": ["author"],
365 "superclasses": ["grid","tree"]
366 },
367 "treeitem": {
368 "nameFrom": ["contents", "author"],
369 "scope": ["group", "tree"],
370 "superclasses": ["listitem", "option"]
371 },
372 "widget": { "abstract": true, "superclasses": ["roletype"] },
373 "window": {
374 "abstract": true,
375 "nameFrom": ["author"],
376 "superclasses": ["roletype"],
377 "supportedAttributes": ["aria-expanded"]
378 }
379 }
380 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698