| 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 */ | 9 */ |
| 10 WebInspector.TimelineTreeView = function(model) | 10 WebInspector.TimelineTreeView = function(model) |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 /** | 146 /** |
| 147 * @param {function(!WebInspector.TracingModel.Event):(string|symbol)=} even
tIdCallback | 147 * @param {function(!WebInspector.TracingModel.Event):(string|symbol)=} even
tIdCallback |
| 148 * @return {!WebInspector.TimelineProfileTree.Node} | 148 * @return {!WebInspector.TimelineProfileTree.Node} |
| 149 */ | 149 */ |
| 150 _buildTopDownTree: function(eventIdCallback) | 150 _buildTopDownTree: function(eventIdCallback) |
| 151 { | 151 { |
| 152 return WebInspector.TimelineProfileTree.buildTopDown(this._model.mainThr
eadEvents(), this._filters, this._startTime, this._endTime, eventIdCallback) | 152 return WebInspector.TimelineProfileTree.buildTopDown(this._model.mainThr
eadEvents(), this._filters, this._startTime, this._endTime, eventIdCallback) |
| 153 }, | 153 }, |
| 154 | 154 |
| 155 /** | 155 /** |
| 156 * @param {!Array.<!WebInspector.DataGrid.ColumnDescriptor>} columns | 156 * @param {!Array<!WebInspector.DataGrid.ColumnDescriptor>} columns |
| 157 */ | 157 */ |
| 158 _populateColumns: function(columns) | 158 _populateColumns: function(columns) |
| 159 { | 159 { |
| 160 columns.push({id: "self", title: WebInspector.UIString("Self Time"), wid
th: "110px", fixedWidth: true, sortable: true}); | 160 columns.push({id: "self", title: WebInspector.UIString("Self Time"), wid
th: "110px", fixedWidth: true, sortable: true}); |
| 161 columns.push({id: "total", title: WebInspector.UIString("Total Time"), w
idth: "110px", fixedWidth: true, sortable: true}); | 161 columns.push({id: "total", title: WebInspector.UIString("Total Time"), w
idth: "110px", fixedWidth: true, sortable: true}); |
| 162 columns.push({id: "activity", title: WebInspector.UIString("Activity"),
disclosure: true, sortable: true}); | 162 columns.push({id: "activity", title: WebInspector.UIString("Activity"),
disclosure: true, sortable: true}); |
| 163 }, | 163 }, |
| 164 | 164 |
| 165 _sortingChanged: function() | 165 _sortingChanged: function() |
| 166 { | 166 { |
| (...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1004 return selectedNode && /** @type {!WebInspector.TimelineTreeView.GridNod
e} */ (selectedNode)._profileNode; | 1004 return selectedNode && /** @type {!WebInspector.TimelineTreeView.GridNod
e} */ (selectedNode)._profileNode; |
| 1005 }, | 1005 }, |
| 1006 | 1006 |
| 1007 _onSelectionChanged: function() | 1007 _onSelectionChanged: function() |
| 1008 { | 1008 { |
| 1009 this.dispatchEventToListeners(WebInspector.TimelineStackView.Events.Sele
ctionChanged); | 1009 this.dispatchEventToListeners(WebInspector.TimelineStackView.Events.Sele
ctionChanged); |
| 1010 }, | 1010 }, |
| 1011 | 1011 |
| 1012 __proto__: WebInspector.VBox.prototype | 1012 __proto__: WebInspector.VBox.prototype |
| 1013 } | 1013 } |
| OLD | NEW |