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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineNetworkFlameChart.js

Issue 2573673002: DevTools: enable private field checks as a part of compilation. (Closed)
Patch Set: review comments addressed. Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @unrestricted 6 * @unrestricted
7 */ 7 */
8 Timeline.TimelineFlameChartNetworkDataProvider = class extends Timeline.Timeline FlameChartDataProviderBase { 8 Timeline.TimelineFlameChartNetworkDataProvider = class extends Timeline.Timeline FlameChartDataProviderBase {
9 /** 9 /**
10 * @param {!TimelineModel.TimelineModel} model 10 * @param {!TimelineModel.TimelineModel} model
11 */ 11 */
12 constructor(model) { 12 constructor(model) {
13 super(); 13 super();
14 this._model = model; 14 this._model = model;
15 /** @type {?UI.FlameChart.TimelineData} */ 15 /** @type {?UI.FlameChart.TimelineData} */
16 this._timelineData = null; 16 this._timelineData = null;
17 var loadingCategory = Timeline.TimelineUIUtils.categories()['loading']; 17 var loadingCategory = Timeline.TimelineUIUtils.categories()['loading'];
18 this._waitingColor = loadingCategory.childColor; 18 this._waitingColor = loadingCategory.childColor;
19 this._processingColor = loadingCategory.color; 19 this._processingColor = loadingCategory.color;
20 20
21 this._style = { 21 this._style = {
22 padding: 4, 22 padding: 4,
23 height: 17, 23 height: 17,
24 collapsible: true, 24 collapsible: true,
25 color: UI.themeSupport.patchColor('#222', UI.ThemeSupport.ColorUsage.Foreg round), 25 color: UI.themeSupport.patchColor('#222', UI.ThemeSupport.ColorUsage.Foreg round),
26 font: this._font, 26 font: this.font(),
27 backgroundColor: UI.themeSupport.patchColor('white', UI.ThemeSupport.Color Usage.Background), 27 backgroundColor: UI.themeSupport.patchColor('white', UI.ThemeSupport.Color Usage.Background),
28 nestingLevel: 0, 28 nestingLevel: 0,
29 useFirstLineForOverview: false, 29 useFirstLineForOverview: false,
30 shareHeaderLine: false 30 shareHeaderLine: false
31 }; 31 };
32 this._group = {startLevel: 0, name: Common.UIString('Network'), expanded: tr ue, style: this._style}; 32 this._group = {startLevel: 0, name: Common.UIString('Network'), expanded: tr ue, style: this._style};
33 } 33 }
34 34
35 /** 35 /**
36 * @override 36 * @override
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 this._timelineData.entryLevels.push(this._requests.length - 1); 316 this._timelineData.entryLevels.push(this._requests.length - 1);
317 } 317 }
318 318
319 /** 319 /**
320 * @return {number} 320 * @return {number}
321 */ 321 */
322 preferredHeight() { 322 preferredHeight() {
323 return this._style.height * (this._group.expanded ? Number.constrain(this._c urrentLevel + 1, 4, 8) : 2) + 2; 323 return this._style.height * (this._group.expanded ? Number.constrain(this._c urrentLevel + 1, 4, 8) : 2) + 2;
324 } 324 }
325 }; 325 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698