| 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 f054868b831967ccd7c8826b5d814b9260790741..0b3214312fa89d88073445ed52db694dc5c100b4 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
|
| @@ -178,6 +178,16 @@ AutomationPredicate.leafDomNode = function(node) {
|
| };
|
|
|
| /**
|
| + * Matches against all nodes that have selectable text.
|
| + * @param {!AutomationNode} node
|
| + * @return {boolean}
|
| + */
|
| +AutomationPredicate.text = function(node) {
|
| + return node.role == RoleType.staticText ||
|
| + node.role == RoleType.lineBreak;
|
| +};
|
| +
|
| +/**
|
| * Matches against nodes visited during object navigation. An object as
|
| * defined below, are all nodes that are focusable or static text. When used in
|
| * tree walking, it should visit all nodes that tab traversal would as well as
|
|
|