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

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

Issue 2707263011: Test aria-pressed=mixed on windows (Closed)
Patch Set: git cl try Created 3 years, 7 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 a960f732872fc9bc5c729a4d81900cb8432991ea..55bdf94d74ed0e3ecc63812ec4ece7c359ab29e3 100644
--- a/chrome/renderer/resources/extensions/automation/automation_node.js
+++ b/chrome/renderer/resources/extensions/automation/automation_node.js
@@ -142,6 +142,13 @@ 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 pressed state, as undefined, "true", "false" or "mixed".
+ */
+var GetPressed = requireNative('automationInternal').GetPressed;
+
+/**
+ * @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.
*/
@@ -294,6 +301,10 @@ AutomationNodeImpl.prototype = {
return GetChecked(this.treeID, this.id);
},
+ get pressed() {
+ return GetPressed(this.treeID, this.id);
+ },
+
get location() {
return GetLocation(this.treeID, this.id);
},
@@ -1129,6 +1140,7 @@ utils.expose(AutomationNode, AutomationNodeImpl, {
'isRootNode',
'role',
'checked',
+ 'pressed',
'state',
'location',
'indexInParent',

Powered by Google App Engine
This is Rietveld 408576698