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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/ThrottledView.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/ui/ThrottledView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/ThrottledWidget.js b/third_party/WebKit/Source/devtools/front_end/ui/ThrottledView.js
similarity index 75%
rename from third_party/WebKit/Source/devtools/front_end/ui/ThrottledWidget.js
rename to third_party/WebKit/Source/devtools/front_end/ui/ThrottledView.js
index b8f3a13d429fc5221e77c0ca6584a58c3749c0ca..0a657da0d507262e12bb6b60f3ee9e20924a54d2 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/ThrottledWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/ThrottledView.js
@@ -4,17 +4,18 @@
/**
* @constructor
- * @extends {WebInspector.Widget}
+ * @extends {WebInspector.View}
+ * @param {string} title
* @param {boolean=} isWebComponent
*/
-WebInspector.ThrottledWidget = function(isWebComponent)
+WebInspector.ThrottledView = function(title, isWebComponent)
{
- WebInspector.Widget.call(this, isWebComponent);
+ WebInspector.View.call(this, title, isWebComponent);
this._updateThrottler = new WebInspector.Throttler(100);
this._updateWhenVisible = false;
}
-WebInspector.ThrottledWidget.prototype = {
+WebInspector.ThrottledView.prototype = {
/**
* @protected
* @return {!Promise.<?>}
@@ -32,7 +33,7 @@ WebInspector.ThrottledWidget.prototype = {
this._updateThrottler.schedule(innerUpdate.bind(this));
/**
- * @this {WebInspector.ThrottledWidget}
+ * @this {WebInspector.ThrottledView}
* @return {!Promise.<?>}
*/
function innerUpdate()
@@ -51,10 +52,10 @@ WebInspector.ThrottledWidget.prototype = {
*/
wasShown: function()
{
- WebInspector.Widget.prototype.wasShown.call(this);
+ WebInspector.View.prototype.wasShown.call(this);
if (this._updateWhenVisible)
this.update();
},
- __proto__: WebInspector.Widget.prototype
+ __proto__: WebInspector.View.prototype
}

Powered by Google App Engine
This is Rietveld 408576698