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

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

Issue 2640403003: Fix UI glitches on Performance and Memory panels (Closed)
Patch Set: fix flamechart panning bug 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 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 * @implements {PerfUI.FlameChartDataProvider} 6 * @implements {PerfUI.FlameChartDataProvider}
7 * @unrestricted 7 * @unrestricted
8 */ 8 */
9 Timeline.TimelineFlameChartNetworkDataProvider = class { 9 Timeline.TimelineFlameChartNetworkDataProvider = class {
10 /** 10 /**
11 * @param {!TimelineModel.TimelineModel} model 11 * @param {!TimelineModel.TimelineModel} model
12 */ 12 */
13 constructor(model) { 13 constructor(model) {
14 this._font = '11px ' + Host.fontFamily(); 14 this._font = '11px ' + Host.fontFamily();
15 this._model = model; 15 this._model = model;
16 this.reset(); 16 this.reset();
17 this._style = { 17 this._style = {
18 padding: 4, 18 padding: 4,
19 height: 17, 19 height: 17,
20 collapsible: true, 20 collapsible: true,
21 color: UI.themeSupport.patchColor('#222', UI.ThemeSupport.ColorUsage.Foreg round), 21 color: UI.themeSupport.patchColor('#222', UI.ThemeSupport.ColorUsage.Foreg round),
22 font: this._font, 22 font: this._font,
23 backgroundColor: UI.themeSupport.patchColor('white', UI.ThemeSupport.Color Usage.Background), 23 backgroundColor: UI.themeSupport.patchColor('white', UI.ThemeSupport.Color Usage.Background),
24 nestingLevel: 0, 24 nestingLevel: 0,
25 useFirstLineForOverview: false, 25 useFirstLineForOverview: false,
26 useDecoratorsForOverview: true, 26 useDecoratorsForOverview: true,
27 shareHeaderLine: false 27 shareHeaderLine: false
28 }; 28 };
29 this._group = {startLevel: 0, name: Common.UIString('Network'), expanded: tr ue, style: this._style}; 29 this._group = {startLevel: 0, name: Common.UIString('Network'), expanded: fa lse, style: this._style};
30 } 30 }
31 31
32 /** 32 /**
33 * @return {boolean} 33 * @return {boolean}
34 */ 34 */
35 isEmpty() { 35 isEmpty() {
36 this.timelineData(); 36 this.timelineData();
37 return this._maxLevel === 0; 37 return this._maxLevel === 0;
38 } 38 }
39 39
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 382
383 /** 383 /**
384 * @override 384 * @override
385 * @param {number} entryIndex 385 * @param {number} entryIndex
386 * @return {boolean} 386 * @return {boolean}
387 */ 387 */
388 canJumpToEntry(entryIndex) { 388 canJumpToEntry(entryIndex) {
389 return false; 389 return false;
390 } 390 }
391 }; 391 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698