| 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',
|
|
|