| 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 | 5 |
| 6 /** | 6 /** |
| 7 * @fileoverview This class acts as the persistent store for all static data | 7 * @fileoverview This class acts as the persistent store for all static data |
| 8 * about commands. | 8 * about commands. |
| 9 * | 9 * |
| 10 * This store can safely be used within either a content or background script | 10 * This store can safely be used within either a content or background script |
| (...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 681 * forwardError: string, | 681 * forwardError: string, |
| 682 * backwardError: string}>} | 682 * backwardError: string}>} |
| 683 * predicate: The name of the predicate. This must be defined in DomPredicates. | 683 * predicate: The name of the predicate. This must be defined in DomPredicates. |
| 684 * forwardError: The message id of the error string when moving forward. | 684 * forwardError: The message id of the error string when moving forward. |
| 685 * backwardError: The message id of the error string when moving backward. | 685 * backwardError: The message id of the error string when moving backward. |
| 686 */ | 686 */ |
| 687 cvox.CommandStore.NODE_INFO_MAP = { | 687 cvox.CommandStore.NODE_INFO_MAP = { |
| 688 'checkbox': {predicate: 'checkboxPredicate', | 688 'checkbox': {predicate: 'checkboxPredicate', |
| 689 forwardError: 'no_next_checkbox', | 689 forwardError: 'no_next_checkbox', |
| 690 backwardError: 'no_previous_checkbox', | 690 backwardError: 'no_previous_checkbox', |
| 691 typeMsg: 'aria_role_checkbox'}, | 691 typeMsg: 'role_checkbox'}, |
| 692 'radio': {predicate: 'radioPredicate', | 692 'radio': {predicate: 'radioPredicate', |
| 693 forwardError: 'no_next_radio_button', | 693 forwardError: 'no_next_radio_button', |
| 694 backwardError: 'no_previous_radio_button', | 694 backwardError: 'no_previous_radio_button', |
| 695 typeMsg: 'aria_role_radio'}, | 695 typeMsg: 'role_radio'}, |
| 696 'slider': {predicate: 'sliderPredicate', | 696 'slider': {predicate: 'sliderPredicate', |
| 697 forwardError: 'no_next_slider', | 697 forwardError: 'no_next_slider', |
| 698 backwardError: 'no_previous_slider', | 698 backwardError: 'no_previous_slider', |
| 699 typeMsg: 'aria_role_slider'}, | 699 typeMsg: 'role_slider'}, |
| 700 'graphic': {predicate: 'graphicPredicate', | 700 'graphic': {predicate: 'graphicPredicate', |
| 701 forwardError: 'no_next_graphic', | 701 forwardError: 'no_next_graphic', |
| 702 backwardError: 'no_previous_graphic', | 702 backwardError: 'no_previous_graphic', |
| 703 typeMsg: 'UNUSED'}, | 703 typeMsg: 'UNUSED'}, |
| 704 'article': {predicate: 'articlePredicate', | 704 'article': {predicate: 'articlePredicate', |
| 705 forwardError: 'no_next_ARTICLE', | 705 forwardError: 'no_next_ARTICLE', |
| 706 backwardError: 'no_previous_ARTICLE', | 706 backwardError: 'no_previous_ARTICLE', |
| 707 typeMsg: 'TAG_ARTICLE'}, | 707 typeMsg: 'TAG_ARTICLE'}, |
| 708 'button': {predicate: 'buttonPredicate', | 708 'button': {predicate: 'buttonPredicate', |
| 709 forwardError: 'no_next_button', | 709 forwardError: 'no_next_button', |
| 710 backwardError: 'no_previous_button', | 710 backwardError: 'no_previous_button', |
| 711 typeMsg: 'aria_role_button'}, | 711 typeMsg: 'role_button'}, |
| 712 'combobox': {predicate: 'comboBoxPredicate', | 712 'combobox': {predicate: 'comboBoxPredicate', |
| 713 forwardError: 'no_next_combo_box', | 713 forwardError: 'no_next_combo_box', |
| 714 backwardError: 'no_previous_combo_box', | 714 backwardError: 'no_previous_combo_box', |
| 715 typeMsg: 'aria_role_combobox'}, | 715 typeMsg: 'role_combobox'}, |
| 716 'editText': {predicate: 'editTextPredicate', | 716 'editText': {predicate: 'editTextPredicate', |
| 717 forwardError: 'no_next_edit_text', | 717 forwardError: 'no_next_edit_text', |
| 718 backwardError: 'no_previous_edit_text', | 718 backwardError: 'no_previous_edit_text', |
| 719 typeMsg: 'input_type_text'}, | 719 typeMsg: 'input_type_text'}, |
| 720 'heading': {predicate: 'headingPredicate', | 720 'heading': {predicate: 'headingPredicate', |
| 721 forwardError: 'no_next_heading', | 721 forwardError: 'no_next_heading', |
| 722 backwardError: 'no_previous_heading', | 722 backwardError: 'no_previous_heading', |
| 723 typeMsg: 'aria_role_heading'}, | 723 typeMsg: 'role_heading'}, |
| 724 'heading1': {predicate: 'heading1Predicate', | 724 'heading1': {predicate: 'heading1Predicate', |
| 725 forwardError: 'no_next_heading_1', | 725 forwardError: 'no_next_heading_1', |
| 726 backwardError: 'no_previous_heading_1'}, | 726 backwardError: 'no_previous_heading_1'}, |
| 727 'heading2': {predicate: 'heading2Predicate', | 727 'heading2': {predicate: 'heading2Predicate', |
| 728 forwardError: 'no_next_heading_2', | 728 forwardError: 'no_next_heading_2', |
| 729 backwardError: 'no_previous_heading_2'}, | 729 backwardError: 'no_previous_heading_2'}, |
| 730 'heading3': {predicate: 'heading3Predicate', | 730 'heading3': {predicate: 'heading3Predicate', |
| 731 forwardError: 'no_next_heading_3', | 731 forwardError: 'no_next_heading_3', |
| 732 backwardError: 'no_previous_heading_3'}, | 732 backwardError: 'no_previous_heading_3'}, |
| 733 'heading4': {predicate: 'heading4Predicate', | 733 'heading4': {predicate: 'heading4Predicate', |
| 734 forwardError: 'no_next_heading_4', | 734 forwardError: 'no_next_heading_4', |
| 735 backwardError: 'no_previous_heading_4'}, | 735 backwardError: 'no_previous_heading_4'}, |
| 736 'heading5': {predicate: 'heading5Predicate', | 736 'heading5': {predicate: 'heading5Predicate', |
| 737 forwardError: 'no_next_heading_5', | 737 forwardError: 'no_next_heading_5', |
| 738 backwardError: 'no_previous_heading_5'}, | 738 backwardError: 'no_previous_heading_5'}, |
| 739 'heading6': {predicate: 'heading6Predicate', | 739 'heading6': {predicate: 'heading6Predicate', |
| 740 forwardError: 'no_next_heading_6', | 740 forwardError: 'no_next_heading_6', |
| 741 backwardError: 'no_previous_heading_6'}, | 741 backwardError: 'no_previous_heading_6'}, |
| 742 | 742 |
| 743 'link': {predicate: 'linkPredicate', | 743 'link': {predicate: 'linkPredicate', |
| 744 forwardError: 'no_next_link', | 744 forwardError: 'no_next_link', |
| 745 backwardError: 'no_previous_link', | 745 backwardError: 'no_previous_link', |
| 746 typeMsg: 'aria_role_link'}, | 746 typeMsg: 'role_link'}, |
| 747 'table': {predicate: 'tablePredicate', | 747 'table': {predicate: 'tablePredicate', |
| 748 forwardError: 'no_next_table', | 748 forwardError: 'no_next_table', |
| 749 backwardError: 'no_previous_table', | 749 backwardError: 'no_previous_table', |
| 750 typeMsg: 'table_strategy'}, | 750 typeMsg: 'table_strategy'}, |
| 751 'visitedLink': {predicate: 'visitedLinkPredicate', | 751 'visitedLink': {predicate: 'visitedLinkPredicate', |
| 752 forwardError: 'no_next_visited_link', | 752 forwardError: 'no_next_visited_link', |
| 753 backwardError: 'no_previous_visited_link', | 753 backwardError: 'no_previous_visited_link', |
| 754 typeMsg: 'tag_link'}, | 754 typeMsg: 'role_link'}, |
| 755 'list': {predicate: 'listPredicate', | 755 'list': {predicate: 'listPredicate', |
| 756 forwardError: 'no_next_list', | 756 forwardError: 'no_next_list', |
| 757 backwardError: 'no_previous_list', | 757 backwardError: 'no_previous_list', |
| 758 typeMsg: 'aria_role_list'}, | 758 typeMsg: 'role_list'}, |
| 759 'listItem': {predicate: 'listItemPredicate', | 759 'listItem': {predicate: 'listItemPredicate', |
| 760 forwardError: 'no_next_list_item', | 760 forwardError: 'no_next_list_item', |
| 761 backwardError: 'no_previous_list_item', | 761 backwardError: 'no_previous_list_item', |
| 762 typeMsg: 'aria_role_listitem'}, | 762 typeMsg: 'role_listitem'}, |
| 763 'formField': {predicate: 'formFieldPredicate', | 763 'formField': {predicate: 'formFieldPredicate', |
| 764 forwardError: 'no_next_form_field', | 764 forwardError: 'no_next_form_field', |
| 765 backwardError: 'no_previous_form_field', | 765 backwardError: 'no_previous_form_field', |
| 766 typeMsg: 'aria_role_form'}, | 766 typeMsg: 'role_form'}, |
| 767 'landmark': {predicate: 'landmarkPredicate', | 767 'landmark': {predicate: 'landmarkPredicate', |
| 768 forwardError: 'no_next_landmark', | 768 forwardError: 'no_next_landmark', |
| 769 backwardError: 'no_previous_landmark', | 769 backwardError: 'no_previous_landmark', |
| 770 typeMsg: 'role_landmark'}, | 770 typeMsg: 'role_landmark'}, |
| 771 'math': {predicate: 'mathPredicate', | 771 'math': {predicate: 'mathPredicate', |
| 772 forwardError: 'no_next_math', | 772 forwardError: 'no_next_math', |
| 773 backwardError: 'no_previous_math', | 773 backwardError: 'no_previous_math', |
| 774 typeMsg: 'math_expr'}, | 774 typeMsg: 'math_expr'}, |
| 775 'media': {predicate: 'mediaPredicate', | 775 'media': {predicate: 'mediaPredicate', |
| 776 forwardError: 'no_next_media_widget', | 776 forwardError: 'no_next_media_widget', |
| 777 backwardError: 'no_previous_media_widget'}, | 777 backwardError: 'no_previous_media_widget'}, |
| 778 'section': {predicate: 'sectionPredicate', | 778 'section': {predicate: 'sectionPredicate', |
| 779 forwardError: 'no_next_section', | 779 forwardError: 'no_next_section', |
| 780 backwardError: 'no_previous_section'}, | 780 backwardError: 'no_previous_section'}, |
| 781 'control': {predicate: 'controlPredicate', | 781 'control': {predicate: 'controlPredicate', |
| 782 forwardError: 'no_next_control', | 782 forwardError: 'no_next_control', |
| 783 backwardError: 'no_previous_control'} | 783 backwardError: 'no_previous_control'} |
| 784 }; | 784 }; |
| OLD | NEW |