Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js

Issue 2085103002: Only process checked state changed for specific roles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix formatting; use onEventIfInRange Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 98391fcedd489c2a75cd0ac8b3aac829e4767a50..f054868b831967ccd7c8826b5d814b9260790741 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/automation_predicate.js
@@ -289,4 +289,17 @@ AutomationPredicate.shouldIgnoreNode = function(node) {
node.role == RoleType.staticText);
};
+
+/**
+ * Returns if the node has a meaningful checked state.
+ * @param {!AutomationNode} node
+ * @return {boolean}
+ */
+AutomationPredicate.checkable = function(node) {
+ return node.role == RoleType.checkBox ||
+ node.role == RoleType.radioButton ||
+ node.role == RoleType.menuItemCheckBox ||
+ node.role == RoleType.menuItemRadio;
+};
+
}); // goog.scope
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698