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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/PlatformFontsWidget.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/elements/PlatformFontsWidget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/PlatformFontsWidget.js b/third_party/WebKit/Source/devtools/front_end/elements/PlatformFontsWidget.js
index ed0edd6c22d1195504b2b706b2bbb6e46af895f7..7c8d6f586c1fbcfa1fb6d1c7bb617ea9d5f98f7e 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/PlatformFontsWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/PlatformFontsWidget.js
@@ -30,12 +30,12 @@
/**
* @constructor
- * @extends {WebInspector.ThrottledWidget}
+ * @extends {WebInspector.ThrottledView}
* @param {!WebInspector.ComputedStyleModel} sharedModel
*/
WebInspector.PlatformFontsWidget = function(sharedModel)
{
- WebInspector.ThrottledWidget.call(this, true);
+ WebInspector.ThrottledView.call(this, WebInspector.UIString("Fonts"), true);
this.registerRequiredCSS("elements/platformFontsWidget.css");
this._sharedModel = sharedModel;
@@ -47,16 +47,6 @@ WebInspector.PlatformFontsWidget = function(sharedModel)
this._fontStatsSection = this.contentElement.createChild("div", "stats-section");
}
-/**
- * @param {!WebInspector.ComputedStyleModel} sharedModel
- * @return {!WebInspector.ElementsSidebarViewWrapperPane}
- */
-WebInspector.PlatformFontsWidget.createSidebarWrapper = function(sharedModel)
-{
- var widget = new WebInspector.PlatformFontsWidget(sharedModel);
- return new WebInspector.ElementsSidebarViewWrapperPane(WebInspector.UIString("Fonts"), widget)
-}
-
WebInspector.PlatformFontsWidget.prototype = {
/**
* @override
@@ -111,5 +101,5 @@ WebInspector.PlatformFontsWidget.prototype = {
}
},
- __proto__: WebInspector.ThrottledWidget.prototype
+ __proto__: WebInspector.ThrottledView.prototype
}

Powered by Google App Engine
This is Rietveld 408576698