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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js

Issue 2608043002: DevTools: extract modules (with extensions) (Closed)
Patch Set: fixes 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/network/NetworkPanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js b/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js
index 2f78bf4c53f84f7d5944072c3679d12532a5bc92..31a892f16eed7e59393af44255325b2e6b59c9ba 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js
@@ -53,8 +53,9 @@ Network.NetworkPanel = class extends UI.Panel {
this._filterBar.show(this.element);
// Create top overview component.
- this._overviewPane = new UI.TimelineOverviewPane('network');
- this._overviewPane.addEventListener(UI.TimelineOverviewPane.Events.WindowChanged, this._onWindowChanged.bind(this));
+ this._overviewPane = new Perf_UI.TimelineOverviewPane('network');
+ this._overviewPane.addEventListener(
+ Perf_UI.TimelineOverviewPane.Events.WindowChanged, this._onWindowChanged.bind(this));
this._overviewPane.element.id = 'network-overview-panel';
this._networkOverview = new Network.NetworkOverview();
this._overviewPane.setOverviewControls([this._networkOverview]);
@@ -105,7 +106,7 @@ Network.NetworkPanel = class extends UI.Panel {
Network.NetworkLogView.Events.SearchIndexUpdated, this._onSearchIndexUpdated, this);
this._networkLogView.addEventListener(Network.NetworkLogView.Events.UpdateRequest, this._onUpdateRequest, this);
- Components.DataSaverInfobar.maybeShowInPanel(this);
+ Main.DataSaverInfobar.maybeShowInPanel(this);
}
/**
@@ -225,7 +226,7 @@ Network.NetworkPanel = class extends UI.Panel {
}
/**
- * @param {?Components.FilmStripModel} filmStripModel
+ * @param {?SDK.FilmStripModel} filmStripModel
*/
_filmStripAvailable(filmStripModel) {
if (!filmStripModel)
@@ -236,7 +237,7 @@ Network.NetworkPanel = class extends UI.Panel {
var timestamps = filmStripModel.frames().map(mapTimestamp);
/**
- * @param {!Components.FilmStripModel.Frame} frame
+ * @param {!SDK.FilmStripModel.Frame} frame
* @return {number}
*/
function mapTimestamp(frame) {
@@ -661,7 +662,7 @@ Network.NetworkPanel.FilmStripRecorder = class {
this._tracingModel.tracingComplete();
SDK.targetManager.resumeReload(this._target);
this._target = null;
- this._callback(new Components.FilmStripModel(this._tracingModel, this._timeCalculator.minimumBoundary() * 1000));
+ this._callback(new SDK.FilmStripModel(this._tracingModel, this._timeCalculator.minimumBoundary() * 1000));
delete this._callback;
}
@@ -700,7 +701,7 @@ Network.NetworkPanel.FilmStripRecorder = class {
}
/**
- * @param {function(?Components.FilmStripModel)} callback
+ * @param {function(?SDK.FilmStripModel)} callback
*/
stopRecording(callback) {
if (!this._target)

Powered by Google App Engine
This is Rietveld 408576698