| 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 ca02a98b6b318cc15fbe4435857deeccc21ccbc5..ba8e05519d97035c2d3c55e082e8be1a28ea208e 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
|
| @@ -59,6 +59,15 @@ AutomationPredicate.leaf = function(node) {
|
| };
|
|
|
| /**
|
| + * @param {chrome.automation.AutomationNode} node
|
| + * @return {boolean}
|
| + */
|
| +AutomationPredicate.leafWithText = function(node) {
|
| + return AutomationPredicate.leaf(node) &&
|
| + !!(node.attributes.name || node.attributes.value);
|
| +};
|
| +
|
| +/**
|
| * @param {chrome.automation.AutomationNode} first
|
| * @param {chrome.automation.AutomationNode} second
|
| * @return {boolean}
|
|
|