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

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

Issue 2694903010: AX checked state changes (Closed)
Patch Set: Fix compiler error Created 3 years, 9 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 15b722570a53cce1a08e750c559672d4226247d3..d9e72292ade7a76f146bd1cf982a18ea09ad73d2 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);
},
@@ -696,7 +707,6 @@ var stringAttributes = [
var boolAttributes = [
'ariaReadonly',
- 'buttonMixed',
'containerLiveAtomic',
'containerLiveBusy',
'liveAtomic',
@@ -1102,6 +1112,7 @@ utils.expose(AutomationNode, AutomationNodeImpl, {
'nextSibling',
'isRootNode',
'role',
+ 'checked',
'state',
'location',
'indexInParent',

Powered by Google App Engine
This is Rietveld 408576698