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

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

Issue 2058323002: Add ARIA panel to accessibility sidebar pane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Preliminary cleanup Created 4 years, 5 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/AccessibilitySidebarView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilitySidebarView.js b/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilitySidebarView.js
index d2736e5ddb5f2bc72a67cde602896d5b4aa13ce6..ac6bba54b0d9b4a4fea6f82b4548aa630542f993 100644
--- a/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilitySidebarView.js
+++ b/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilitySidebarView.js
@@ -59,9 +59,15 @@ WebInspector.AccessibilitySidebarView.prototype = {
this._axNodeSubPane.show(this.element);
this._axNodeSubPane.expand();
+ this._ariaSubPane = new WebInspector.AXARIAAttributesSubPane();
+ this._ariaSubPane.setNode(this.node());
+ this._ariaSubPane.show(this.element);
+ this._ariaSubPane.expand();
+
this._sidebarPaneStack = new WebInspector.SidebarPaneStack();
this._sidebarPaneStack.element.classList.add("flex-auto");
this._sidebarPaneStack.show(this.element);
+ this._sidebarPaneStack.addPane(this._ariaSubPane);
this._sidebarPaneStack.addPane(this._axNodeSubPane);
}
@@ -87,6 +93,8 @@ WebInspector.AccessibilitySidebarView.prototype = {
this._node = WebInspector.context.flavor(WebInspector.DOMNode);
if (this._axNodeSubPane)
this._axNodeSubPane.setNode(this._node);
+ if (this._ariaSubPane)
+ this._ariaSubPane.setNode(this._node);
this.update();
},

Powered by Google App Engine
This is Rietveld 408576698