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 3e6fe190fc10822c5f1432f83c733bacbed0718c..5b4e23d881825984d55a6aaebf9635173e48b7d6 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js |
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js |
@@ -83,3 +83,13 @@ AutomationPredicate.linebreak = function(first, second) { |
return fl.top != sl.top || |
(fl.top + fl.height != sl.top + sl.height); |
}; |
+ |
+/** |
+ * Leaf nodes that should be ignored. |
+ * @param {chrome.automation.AutomationNode} node |
+ * @return {boolean} |
+ */ |
+AutomationPredicate.shouldIgnoreLeaf = function(node) { |
+ return AutomationPredicate.leaf(node) && |
+ node.role == chrome.automation.RoleType.client; |
+}; |