| Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
|
| index 800957df29ca4bd9559ba6b8e051cb1ebc3e4bf0..872cb0a9f4a916c95333f43f95aa1390b75bf7d2 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
|
| @@ -45,8 +45,6 @@ AutomationPredicate.checkBox = AutomationPredicate.withRole(RoleType.checkBox);
|
| /** @type {AutomationPredicate.Unary} */
|
| AutomationPredicate.comboBox = AutomationPredicate.withRole(RoleType.comboBox);
|
| /** @type {AutomationPredicate.Unary} */
|
| -AutomationPredicate.editText = AutomationPredicate.withRole(RoleType.textField);
|
| -/** @type {AutomationPredicate.Unary} */
|
| AutomationPredicate.heading = AutomationPredicate.withRole(RoleType.heading);
|
| /** @type {AutomationPredicate.Unary} */
|
| AutomationPredicate.inlineTextBox =
|
| @@ -64,6 +62,17 @@ AutomationPredicate.button = function(node) {
|
| return /button/i.test(node.role);
|
| };
|
|
|
| +
|
| +/**
|
| + * @param {!AutomationNode} node
|
| + * @return {boolean}
|
| + */
|
| +AutomationPredicate.editText = function(node) {
|
| + return node.state.editable &&
|
| + node.parent &&
|
| + !node.parent.state.editable;
|
| +};
|
| +
|
| /**
|
| * @param {!AutomationNode} node
|
| * @return {boolean}
|
|
|