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

Unified Diff: ui/accessibility/ax_enums.idl

Issue 2426193003: Re-land: Create AXAction and AXActionData as a way to simplify accessibility actions (Closed)
Patch Set: Rebase Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/accessibility/ax_action_data.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_enums.idl
diff --git a/ui/accessibility/ax_enums.idl b/ui/accessibility/ax_enums.idl
index d84530101c5f5815ac9f6cbd90853bd714839f21..f74004cc8a96a78504f27605ffc565284f763405 100644
--- a/ui/accessibility/ax_enums.idl
+++ b/ui/accessibility/ax_enums.idl
@@ -7,7 +7,7 @@
// until the Chromium and Blink trees are merged.
[camel_case_enum_to_string=true] namespace ui {
- // For new entries to the following three enums, also add to
+ // For new entries to the following four enums, also add to
// chrome/common/extensions/api/automation.idl. This is enforced
// by a PRESUBMIT check.
//
@@ -230,6 +230,38 @@
visited
};
+ // An action to be taken on an accessibility node.
+ enum AXAction {
+ // Do the default action for an object, typically this means "click".
+ do_default,
+
+ // Given a point, find the object it corresponds to and fire a
+ // HOVER event on it in response.
+ hit_test,
+
+ // Scroll any scrollable containers to make the target object visible
+ // on the screen. Optionally pass a subfocus rect in
+ // AXActionData.target_rect.
+ scroll_to_make_visible,
+
+ // Scroll the given object to a specified point on the screen in
+ // global screen coordinates. Pass a point in AXActionData.target_point.
+ scroll_to_point,
+
+ set_accessibility_focus,
+ set_focus,
+ set_scroll_offset,
+ set_selection,
+ set_value,
+ show_context_menu
+ };
+
+ enum AXActionFlags {
+ request_images,
+ request_inline_text_boxes,
+ set_sequential_focus_navigation_point
+ };
+
// A change to the accessibility tree.
enum AXMutation {
node_created,
« no previous file with comments | « ui/accessibility/ax_action_data.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698