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 {Timeline.TimelineModeView} | 6 * @implements {Timeline.TimelineModeView} |
7 * @implements {PerfUI.FlameChartDelegate} | 7 * @implements {PerfUI.FlameChartDelegate} |
8 * @implements {UI.Searchable} | 8 * @implements {UI.Searchable} |
9 * @unrestricted | 9 * @unrestricted |
10 */ | 10 */ |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 this.timelineSelection = selection; | 495 this.timelineSelection = selection; |
496 this.entryIndex = entryIndex; | 496 this.entryIndex = entryIndex; |
497 } | 497 } |
498 }; | 498 }; |
499 | 499 |
500 Timeline.FlameChartStyle = { | 500 Timeline.FlameChartStyle = { |
501 textColor: '#333' | 501 textColor: '#333' |
502 }; | 502 }; |
503 | 503 |
504 /** | 504 /** |
505 * @enum {symbol} | |
506 */ | |
507 Timeline.TimelineFlameChartEntryType = { | |
508 Frame: Symbol('Frame'), | |
509 Event: Symbol('Event'), | |
510 InteractionRecord: Symbol('InteractionRecord'), | |
511 ExtensionEvent: Symbol('ExtensionEvent') | |
512 }; | |
513 | |
514 /** | |
515 * @implements {PerfUI.FlameChartMarker} | 505 * @implements {PerfUI.FlameChartMarker} |
516 * @unrestricted | 506 * @unrestricted |
517 */ | 507 */ |
518 Timeline.TimelineFlameChartMarker = class { | 508 Timeline.TimelineFlameChartMarker = class { |
519 /** | 509 /** |
520 * @param {number} startTime | 510 * @param {number} startTime |
521 * @param {number} startOffset | 511 * @param {number} startOffset |
522 * @param {!Timeline.TimelineMarkerStyle} style | 512 * @param {!Timeline.TimelineMarkerStyle} style |
523 */ | 513 */ |
524 constructor(startTime, startOffset, style) { | 514 constructor(startTime, startOffset, style) { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 } | 577 } |
588 context.restore(); | 578 context.restore(); |
589 } | 579 } |
590 }; | 580 }; |
591 | 581 |
592 /** @enum {string} */ | 582 /** @enum {string} */ |
593 Timeline.TimelineFlameChartView._ColorBy = { | 583 Timeline.TimelineFlameChartView._ColorBy = { |
594 URL: 'URL', | 584 URL: 'URL', |
595 Product: 'Product' | 585 Product: 'Product' |
596 }; | 586 }; |
OLD | NEW |