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

Unified Diff: chrome/renderer/resources/extensions/automation/automation_node.js

Issue 2694903010: AX checked state changes (Closed)
Patch Set: git cl try Created 3 years, 8 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
Index: chrome/renderer/resources/extensions/automation/automation_node.js
diff --git a/chrome/renderer/resources/extensions/automation/automation_node.js b/chrome/renderer/resources/extensions/automation/automation_node.js
index d1173dd7a474286210e9d899015677acdf18135f..543ed831cc0d0fb8cf995475ab66c59b036d6f9a 100644
--- a/chrome/renderer/resources/extensions/automation/automation_node.js
+++ b/chrome/renderer/resources/extensions/automation/automation_node.js
@@ -135,6 +135,13 @@ var GetState = requireNative('automationInternal').GetState;
/**
* @param {number} axTreeID The id of the accessibility tree.
* @param {number} nodeID The id of a node.
+ * @return {string} The checked state, as undefined, "true", "false" or "mixed".
+ */
+var GetChecked = requireNative('automationInternal').GetChecked;
+
+/**
+ * @param {number} axTreeID The id of the accessibility tree.
+ * @param {number} nodeID The id of a node.
* @return {string} The role of the node, or undefined if the tree or
* node wasn't found.
*/
@@ -283,6 +290,10 @@ AutomationNodeImpl.prototype = {
return GetRole(this.treeID, this.id);
},
+ get checked() {
+ return GetChecked(this.treeID, this.id);
+ },
+
get location() {
return GetLocation(this.treeID, this.id);
},
@@ -705,7 +716,6 @@ var stringAttributes = [
var boolAttributes = [
'ariaReadonly',
- 'buttonMixed',
'containerLiveAtomic',
'containerLiveBusy',
'liveAtomic',
@@ -1113,6 +1123,7 @@ utils.expose(AutomationNode, AutomationNodeImpl, {
'nextSibling',
'isRootNode',
'role',
+ 'checked',
'state',
'location',
'indexInParent',

Powered by Google App Engine
This is Rietveld 408576698