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