| 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 three enums, also add to | 10 // For new entries to the following four enums, also add to |
| 11 // chrome/common/extensions/api/automation.idl. This is enforced | 11 // chrome/common/extensions/api/automation.idl. This is enforced |
| 12 // by a PRESUBMIT check. | 12 // by a PRESUBMIT check. |
| 13 // | 13 // |
| 14 // Explanation of the comments next to these events: | 14 // Explanation of the comments next to these events: |
| 15 // | 15 // |
| 16 // Web: this event is only used in web content. Unless a specific platform | 16 // Web: this event is only used in web content. Unless a specific platform |
| 17 // is specified, it fires a native event on multiple platforms. | 17 // is specified, it fires a native event on multiple platforms. |
| 18 // | 18 // |
| 19 // Native: this event is only used in native UI. | 19 // Native: this event is only used in native UI. |
| 20 // | 20 // |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 read_only, | 223 read_only, |
| 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. |
| 234 enum AXAction { |
| 235 // Do the default action for an object, typically this means "click". |
| 236 do_default, |
| 237 |
| 238 // Given a point, find the object it corresponds to and fire a |
| 239 // HOVER event on it in response. |
| 240 hit_test, |
| 241 |
| 242 // Scroll any scrollable containers to make the target object visible |
| 243 // on the screen. Optionally pass a subfocus rect in |
| 244 // AXActionData.target_rect. |
| 245 scroll_to_make_visible, |
| 246 |
| 247 // Scroll the given object to a specified point on the screen in |
| 248 // global screen coordinates. Pass a point in AXActionData.target_point. |
| 249 scroll_to_point, |
| 250 |
| 251 set_accessibility_focus, |
| 252 set_focus, |
| 253 set_scroll_offset, |
| 254 set_selection, |
| 255 set_value, |
| 256 show_context_menu |
| 257 }; |
| 258 |
| 259 enum AXActionFlags { |
| 260 request_images, |
| 261 request_inline_text_boxes, |
| 262 set_sequential_focus_navigation_point |
| 263 }; |
| 264 |
| 233 // A change to the accessibility tree. | 265 // A change to the accessibility tree. |
| 234 enum AXMutation { | 266 enum AXMutation { |
| 235 node_created, | 267 node_created, |
| 236 subtree_created, | 268 subtree_created, |
| 237 node_changed, | 269 node_changed, |
| 238 node_removed | 270 node_removed |
| 239 }; | 271 }; |
| 240 | 272 |
| 241 [cpp_enum_prefix_override="ax_attr"] enum AXStringAttribute { | 273 [cpp_enum_prefix_override="ax_attr"] enum AXStringAttribute { |
| 242 access_key, | 274 access_key, |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 // First node is before the second one. | 582 // First node is before the second one. |
| 551 before, | 583 before, |
| 552 | 584 |
| 553 // Nodes are the same. | 585 // Nodes are the same. |
| 554 equal, | 586 equal, |
| 555 | 587 |
| 556 // First node is after the second one. | 588 // First node is after the second one. |
| 557 after | 589 after |
| 558 }; | 590 }; |
| 559 }; | 591 }; |
| OLD | NEW |