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

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

Issue 2436703003: DevTools: Flesh out AccessibilityModel and use SDK objects instead of protocol objects (Closed)
Patch Set: revert accessibilityNode.css Created 4 years, 2 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/AXTreePane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/accessibility/AXTreePane.js b/third_party/WebKit/Source/devtools/front_end/accessibility/AXTreePane.js
index 9e8a6d371487482bdcecf13fb0c4d5d02c97a031..4196b0d4ef241b8889dd4d0c48d1da4fbf40c31b 100644
--- a/third_party/WebKit/Source/devtools/front_end/accessibility/AXTreePane.js
+++ b/third_party/WebKit/Source/devtools/front_end/accessibility/AXTreePane.js
@@ -18,7 +18,7 @@ WebInspector.AXTreePane = function()
WebInspector.AXTreePane.prototype = {
/**
- * @param {!Array<!AccessibilityAgent.AXNode>} nodes
+ * @param {!Array<!WebInspector.AccessibilityNode>} nodes
*/
setAXNodeAndAncestors: function(nodes)
{
@@ -46,12 +46,12 @@ WebInspector.AXTreePane.prototype = {
/**
* @constructor
* @extends {TreeElement}
- * @param {!AccessibilityAgent.AXNode} axNode
+ * @param {!WebInspector.AccessibilityNode} axNode
* @param {!WebInspector.Target} target
*/
WebInspector.AXNodeTreeElement = function(axNode, target)
{
- /** @type {!AccessibilityAgent.AXNode} */
+ /** @type {!WebInspector.AccessibilityNode} */
this._axNode = axNode;
/** @type {!WebInspector.Target} */
@@ -82,13 +82,13 @@ WebInspector.AXNodeTreeElement.prototype = {
{
this.listItemElement.removeChildren();
- if (this._axNode.ignored) {
+ if (this._axNode.ignored()) {
this._appendIgnoredNodeElement();
} else {
- this._appendRoleElement(this._axNode.role);
- if ("name" in this._axNode && this._axNode.name.value) {
+ this._appendRoleElement(this._axNode.role());
+ if ("name" in this._axNode && this._axNode.name().value) {
this.listItemElement.createChild("span", "separator").textContent = "\u00A0";
- this._appendNameElement(/** @type {string} */ (this._axNode.name.value));
+ this._appendNameElement(/** @type {string} */ (this._axNode.name().value));
}
}
},
@@ -105,7 +105,7 @@ WebInspector.AXNodeTreeElement.prototype = {
},
/**
- * @param {!AccessibilityAgent.AXValue=} role
+ * @param {?AccessibilityAgent.AXValue} role
*/
_appendRoleElement: function(role)
{

Powered by Google App Engine
This is Rietveld 408576698