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

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

Issue 2217783002: DevTools: use view locations in the elements and sources sidebars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 4 years, 4 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 90b49dd3cca1b07adfb2a9d8d48f6345c1b20f21..7197e065cb5465a4617f3e31328b963d434c9a21 100644
--- a/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilitySidebarView.js
+++ b/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilitySidebarView.js
@@ -10,12 +10,12 @@ WebInspector.AccessibilitySidebarView = function()
{
WebInspector.ThrottledView.call(this, WebInspector.UIString("Accessibility"));
this._node = null;
- this._sidebarPaneStack = new WebInspector.View.ExpandableStackContainer();
+ this._sidebarPaneStack = WebInspector.viewManager.createStackLocation();
this._ariaSubPane = new WebInspector.ARIAAttributesPane();
- this._sidebarPaneStack.appendView(this._ariaSubPane, true);
+ this._sidebarPaneStack.showView(this._ariaSubPane);
this._axNodeSubPane = new WebInspector.AXNodeSubPane();
- this._sidebarPaneStack.appendView(this._axNodeSubPane, true);
- this._sidebarPaneStack.show(this.element);
+ this._sidebarPaneStack.showView(this._axNodeSubPane);
+ this._sidebarPaneStack.widget().show(this.element);
WebInspector.context.addFlavorChangeListener(WebInspector.DOMNode, this._pullNode, this);
this._pullNode();
}
@@ -123,12 +123,12 @@ WebInspector.AccessibilitySidebarView.prototype = {
/**
* @constructor
- * @extends {WebInspector.View}
+ * @extends {WebInspector.SimpleView}
* @param {string} name
*/
WebInspector.AccessibilitySubPane = function(name)
{
- WebInspector.View.call(this, name);
+ WebInspector.SimpleView.call(this, name);
this._axNode = null;
this.registerRequiredCSS("accessibility/accessibilityNode.css");
@@ -186,5 +186,5 @@ WebInspector.AccessibilitySubPane.prototype = {
return treeOutline;
},
- __proto__: WebInspector.View.prototype
+ __proto__: WebInspector.SimpleView.prototype
}

Powered by Google App Engine
This is Rietveld 408576698