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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 vertical, 239 vertical,
240 visited 240 visited
241 }; 241 };
242 242
243 // An action to be taken on an accessibility node. 243 // An action to be taken on an accessibility node.
244 // In contrast to |AXDefaultActionVerb|, these describe what happens to the 244 // In contrast to |AXDefaultActionVerb|, these describe what happens to the
245 // object, e.g. "FOCUS". 245 // object, e.g. "FOCUS".
246 enum AXAction { 246 enum AXAction {
247 blur, 247 blur,
248 248
249 custom_action,
250
249 // Decrement a slider or range control by one step value. 251 // Decrement a slider or range control by one step value.
250 decrement, 252 decrement,
251 253
252 // Do the default action for an object, typically this means "click". 254 // Do the default action for an object, typically this means "click".
253 do_default, 255 do_default,
254 256
255 focus, 257 focus,
256 258
257 // Return the content of this image object in the image_data attribute. 259 // Return the content of this image object in the image_data attribute.
258 get_image_data, 260 get_image_data,
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 524
523 // Used for caching. Do not read directly. Use 525 // Used for caching. Do not read directly. Use
524 // |AXNode::GetOrComputeLineStartOffsets| 526 // |AXNode::GetOrComputeLineStartOffsets|
525 // For all text fields and content editable roots: A list of the start 527 // For all text fields and content editable roots: A list of the start
526 // offsets of each line inside this object. 528 // offsets of each line inside this object.
527 cached_line_starts, 529 cached_line_starts,
528 530
529 // For inline text. These int lists must be the same size; they represent 531 // For inline text. These int lists must be the same size; they represent
530 // the start and end character offset of each word within this text. 532 // the start and end character offset of each word within this text.
531 word_starts, 533 word_starts,
532 word_ends 534 word_ends,
535
536 // Used for an UI element to define custom actions for it. For example, a
537 // list UI will allow a user to reorder items in the list by dragging the
538 // items. Developer can expose those actions as custom actions. Currently
539 // custom actions are used only in Android window.
540 custom_action_ids
541 };
542
543 [cpp_enum_prefix_override="ax_attr"] enum AXStringListAttribute {
544 // Descriptions for custom actions. This must be aligned with
545 // custom_action_ids.
546 custom_action_descriptions
533 }; 547 };
534 548
535 // TODO(dmazzoni, nektar): make this list not grow exponentially as new 549 // TODO(dmazzoni, nektar): make this list not grow exponentially as new
536 // MarkerTypes are added 550 // MarkerTypes are added
537 enum AXMarkerType { 551 enum AXMarkerType {
538 // Assignments are ignored by the parser, but are kept here for clarity. 552 // Assignments are ignored by the parser, but are kept here for clarity.
539 spelling = 1, 553 spelling = 1,
540 grammar = 2, 554 grammar = 2,
541 spelling_grammar = 3, 555 spelling_grammar = 3,
542 text_match = 4, 556 text_match = 4,
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 // First node is before the second one. 686 // First node is before the second one.
673 before, 687 before,
674 688
675 // Nodes are the same. 689 // Nodes are the same.
676 equal, 690 equal,
677 691
678 // First node is after the second one. 692 // First node is after the second one.
679 after 693 after
680 }; 694 };
681 }; 695 };
OLDNEW
« 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