| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 required, | 224 required, |
| 225 richly_editable, | 225 richly_editable, |
| 226 selectable, | 226 selectable, |
| 227 selected, | 227 selected, |
| 228 // Grows vertically, e.g. menu or combo box. | 228 // Grows vertically, e.g. menu or combo box. |
| 229 vertical, | 229 vertical, |
| 230 visited | 230 visited |
| 231 }; | 231 }; |
| 232 | 232 |
| 233 // An action to be taken on an accessibility node. | 233 // An action to be taken on an accessibility node. |
| 234 // In contrast to |AXSupportedAction|, these describe what happens to the obje
ct, e.g. "FOCUS". |
| 234 enum AXAction { | 235 enum AXAction { |
| 235 blur, | 236 blur, |
| 236 | 237 |
| 237 // Decrement a slider or range control by one step value. | 238 // Decrement a slider or range control by one step value. |
| 238 decrement, | 239 decrement, |
| 239 | 240 |
| 240 // Do the default action for an object, typically this means "click". | 241 // Do the default action for an object, typically this means "click". |
| 241 do_default, | 242 do_default, |
| 242 | 243 |
| 243 focus, | 244 focus, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 set_value, | 277 set_value, |
| 277 | 278 |
| 278 show_context_menu | 279 show_context_menu |
| 279 }; | 280 }; |
| 280 | 281 |
| 281 enum AXActionFlags { | 282 enum AXActionFlags { |
| 282 request_images, | 283 request_images, |
| 283 request_inline_text_boxes | 284 request_inline_text_boxes |
| 284 }; | 285 }; |
| 285 | 286 |
| 287 // Lists the actions that can be performed on a given node. |
| 288 // In contrast to |AXAction|, these describe what the user can do on the objec
t, e.g. "PRESS", not what happens to the object as a result. |
| 289 // Only one action is supported for now. |
| 290 enum AXSupportedAction { |
| 291 activate, |
| 292 check, |
| 293 click, |
| 294 jump, |
| 295 open, |
| 296 press, |
| 297 select, |
| 298 uncheck |
| 299 }; |
| 300 |
| 286 // A change to the accessibility tree. | 301 // A change to the accessibility tree. |
| 287 enum AXMutation { | 302 enum AXMutation { |
| 288 node_created, | 303 node_created, |
| 289 subtree_created, | 304 subtree_created, |
| 290 node_changed, | 305 node_changed, |
| 291 node_removed | 306 node_removed |
| 292 }; | 307 }; |
| 293 | 308 |
| 294 [cpp_enum_prefix_override="ax_attr"] enum AXStringAttribute { | 309 [cpp_enum_prefix_override="ax_attr"] enum AXStringAttribute { |
| 295 access_key, | 310 access_key, |
| 296 action, | |
| 297 // Only used when invalid_state == invalid_state_other. | 311 // Only used when invalid_state == invalid_state_other. |
| 298 aria_invalid_value, | 312 aria_invalid_value, |
| 299 auto_complete, | 313 auto_complete, |
| 300 container_live_relevant, | 314 container_live_relevant, |
| 301 container_live_status, | 315 container_live_status, |
| 302 description, | 316 description, |
| 303 display, | 317 display, |
| 304 // Only present when different from parent. | 318 // Only present when different from parent. |
| 305 font_family, | 319 font_family, |
| 306 html_tag, | 320 html_tag, |
| 307 // Only present when different from parent. | 321 // Only present when different from parent. |
| 308 language, | 322 language, |
| 309 name, | 323 name, |
| 310 live_relevant, | 324 live_relevant, |
| 311 live_status, | 325 live_status, |
| 312 placeholder, | 326 placeholder, |
| 313 role, | 327 role, |
| 314 shortcut, | 328 shortcut, |
| 315 url, | 329 url, |
| 316 value | 330 value |
| 317 }; | 331 }; |
| 318 | 332 |
| 319 [cpp_enum_prefix_override="ax_attr"] enum AXIntAttribute { | 333 [cpp_enum_prefix_override="ax_attr"] enum AXIntAttribute { |
| 334 action, |
| 320 // Scrollable container attributes. | 335 // Scrollable container attributes. |
| 321 scroll_x, | 336 scroll_x, |
| 322 scroll_x_min, | 337 scroll_x_min, |
| 323 scroll_x_max, | 338 scroll_x_max, |
| 324 scroll_y, | 339 scroll_y, |
| 325 scroll_y_min, | 340 scroll_y_min, |
| 326 scroll_y_max, | 341 scroll_y_max, |
| 327 | 342 |
| 328 // Attributes for retrieving the endpoints of a selection. | 343 // Attributes for retrieving the endpoints of a selection. |
| 329 text_sel_start, | 344 text_sel_start, |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 // First node is before the second one. | 618 // First node is before the second one. |
| 604 before, | 619 before, |
| 605 | 620 |
| 606 // Nodes are the same. | 621 // Nodes are the same. |
| 607 equal, | 622 equal, |
| 608 | 623 |
| 609 // First node is after the second one. | 624 // First node is after the second one. |
| 610 after | 625 after |
| 611 }; | 626 }; |
| 612 }; | 627 }; |
| OLD | NEW |