| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 * @unrestricted | 6 * @unrestricted |
| 7 */ | 7 */ |
| 8 Timeline.TimelineTreeView = class extends UI.VBox { | 8 Timeline.TimelineTreeView = class extends UI.VBox { |
| 9 constructor() { | 9 constructor() { |
| 10 super(); | 10 super(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 return data['functionName'] + '@' + (data['scriptId'] || data['url'] || ''
); | 23 return data['functionName'] + '@' + (data['scriptId'] || data['url'] || ''
); |
| 24 } | 24 } |
| 25 return event.name + ':@' + TimelineModel.TimelineProfileTree.eventURL(event)
; | 25 return event.name + ':@' + TimelineModel.TimelineProfileTree.eventURL(event)
; |
| 26 } | 26 } |
| 27 | 27 |
| 28 /** | 28 /** |
| 29 * @param {?Timeline.PerformanceModel} model | 29 * @param {?Timeline.PerformanceModel} model |
| 30 */ | 30 */ |
| 31 setModel(model) { | 31 setModel(model) { |
| 32 this._model = model; | 32 this._model = model; |
| 33 this.refreshTree(); |
| 33 } | 34 } |
| 34 | 35 |
| 35 /** | 36 /** |
| 36 * @protected | 37 * @protected |
| 37 * @return {?Timeline.PerformanceModel} model | 38 * @return {?Timeline.PerformanceModel} model |
| 38 */ | 39 */ |
| 39 model() { | 40 model() { |
| 40 return this._model; | 41 return this._model; |
| 41 } | 42 } |
| 42 | 43 |
| (...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 | 864 |
| 864 _onSelectionChanged() { | 865 _onSelectionChanged() { |
| 865 this.dispatchEventToListeners(Timeline.TimelineStackView.Events.SelectionCha
nged); | 866 this.dispatchEventToListeners(Timeline.TimelineStackView.Events.SelectionCha
nged); |
| 866 } | 867 } |
| 867 }; | 868 }; |
| 868 | 869 |
| 869 /** @enum {symbol} */ | 870 /** @enum {symbol} */ |
| 870 Timeline.TimelineStackView.Events = { | 871 Timeline.TimelineStackView.Events = { |
| 871 SelectionChanged: Symbol('SelectionChanged') | 872 SelectionChanged: Symbol('SelectionChanged') |
| 872 }; | 873 }; |
| OLD | NEW |