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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js

Issue 2608043002: DevTools: extract modules (with extensions) (Closed)
Patch Set: fix externs (PerfUI) Created 3 years, 11 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/timeline/TimelinePanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
index 03f117c35617fddc14809866ca5526cee96dea72..eaba99b3317ca5c450449b1c635b648ab958a700 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
@@ -553,7 +553,8 @@ Timeline.TimelinePanel = class extends UI.Panel {
for (var i = 0; i < this._overviewControls.length; ++i)
this._overviewControls[i].timelineStarted();
- Host.userMetrics.actionTaken(userInitiated ? Host.UserMetrics.Action.TimelineStarted : Host.UserMetrics.Action.TimelinePageReloadStarted);
+ Host.userMetrics.actionTaken(
+ userInitiated ? Host.UserMetrics.Action.TimelineStarted : Host.UserMetrics.Action.TimelinePageReloadStarted);
this._setUIControlsEnabled(false);
this._hideLandingPage();
}
@@ -600,7 +601,7 @@ Timeline.TimelinePanel = class extends UI.Panel {
}
_reset() {
- Components.LineLevelProfile.instance().reset();
+ PerfUI.LineLevelProfile.instance().reset();
this._tracingModel.reset();
this._model.reset();
for (let extensionEntry of this._extensionTracingModels)
@@ -723,7 +724,7 @@ Timeline.TimelinePanel = class extends UI.Panel {
var groups = TimelineModel.TimelineModel.AsyncEventGroup;
var asyncEventsByGroup = this._model.mainThreadAsyncEvents();
this._irModel.populate(asyncEventsByGroup.get(groups.input), asyncEventsByGroup.get(groups.animation));
- this._model.cpuProfiles().forEach(profile => Components.LineLevelProfile.instance().appendCPUProfile(profile));
+ this._model.cpuProfiles().forEach(profile => PerfUI.LineLevelProfile.instance().appendCPUProfile(profile));
if (this._statusPane)
this._statusPane.hide();
delete this._statusPane;

Powered by Google App Engine
This is Rietveld 408576698