| OLD | NEW |
| 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 Timeline.FlameChartStyle = { | 5 Timeline.FlameChartStyle = { |
| 6 textColor: '#333' | 6 textColor: '#333' |
| 7 }; | 7 }; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * @enum {symbol} | 10 * @enum {symbol} |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 * @param {!Common.Event} event | 298 * @param {!Common.Event} event |
| 299 */ | 299 */ |
| 300 _onEntrySelected(dataProvider, event) { | 300 _onEntrySelected(dataProvider, event) { |
| 301 var entryIndex = /** @type{number} */ (event.data); | 301 var entryIndex = /** @type{number} */ (event.data); |
| 302 this._delegate.select(dataProvider.createSelection(entryIndex)); | 302 this._delegate.select(dataProvider.createSelection(entryIndex)); |
| 303 } | 303 } |
| 304 | 304 |
| 305 resizeToPreferredHeights() { | 305 resizeToPreferredHeights() { |
| 306 this._splitWidget.setSidebarSize( | 306 this._splitWidget.setSidebarSize( |
| 307 this._networkDataProvider.preferredHeight() + this._splitResizer.clientH
eight + PerfUI.FlameChart.HeaderHeight + | 307 this._networkDataProvider.preferredHeight() + this._splitResizer.clientH
eight + PerfUI.FlameChart.HeaderHeight + |
| 308 3); | 308 2); |
| 309 } | 309 } |
| 310 }; | 310 }; |
| 311 | 311 |
| 312 /** | 312 /** |
| 313 * @unrestricted | 313 * @unrestricted |
| 314 */ | 314 */ |
| 315 Timeline.TimelineFlameChartView.Selection = class { | 315 Timeline.TimelineFlameChartView.Selection = class { |
| 316 /** | 316 /** |
| 317 * @param {!Timeline.TimelineSelection} selection | 317 * @param {!Timeline.TimelineSelection} selection |
| 318 * @param {number} entryIndex | 318 * @param {number} entryIndex |
| 319 */ | 319 */ |
| 320 constructor(selection, entryIndex) { | 320 constructor(selection, entryIndex) { |
| 321 this.timelineSelection = selection; | 321 this.timelineSelection = selection; |
| 322 this.entryIndex = entryIndex; | 322 this.entryIndex = entryIndex; |
| 323 } | 323 } |
| 324 }; | 324 }; |
| OLD | NEW |