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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js

Issue 2487513002: Include posInSet and setSize in tab output rule (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js » ('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 /** 5 /**
6 * @fileoverview ChromeVox predicates for the automation extension API. 6 * @fileoverview ChromeVox predicates for the automation extension API.
7 */ 7 */
8 8
9 goog.provide('AutomationPredicate'); 9 goog.provide('AutomationPredicate');
10 goog.provide('AutomationPredicate.Binary'); 10 goog.provide('AutomationPredicate.Binary');
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 AutomationPredicate.button, 97 AutomationPredicate.button,
98 AutomationPredicate.comboBox, 98 AutomationPredicate.comboBox,
99 AutomationPredicate.editText 99 AutomationPredicate.editText
100 ], 100 ],
101 anyRole: [ 101 anyRole: [
102 Role.checkBox, 102 Role.checkBox,
103 Role.colorWell, 103 Role.colorWell,
104 Role.listBox, 104 Role.listBox,
105 Role.slider, 105 Role.slider,
106 Role.switch, 106 Role.switch,
107 Role.tab,
107 Role.tree 108 Role.tree
108 ] 109 ]
109 }); 110 });
110 111
111 /** @type {AutomationPredicate.Unary} */ 112 /** @type {AutomationPredicate.Unary} */
112 AutomationPredicate.control = AutomationPredicate.match({ 113 AutomationPredicate.control = AutomationPredicate.match({
113 anyPredicate: [ 114 anyPredicate: [
114 AutomationPredicate.formField, 115 AutomationPredicate.formField,
115 ], 116 ],
116 anyRole: [ 117 anyRole: [
117 Role.disclosureTriangle, 118 Role.disclosureTriangle,
118 Role.menuItem, 119 Role.menuItem,
119 Role.menuItemCheckBox, 120 Role.menuItemCheckBox,
120 Role.menuItemRadio, 121 Role.menuItemRadio,
121 Role.menuListOption, 122 Role.menuListOption,
122 Role.scrollBar, 123 Role.scrollBar
123 Role.tab
124 ] 124 ]
125 }); 125 });
126 126
127 /** 127 /**
128 * @param {!AutomationNode} node 128 * @param {!AutomationNode} node
129 * @return {boolean} 129 * @return {boolean}
130 */ 130 */
131 AutomationPredicate.image = function(node) { 131 AutomationPredicate.image = function(node) {
132 return node.role == Role.image && !!(node.name || node.url); 132 return node.role == Role.image && !!(node.name || node.url);
133 }; 133 };
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 * @param {number} level 1-6 460 * @param {number} level 1-6
461 * @return {AutomationPredicate.Unary} 461 * @return {AutomationPredicate.Unary}
462 */ 462 */
463 AutomationPredicate.makeHeadingPredicate = function(level) { 463 AutomationPredicate.makeHeadingPredicate = function(level) {
464 return function(node) { 464 return function(node) {
465 return node.role == Role.heading && node.hierarchicalLevel == level; 465 return node.role == Role.heading && node.hierarchicalLevel == level;
466 }; 466 };
467 }; 467 };
468 468
469 }); // goog.scope 469 }); // goog.scope
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698