Chromium Code Reviews| 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 four enums, also add to | 10 // For new entries to the following four enums, also add to |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 240 vertical, | 240 vertical, |
| 241 visited | 241 visited |
| 242 }; | 242 }; |
| 243 | 243 |
| 244 // An action to be taken on an accessibility node. | 244 // An action to be taken on an accessibility node. |
| 245 // In contrast to |AXDefaultActionVerb|, these describe what happens to the | 245 // In contrast to |AXDefaultActionVerb|, these describe what happens to the |
| 246 // object, e.g. "FOCUS". | 246 // object, e.g. "FOCUS". |
| 247 enum AXAction { | 247 enum AXAction { |
| 248 blur, | 248 blur, |
| 249 | 249 |
| 250 custom_action, | |
| 251 | |
| 250 // Decrement a slider or range control by one step value. | 252 // Decrement a slider or range control by one step value. |
| 251 decrement, | 253 decrement, |
| 252 | 254 |
| 253 // Do the default action for an object, typically this means "click". | 255 // Do the default action for an object, typically this means "click". |
| 254 do_default, | 256 do_default, |
| 255 | 257 |
| 256 focus, | 258 focus, |
| 257 | 259 |
| 258 // Return the content of this image object in the image_data attribute. | 260 // Return the content of this image object in the image_data attribute. |
| 259 get_image_data, | 261 get_image_data, |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 524 | 526 |
| 525 // Used for caching. Do not read directly. Use | 527 // Used for caching. Do not read directly. Use |
| 526 // |AXNode::GetOrComputeLineStartOffsets| | 528 // |AXNode::GetOrComputeLineStartOffsets| |
| 527 // For all text fields and content editable roots: A list of the start | 529 // For all text fields and content editable roots: A list of the start |
| 528 // offsets of each line inside this object. | 530 // offsets of each line inside this object. |
| 529 cached_line_starts, | 531 cached_line_starts, |
| 530 | 532 |
| 531 // For inline text. These int lists must be the same size; they represent | 533 // For inline text. These int lists must be the same size; they represent |
| 532 // the start and end character offset of each word within this text. | 534 // the start and end character offset of each word within this text. |
| 533 word_starts, | 535 word_starts, |
| 534 word_ends | 536 word_ends, |
| 537 | |
| 538 custom_action_ids | |
|
dmazzoni
2017/06/06 03:06:00
Add a comment for this. You could mention that the
yawano
2017/06/08 09:25:29
Done.
| |
| 539 }; | |
| 540 | |
| 541 [cpp_enum_prefix_override="ax_attr"] enum AXStringListAttribute { | |
| 542 custom_action_descriptions | |
| 535 }; | 543 }; |
| 536 | 544 |
| 537 enum AXMarkerType { | 545 enum AXMarkerType { |
| 538 // Assignments are ignored by the parser, but are kept here for clarity. | 546 // Assignments are ignored by the parser, but are kept here for clarity. |
| 539 spelling = 1, | 547 spelling = 1, |
| 540 grammar = 2, | 548 grammar = 2, |
| 541 spelling_grammar = 3, | 549 spelling_grammar = 3, |
| 542 text_match = 4, | 550 text_match = 4, |
| 543 spelling_text_match = 5, | 551 spelling_text_match = 5, |
| 544 grammar_text_match = 6, | 552 grammar_text_match = 6, |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 662 // First node is before the second one. | 670 // First node is before the second one. |
| 663 before, | 671 before, |
| 664 | 672 |
| 665 // Nodes are the same. | 673 // Nodes are the same. |
| 666 equal, | 674 equal, |
| 667 | 675 |
| 668 // First node is after the second one. | 676 // First node is after the second one. |
| 669 after | 677 after |
| 670 }; | 678 }; |
| 671 }; | 679 }; |
| OLD | NEW |