OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // TODO(nektar): Migrate entire file to Mojoq. | 5 // TODO(nektar): Migrate entire file to Mojoq. |
6 // These should be kept in sync with third_party/WebKit/public/web/WebAXEnums.h | 6 // These should be kept in sync with third_party/WebKit/public/web/WebAXEnums.h |
7 // until the Chromium and Blink trees are merged. | 7 // until the Chromium and Blink trees are merged. |
8 [camel_case_enum_to_string=true] namespace ui { | 8 [camel_case_enum_to_string=true] namespace ui { |
9 | 9 |
10 // For new entries to the following four enums, also add to | 10 // For new entries to the following four enums, also add to |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
273 set_value, | 273 set_value, |
274 | 274 |
275 show_context_menu | 275 show_context_menu |
276 }; | 276 }; |
277 | 277 |
278 enum AXActionFlags { | 278 enum AXActionFlags { |
279 request_images, | 279 request_images, |
280 request_inline_text_boxes | 280 request_inline_text_boxes |
281 }; | 281 }; |
282 | 282 |
283 // Lists the actions that can be performed on a given element. | |
dmazzoni
2016/11/22 01:01:08
Please add a comment explaining the difference bet
| |
284 // Only one action is supported for now. | |
285 enum AXSupportedAction { | |
286 activate, | |
287 check, | |
288 click, | |
289 jump, | |
290 open, | |
291 press, | |
292 select, | |
293 uncheck | |
294 }; | |
295 | |
283 // A change to the accessibility tree. | 296 // A change to the accessibility tree. |
284 enum AXMutation { | 297 enum AXMutation { |
285 node_created, | 298 node_created, |
286 subtree_created, | 299 subtree_created, |
287 node_changed, | 300 node_changed, |
288 node_removed | 301 node_removed |
289 }; | 302 }; |
290 | 303 |
291 [cpp_enum_prefix_override="ax_attr"] enum AXStringAttribute { | 304 [cpp_enum_prefix_override="ax_attr"] enum AXStringAttribute { |
292 access_key, | 305 access_key, |
293 action, | |
294 // Only used when invalid_state == invalid_state_other. | 306 // Only used when invalid_state == invalid_state_other. |
295 aria_invalid_value, | 307 aria_invalid_value, |
296 auto_complete, | 308 auto_complete, |
297 container_live_relevant, | 309 container_live_relevant, |
298 container_live_status, | 310 container_live_status, |
299 description, | 311 description, |
300 display, | 312 display, |
301 // Only present when different from parent. | 313 // Only present when different from parent. |
302 font_family, | 314 font_family, |
303 html_tag, | 315 html_tag, |
304 // Only present when different from parent. | 316 // Only present when different from parent. |
305 language, | 317 language, |
306 name, | 318 name, |
307 live_relevant, | 319 live_relevant, |
308 live_status, | 320 live_status, |
309 placeholder, | 321 placeholder, |
310 role, | 322 role, |
311 shortcut, | 323 shortcut, |
312 url, | 324 url, |
313 value | 325 value |
314 }; | 326 }; |
315 | 327 |
316 [cpp_enum_prefix_override="ax_attr"] enum AXIntAttribute { | 328 [cpp_enum_prefix_override="ax_attr"] enum AXIntAttribute { |
329 action, | |
317 // Scrollable container attributes. | 330 // Scrollable container attributes. |
318 scroll_x, | 331 scroll_x, |
319 scroll_x_min, | 332 scroll_x_min, |
320 scroll_x_max, | 333 scroll_x_max, |
321 scroll_y, | 334 scroll_y, |
322 scroll_y_min, | 335 scroll_y_min, |
323 scroll_y_max, | 336 scroll_y_max, |
324 | 337 |
325 // Attributes for retrieving the endpoints of a selection. | 338 // Attributes for retrieving the endpoints of a selection. |
326 text_sel_start, | 339 text_sel_start, |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
600 // First node is before the second one. | 613 // First node is before the second one. |
601 before, | 614 before, |
602 | 615 |
603 // Nodes are the same. | 616 // Nodes are the same. |
604 equal, | 617 equal, |
605 | 618 |
606 // First node is after the second one. | 619 // First node is after the second one. |
607 after | 620 after |
608 }; | 621 }; |
609 }; | 622 }; |
OLD | NEW |