| 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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 // For all text fields and content editable roots: A list of the start | 526 // For all text fields and content editable roots: A list of the start |
| 527 // offsets of each line inside this object. | 527 // offsets of each line inside this object. |
| 528 cached_line_starts, | 528 cached_line_starts, |
| 529 | 529 |
| 530 // For inline text. These int lists must be the same size; they represent | 530 // 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. | 531 // the start and end character offset of each word within this text. |
| 532 word_starts, | 532 word_starts, |
| 533 word_ends | 533 word_ends |
| 534 }; | 534 }; |
| 535 | 535 |
| 536 // TODO(dmazzoni, nektar): make this list not grow exponentially as new |
| 537 // MarkerTypes are added |
| 536 enum AXMarkerType { | 538 enum AXMarkerType { |
| 537 // Assignments are ignored by the parser, but are kept here for clarity. | 539 // Assignments are ignored by the parser, but are kept here for clarity. |
| 538 spelling = 1, | 540 spelling = 1, |
| 539 grammar = 2, | 541 grammar = 2, |
| 540 spelling_grammar = 3, | 542 spelling_grammar = 3, |
| 541 text_match = 4, | 543 text_match = 4, |
| 542 spelling_text_match = 5, | 544 spelling_text_match = 5, |
| 543 grammar_text_match = 6, | 545 grammar_text_match = 6, |
| 544 spelling_grammar_text_match = 7 | 546 spelling_grammar_text_match = 7, |
| 547 // DocumentMarker::MarkerType::Composition = 8 is ignored for accessibility |
| 548 // purposes |
| 549 active_suggestion = 16, |
| 550 spelling_active_suggestion = 17, |
| 551 grammar_active_suggestion = 18, |
| 552 spelling_grammar_active_suggestion = 19, |
| 553 text_match_active_suggestion = 20, |
| 554 spelling_text_match_active_suggestion = 21, |
| 555 grammar_text_match_active_suggestion = 22, |
| 556 spelling_grammar_text_match_active_suggestion = 23 |
| 545 }; | 557 }; |
| 546 | 558 |
| 547 enum AXTextDirection { | 559 enum AXTextDirection { |
| 548 ltr, | 560 ltr, |
| 549 rtl, | 561 rtl, |
| 550 ttb, | 562 ttb, |
| 551 btt | 563 btt |
| 552 }; | 564 }; |
| 553 | 565 |
| 554 // A Java counterpart will be generated for this enum. | 566 // A Java counterpart will be generated for this enum. |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 // First node is before the second one. | 673 // First node is before the second one. |
| 662 before, | 674 before, |
| 663 | 675 |
| 664 // Nodes are the same. | 676 // Nodes are the same. |
| 665 equal, | 677 equal, |
| 666 | 678 |
| 667 // First node is after the second one. | 679 // First node is after the second one. |
| 668 after | 680 after |
| 669 }; | 681 }; |
| 670 }; | 682 }; |
| OLD | NEW |