Index: third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityModel.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityModel.js b/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityModel.js |
index 4d1ec7aa3e869656da3aaf3e05f22d346e2e4ca9..b978985e5b62c0e57b2ff154af487fa204c272c0 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityModel.js |
+++ b/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityModel.js |
@@ -17,21 +17,22 @@ WebInspector.AccessibilityModel = function(target) |
WebInspector.AccessibilityModel.prototype = { |
/** |
* @param {!DOMAgent.NodeId} nodeId |
- * @return {!Promise.<?AccessibilityAgent.AXNode>} |
+ * @return {!Promise.<?Array<!AccessibilityAgent.AXNode>>} |
*/ |
- getAXNode: function(nodeId) |
+ getAXNodeChain: function(nodeId) |
{ |
/** |
* @param {?string} error |
- * @param {!AccessibilityAgent.AXNode=} value |
+ * @param {!Array<!AccessibilityAgent.AXNode>=} nodes |
+ * @return {?Array<!AccessibilityAgent.AXNode>} |
*/ |
- function parsePayload(error, value) |
+ function parsePayload(error, nodes) |
{ |
if (error) |
- console.error("AccessibilityAgent.getAXNode(): " + error); |
- return value || null; |
+ console.error("AccessibilityAgent.getAXNodeChain(): " + error); |
+ return nodes || null; |
} |
- return this._agent.getAXNode(nodeId, parsePayload); |
+ return this._agent.getAXNodeChain(nodeId, true, parsePayload); |
}, |
__proto__: WebInspector.SDKModel.prototype |