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

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

Issue 2085103002: Only process checked state changed for specific roles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix formatting; use onEventIfInRange Created 4 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 282
283 // Ignore some roles. 283 // Ignore some roles.
284 return AutomationPredicate.leaf(node) && 284 return AutomationPredicate.leaf(node) &&
285 (node.role == RoleType.client || 285 (node.role == RoleType.client ||
286 node.role == RoleType.div || 286 node.role == RoleType.div ||
287 node.role == RoleType.group || 287 node.role == RoleType.group ||
288 node.role == RoleType.image || 288 node.role == RoleType.image ||
289 node.role == RoleType.staticText); 289 node.role == RoleType.staticText);
290 }; 290 };
291 291
292
293 /**
294 * Returns if the node has a meaningful checked state.
295 * @param {!AutomationNode} node
296 * @return {boolean}
297 */
298 AutomationPredicate.checkable = function(node) {
299 return node.role == RoleType.checkBox ||
300 node.role == RoleType.radioButton ||
301 node.role == RoleType.menuItemCheckBox ||
302 node.role == RoleType.menuItemRadio;
303 };
304
292 }); // goog.scope 305 }); // goog.scope
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698