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 * @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 Loading... |
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 |
OLD | NEW |