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

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

Issue 2151713002: Less strict checked state changes and introduce disabled state for content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Mac. 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
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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 292
293 /** 293 /**
294 * Returns if the node has a meaningful checked state. 294 * Returns if the node has a meaningful checked state.
295 * @param {!AutomationNode} node 295 * @param {!AutomationNode} node
296 * @return {boolean} 296 * @return {boolean}
297 */ 297 */
298 AutomationPredicate.checkable = function(node) { 298 AutomationPredicate.checkable = function(node) {
299 return node.role == RoleType.checkBox || 299 return node.role == RoleType.checkBox ||
300 node.role == RoleType.radioButton || 300 node.role == RoleType.radioButton ||
301 node.role == RoleType.menuItemCheckBox || 301 node.role == RoleType.menuItemCheckBox ||
302 node.role == RoleType.menuItemRadio; 302 node.role == RoleType.menuItemRadio ||
303 node.role == RoleType.treeItem;
303 }; 304 };
304 305
305 }); // goog.scope 306 }); // goog.scope
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698