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

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

Issue 2596023002: DevTools: remove ruler bar from the main flamechart (Closed)
Patch Set: rebaseline Created 3 years, 12 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 {UI.FlameChartDataProvider} 6 * @implements {UI.FlameChartDataProvider}
7 * @unrestricted 7 * @unrestricted
8 */ 8 */
9 Timeline.TimelineFlameChartDataProviderBase = class { 9 Timeline.TimelineFlameChartDataProviderBase = class {
10 constructor() { 10 constructor() {
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 this.element.classList.add('timeline-flamechart'); 292 this.element.classList.add('timeline-flamechart');
293 this._delegate = delegate; 293 this._delegate = delegate;
294 this._model = timelineModel; 294 this._model = timelineModel;
295 this._extensionModels = extensionModels; 295 this._extensionModels = extensionModels;
296 this._splitWidget = new UI.SplitWidget(false, false, 'timelineFlamechartMain View', 150); 296 this._splitWidget = new UI.SplitWidget(false, false, 'timelineFlamechartMain View', 150);
297 297
298 this._dataProvider = new Timeline.TimelineFlameChartDataProvider(this._model , frameModel, irModel, filters); 298 this._dataProvider = new Timeline.TimelineFlameChartDataProvider(this._model , frameModel, irModel, filters);
299 var mainViewGroupExpansionSetting = Common.settings.createSetting('timelineF lamechartMainViewGroupExpansion', {}); 299 var mainViewGroupExpansionSetting = Common.settings.createSetting('timelineF lamechartMainViewGroupExpansion', {});
300 this._mainView = new UI.FlameChart(this._dataProvider, this, mainViewGroupEx pansionSetting); 300 this._mainView = new UI.FlameChart(this._dataProvider, this, mainViewGroupEx pansionSetting);
301 this._mainView.alwaysShowVerticalScroll(); 301 this._mainView.alwaysShowVerticalScroll();
302 this._mainView.enableRuler(false);
302 303
303 var networkViewGroupExpansionSetting = 304 var networkViewGroupExpansionSetting =
304 Common.settings.createSetting('timelineFlamechartNetworkViewGroupExpansi on', {}); 305 Common.settings.createSetting('timelineFlamechartNetworkViewGroupExpansi on', {});
305 this._networkDataProvider = new Timeline.TimelineFlameChartNetworkDataProvid er(this._model); 306 this._networkDataProvider = new Timeline.TimelineFlameChartNetworkDataProvid er(this._model);
306 this._networkView = new UI.FlameChart(this._networkDataProvider, this, netwo rkViewGroupExpansionSetting); 307 this._networkView = new UI.FlameChart(this._networkDataProvider, this, netwo rkViewGroupExpansionSetting);
307 this._networkView.alwaysShowVerticalScroll(); 308 this._networkView.alwaysShowVerticalScroll();
308 networkViewGroupExpansionSetting.addChangeListener(this.resizeToPreferredHei ghts.bind(this)); 309 networkViewGroupExpansionSetting.addChangeListener(this.resizeToPreferredHei ghts.bind(this));
309 310
310 this._splitWidget.setMainWidget(this._mainView); 311 this._splitWidget.setMainWidget(this._mainView);
311 this._splitWidget.setSidebarWidget(this._networkView); 312 this._splitWidget.setSidebarWidget(this._networkView);
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 Timeline.TimelineFlameChartView.Selection = class { 477 Timeline.TimelineFlameChartView.Selection = class {
477 /** 478 /**
478 * @param {!Timeline.TimelineSelection} selection 479 * @param {!Timeline.TimelineSelection} selection
479 * @param {number} entryIndex 480 * @param {number} entryIndex
480 */ 481 */
481 constructor(selection, entryIndex) { 482 constructor(selection, entryIndex) {
482 this.timelineSelection = selection; 483 this.timelineSelection = selection;
483 this.entryIndex = entryIndex; 484 this.entryIndex = entryIndex;
484 } 485 }
485 }; 486 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698