Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(574)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js

Issue 2690603003: Timeline: streamline flame chart views update logic (Closed)
Patch Set: moar fixes Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698