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

Unified Diff: ui/accessibility/ax_enums.idl

Issue 2873373005: Add custom action support (Closed)
Patch Set: Migrate to DataObjectBuilder. Created 3 years, 6 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') | ui/accessibility/ax_node_data.h » ('j') | 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 8320bd707359755f79bdaf95f34b67e9cff6aae1..0dfdc5e23a49a38069d07c2df475d2b35f511115 100644
--- a/ui/accessibility/ax_enums.idl
+++ b/ui/accessibility/ax_enums.idl
@@ -246,6 +246,8 @@
enum AXAction {
blur,
+ custom_action,
+
// Decrement a slider or range control by one step value.
decrement,
@@ -529,7 +531,19 @@
// For inline text. These int lists must be the same size; they represent
// the start and end character offset of each word within this text.
word_starts,
- word_ends
+ word_ends,
+
+ // Used for an UI element to define custom actions for it. For example, a
+ // list UI will allow a user to reorder items in the list by dragging the
+ // items. Developer can expose those actions as custom actions. Currently
+ // custom actions are used only in Android window.
+ custom_action_ids
+ };
+
+ [cpp_enum_prefix_override="ax_attr"] enum AXStringListAttribute {
+ // Descriptions for custom actions. This must be aligned with
+ // custom_action_ids.
+ custom_action_descriptions
};
// TODO(dmazzoni, nektar): make this list not grow exponentially as new
« no previous file with comments | « ui/accessibility/ax_action_data.cc ('k') | ui/accessibility/ax_node_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698