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

Unified Diff: third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityModel.js

Issue 2322413003: Show ancestor hierarchy in accessibility panel (Closed)
Patch Set: Add new test for ancestors Created 4 years, 3 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: 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

Powered by Google App Engine
This is Rietveld 408576698