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

Unified Diff: third_party/WebKit/Source/devtools/front_end/layers/LayerPaintProfilerView.js

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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/layers/LayerPaintProfilerView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/layers/LayerPaintProfilerView.js b/third_party/WebKit/Source/devtools/front_end/layers/LayerPaintProfilerView.js
index 7d96d292f46512dc3f3bed8b45d1840547e8c9b9..cabbf298d0c4f43df2d796729b4ce51babd2eae2 100644
--- a/third_party/WebKit/Source/devtools/front_end/layers/LayerPaintProfilerView.js
+++ b/third_party/WebKit/Source/devtools/front_end/layers/LayerPaintProfilerView.js
@@ -4,20 +4,20 @@
/**
* @unrestricted
*/
-WebInspector.LayerPaintProfilerView = class extends WebInspector.SplitWidget {
+Layers.LayerPaintProfilerView = class extends UI.SplitWidget {
/**
* @param {function(string=)} showImageCallback
*/
constructor(showImageCallback) {
super(true, false);
- this._logTreeView = new WebInspector.PaintProfilerCommandLogView();
+ this._logTreeView = new LayerViewer.PaintProfilerCommandLogView();
this.setSidebarWidget(this._logTreeView);
- this._paintProfilerView = new WebInspector.PaintProfilerView(showImageCallback);
+ this._paintProfilerView = new LayerViewer.PaintProfilerView(showImageCallback);
this.setMainWidget(this._paintProfilerView);
this._paintProfilerView.addEventListener(
- WebInspector.PaintProfilerView.Events.WindowChanged, this._onWindowChanged, this);
+ LayerViewer.PaintProfilerView.Events.WindowChanged, this._onWindowChanged, this);
}
reset() {
@@ -25,16 +25,16 @@ WebInspector.LayerPaintProfilerView = class extends WebInspector.SplitWidget {
}
/**
- * @param {!WebInspector.PaintProfilerSnapshot} snapshot
+ * @param {!SDK.PaintProfilerSnapshot} snapshot
*/
profile(snapshot) {
this._showImageCallback = null;
snapshot.commandLog().then(log => setSnapshotAndLog.call(this, snapshot, log));
/**
- * @param {?WebInspector.PaintProfilerSnapshot} snapshot
- * @param {?Array<!WebInspector.PaintProfilerLogItem>} log
- * @this {WebInspector.LayerPaintProfilerView}
+ * @param {?SDK.PaintProfilerSnapshot} snapshot
+ * @param {?Array<!SDK.PaintProfilerLogItem>} log
+ * @this {Layers.LayerPaintProfilerView}
*/
function setSnapshotAndLog(snapshot, log) {
this._logTreeView.setCommandLog(snapshot && snapshot.target(), log || []);

Powered by Google App Engine
This is Rietveld 408576698