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

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

Issue 2157713002: DevTools: introduce View: a named widget with the toolbar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcean 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 7cf4c792867722f9aba44427d91411525035dda9..b525281bd5b032f4a800385af50e97e07704487a 100644
--- a/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilitySidebarView.js
+++ b/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilitySidebarView.js
@@ -4,11 +4,11 @@
/**
* @constructor
- * @extends {WebInspector.ThrottledWidget}
+ * @extends {WebInspector.ThrottledView}
*/
WebInspector.AccessibilitySidebarView = function()
{
- WebInspector.ThrottledWidget.call(this);
+ WebInspector.ThrottledView.call(this, WebInspector.UIString("Accessibility"));
this._axNodeSubPane = null;
this._node = null;
this._sidebarPaneStack = null;
@@ -51,13 +51,12 @@ WebInspector.AccessibilitySidebarView.prototype = {
*/
wasShown: function()
{
- WebInspector.ThrottledWidget.prototype.wasShown.call(this);
+ WebInspector.ThrottledView.prototype.wasShown.call(this);
if (!this._sidebarPaneStack) {
this._axNodeSubPane = new WebInspector.AXNodeSubPane();
this._axNodeSubPane.setNode(this.node());
this._axNodeSubPane.show(this.element);
- this._axNodeSubPane.expandPane();
this._sidebarPaneStack = new WebInspector.SidebarPaneStack();
this._sidebarPaneStack.element.classList.add("flex-auto");
@@ -117,17 +116,17 @@ WebInspector.AccessibilitySidebarView.prototype = {
},
- __proto__: WebInspector.ThrottledWidget.prototype
+ __proto__: WebInspector.ThrottledView.prototype
};
/**
* @constructor
- * @extends {WebInspector.SidebarPane}
+ * @extends {WebInspector.View}
* @param {string} name
*/
WebInspector.AccessibilitySubPane = function(name)
{
- WebInspector.SidebarPane.call(this, name);
+ WebInspector.View.call(this, name);
this._axNode = null;
this.registerRequiredCSS("accessibility/accessibilityNode.css");
@@ -185,5 +184,5 @@ WebInspector.AccessibilitySubPane.prototype = {
return treeOutline;
},
- __proto__: WebInspector.SidebarPane.prototype
+ __proto__: WebInspector.View.prototype
}

Powered by Google App Engine
This is Rietveld 408576698