| 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 /** | 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 /** |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 } | 360 } |
| 361 | 361 |
| 362 /** | 362 /** |
| 363 * @return {number} | 363 * @return {number} |
| 364 */ | 364 */ |
| 365 preferredHeight() { | 365 preferredHeight() { |
| 366 return this._style.height * (this._group.expanded ? Number.constrain(this._m
axLevel + 1, 4, 8.5) : 1); | 366 return this._style.height * (this._group.expanded ? Number.constrain(this._m
axLevel + 1, 4, 8.5) : 1); |
| 367 } | 367 } |
| 368 | 368 |
| 369 /** | 369 /** |
| 370 * @return {boolean} |
| 371 */ |
| 372 isExpanded() { |
| 373 return this._group.expanded; |
| 374 } |
| 375 |
| 376 /** |
| 370 * @override | 377 * @override |
| 371 * @param {number} value | 378 * @param {number} value |
| 372 * @param {number=} precision | 379 * @param {number=} precision |
| 373 * @return {string} | 380 * @return {string} |
| 374 */ | 381 */ |
| 375 formatValue(value, precision) { | 382 formatValue(value, precision) { |
| 376 return Number.preciseMillisToString(value, precision); | 383 return Number.preciseMillisToString(value, precision); |
| 377 } | 384 } |
| 378 | 385 |
| 379 /** | 386 /** |
| 380 * @override | 387 * @override |
| 381 * @param {number} entryIndex | 388 * @param {number} entryIndex |
| 382 * @return {boolean} | 389 * @return {boolean} |
| 383 */ | 390 */ |
| 384 canJumpToEntry(entryIndex) { | 391 canJumpToEntry(entryIndex) { |
| 385 return false; | 392 return false; |
| 386 } | 393 } |
| 387 }; | 394 }; |
| OLD | NEW |