| 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 * @constructor | 6 * @constructor |
| 7 * @extends {WebInspector.VBox} | 7 * @extends {WebInspector.VBox} |
| 8 * @param {!WebInspector.TimelineModel} model | 8 * @param {!WebInspector.TimelineModel} model |
| 9 * @param {!Array<!WebInspector.TimelineModel.Filter>} filters | 9 * @param {!Array<!WebInspector.TimelineModel.Filter>} filters |
| 10 */ | 10 */ |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 * @param {?WebInspector.TimelineProfileTree.Node} node | 79 * @param {?WebInspector.TimelineProfileTree.Node} node |
| 80 */ | 80 */ |
| 81 _onHover: function(node) { }, | 81 _onHover: function(node) { }, |
| 82 | 82 |
| 83 /** | 83 /** |
| 84 * @param {!RuntimeAgent.CallFrame} frame | 84 * @param {!RuntimeAgent.CallFrame} frame |
| 85 * @return {!Element} | 85 * @return {!Element} |
| 86 */ | 86 */ |
| 87 linkifyLocation: function(frame) | 87 linkifyLocation: function(frame) |
| 88 { | 88 { |
| 89 return this._linkifier.linkifyConsoleCallFrame(this._model.target(), fra
me); | 89 return this._linkifier.linkifyConsoleCallFrameForTimeline(this._model.ta
rget(), frame); |
| 90 }, | 90 }, |
| 91 | 91 |
| 92 /** | 92 /** |
| 93 * @param {!WebInspector.TimelineProfileTree.Node} treeNode | 93 * @param {!WebInspector.TimelineProfileTree.Node} treeNode |
| 94 * @param {boolean} suppressSelectedEvent | 94 * @param {boolean} suppressSelectedEvent |
| 95 */ | 95 */ |
| 96 selectProfileNode: function(treeNode, suppressSelectedEvent) | 96 selectProfileNode: function(treeNode, suppressSelectedEvent) |
| 97 { | 97 { |
| 98 var pathToRoot = []; | 98 var pathToRoot = []; |
| 99 for (var node = treeNode; node; node = node.parent) | 99 for (var node = treeNode; node; node = node.parent) |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 this._stackView.setStack(stack, node); | 611 this._stackView.setStack(stack, node); |
| 612 this._stackView.show(this._detailsView.element); | 612 this._stackView.show(this._detailsView.element); |
| 613 return true; | 613 return true; |
| 614 }, | 614 }, |
| 615 | 615 |
| 616 /** | 616 /** |
| 617 * @return {!WebInspector.TimelineAggregator} | 617 * @return {!WebInspector.TimelineAggregator} |
| 618 */ | 618 */ |
| 619 _createAggregator: function() | 619 _createAggregator: function() |
| 620 { | 620 { |
| 621 return new WebInspector.TimelineAggregator( | 621 return new WebInspector.TimelineAggregator( |
| 622 event => WebInspector.TimelineUIUtils.eventStyle(event).title, | 622 event => WebInspector.TimelineUIUtils.eventStyle(event).title, |
| 623 event => WebInspector.TimelineUIUtils.eventStyle(event).category.na
me | 623 event => WebInspector.TimelineUIUtils.eventStyle(event).category.nam
e |
| 624 ); | 624 ); |
| 625 }, | 625 }, |
| 626 | 626 |
| 627 __proto__: WebInspector.TimelineTreeView.prototype, | 627 __proto__: WebInspector.TimelineTreeView.prototype, |
| 628 }; | 628 }; |
| 629 | 629 |
| 630 /** | 630 /** |
| 631 * @constructor | 631 * @constructor |
| 632 * @extends {WebInspector.AggregatedTimelineTreeView} | 632 * @extends {WebInspector.AggregatedTimelineTreeView} |
| 633 * @param {!WebInspector.TimelineModel} model | 633 * @param {!WebInspector.TimelineModel} model |
| 634 * @param {!Array<!WebInspector.TimelineModel.Filter>} filters | 634 * @param {!Array<!WebInspector.TimelineModel.Filter>} filters |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 return selectedNode && /** @type {!WebInspector.TimelineTreeView.GridNod
e} */ (selectedNode)._profileNode; | 877 return selectedNode && /** @type {!WebInspector.TimelineTreeView.GridNod
e} */ (selectedNode)._profileNode; |
| 878 }, | 878 }, |
| 879 | 879 |
| 880 _onSelectionChanged: function() | 880 _onSelectionChanged: function() |
| 881 { | 881 { |
| 882 this.dispatchEventToListeners(WebInspector.TimelineStackView.Events.Sele
ctionChanged); | 882 this.dispatchEventToListeners(WebInspector.TimelineStackView.Events.Sele
ctionChanged); |
| 883 }, | 883 }, |
| 884 | 884 |
| 885 __proto__: WebInspector.VBox.prototype | 885 __proto__: WebInspector.VBox.prototype |
| 886 } | 886 } |
| OLD | NEW |