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

Side by Side Diff: ui/accessibility/ax_enums.idl

Issue 2873373005: Add custom action support (Closed)
Patch Set: Removed MinVersion from struct. 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
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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 525
524 // Used for caching. Do not read directly. Use 526 // Used for caching. Do not read directly. Use
525 // |AXNode::GetOrComputeLineStartOffsets| 527 // |AXNode::GetOrComputeLineStartOffsets|
526 // For all text fields and content editable roots: A list of the start 528 // For all text fields and content editable roots: A list of the start
527 // offsets of each line inside this object. 529 // offsets of each line inside this object.
528 cached_line_starts, 530 cached_line_starts,
529 531
530 // For inline text. These int lists must be the same size; they represent 532 // For inline text. These int lists must be the same size; they represent
531 // the start and end character offset of each word within this text. 533 // the start and end character offset of each word within this text.
532 word_starts, 534 word_starts,
533 word_ends 535 word_ends,
536
537 // Used for an UI element to define custom actions for it. For example, a
538 // list UI will allow a user to reorder items in the list by dragging the
539 // items. Developer can expose those actions as custom actions. Currently
540 // custom actions are used only in Android window.
541 custom_action_ids
542 };
543
544 [cpp_enum_prefix_override="ax_attr"] enum AXStringListAttribute {
545 // Descriptions for custom actions. This must be aligned with
546 // custom_action_ids.
547 custom_action_descriptions
534 }; 548 };
535 549
536 // TODO(dmazzoni, nektar): make this list not grow exponentially as new 550 // TODO(dmazzoni, nektar): make this list not grow exponentially as new
537 // MarkerTypes are added 551 // MarkerTypes are added
538 enum AXMarkerType { 552 enum AXMarkerType {
539 // Assignments are ignored by the parser, but are kept here for clarity. 553 // Assignments are ignored by the parser, but are kept here for clarity.
540 spelling = 1, 554 spelling = 1,
541 grammar = 2, 555 grammar = 2,
542 spelling_grammar = 3, 556 spelling_grammar = 3,
543 text_match = 4, 557 text_match = 4,
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 // First node is before the second one. 687 // First node is before the second one.
674 before, 688 before,
675 689
676 // Nodes are the same. 690 // Nodes are the same.
677 equal, 691 equal,
678 692
679 // First node is after the second one. 693 // First node is after the second one.
680 after 694 after
681 }; 695 };
682 }; 696 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698