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

Unified Diff: Source/devtools/front_end/timeline/LayerDetailsView.js

Issue 1113813002: [DevTools] Rename View to Widget. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 8 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: Source/devtools/front_end/timeline/LayerDetailsView.js
diff --git a/Source/devtools/front_end/timeline/LayerDetailsView.js b/Source/devtools/front_end/timeline/LayerDetailsView.js
index 270fa660fc6925a16eccde641ef1666a36d800ff..8e50ebefee099734401481004f719a140c18df34 100644
--- a/Source/devtools/front_end/timeline/LayerDetailsView.js
+++ b/Source/devtools/front_end/timeline/LayerDetailsView.js
@@ -31,16 +31,16 @@
/**
* @constructor
* @param {!WebInspector.LayerViewHost} layerViewHost
- * @extends {WebInspector.View}
+ * @extends {WebInspector.Widget}
* @implements {WebInspector.LayerView}
*/
WebInspector.LayerDetailsView = function(layerViewHost)
{
- WebInspector.View.call(this);
+ WebInspector.Widget.call(this);
this.element.classList.add("layer-details-view");
this._layerViewHost = layerViewHost;
this._layerViewHost.registerView(this);
- this._emptyView = new WebInspector.EmptyView(WebInspector.UIString("Select a layer to see its details"));
+ this._emptyWidget = new WebInspector.EmptyWidget(WebInspector.UIString("Select a layer to see its details"));
this._buildContent();
}
@@ -117,7 +117,7 @@ WebInspector.LayerDetailsView.prototype = {
wasShown: function()
{
- WebInspector.View.prototype.wasShown.call(this);
+ WebInspector.Widget.prototype.wasShown.call(this);
this.update();
},
@@ -160,10 +160,10 @@ WebInspector.LayerDetailsView.prototype = {
if (!layer) {
this._tableElement.remove();
this._paintProfilerButton.remove();
- this._emptyView.show(this.element);
+ this._emptyWidget.show(this.element);
return;
}
- this._emptyView.detach();
+ this._emptyWidget.detach();
this.element.appendChild(this._tableElement);
this.element.appendChild(this._paintProfilerButton);
this._sizeCell.textContent = WebInspector.UIString("%d × %d (at %d,%d)", layer.width(), layer.height(), layer.offsetX(), layer.offsetY());
@@ -222,5 +222,5 @@ WebInspector.LayerDetailsView.prototype = {
}
},
- __proto__: WebInspector.View.prototype
+ __proto__: WebInspector.Widget.prototype
}
« no previous file with comments | « Source/devtools/front_end/timeline/CountersGraph.js ('k') | Source/devtools/front_end/timeline/Layers3DView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698