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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.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/timeline/TimelineUIUtils.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
index 3f443133e1d30881cd0b14d1b8a71c0ef411f0a4..803377f7f2129d3d575b7efc6049021353b0c07b 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
@@ -1453,7 +1453,7 @@ Timeline.TimelineUIUtils = class {
total += aggregatedStats[categoryName];
var element = createElementWithClass('div', 'timeline-details-view-pie-chart-wrapper hbox');
- var pieChart = new UI.PieChart(100);
+ var pieChart = new Perf_UI.PieChart(100);
pieChart.element.classList.add('timeline-details-view-pie-chart');
pieChart.setTotal(total);
var pieChartContainer = element.createChild('div', 'vbox');
@@ -1507,7 +1507,7 @@ Timeline.TimelineUIUtils = class {
/**
* @param {!TimelineModel.TimelineFrameModel} frameModel
* @param {!TimelineModel.TimelineFrame} frame
- * @param {?Components.FilmStripModel.Frame} filmStripFrame
+ * @param {?SDK.FilmStripModel.Frame} filmStripFrame
* @return {!Element}
*/
static generateDetailsContentForFrame(frameModel, frame, filmStripFrame) {
@@ -1542,7 +1542,7 @@ Timeline.TimelineUIUtils = class {
}
/**
- * @param {!Components.FilmStripModel.Frame} filmStripFrame
+ * @param {!SDK.FilmStripModel.Frame} filmStripFrame
*/
function frameClicked(filmStripFrame) {
new Components.FilmStripView.Dialog(filmStripFrame, 0);
@@ -1705,7 +1705,7 @@ Timeline.TimelineUIUtils = class {
static colorForURL(url) {
if (!Timeline.TimelineUIUtils.colorForURL._colorGenerator) {
Timeline.TimelineUIUtils.colorForURL._colorGenerator =
- new UI.FlameChart.ColorGenerator({min: 30, max: 330}, {min: 50, max: 80, count: 3}, 85);
+ new Perf_UI.FlameChart.ColorGenerator({min: 30, max: 330}, {min: 50, max: 80, count: 3}, 85);
}
return Timeline.TimelineUIUtils.colorForURL._colorGenerator.colorForID(url);
}

Powered by Google App Engine
This is Rietveld 408576698