| 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 * @constructor | 6 * @constructor |
| 7 * @implements {WebInspector.Searchable} | 7 * @implements {WebInspector.Searchable} |
| 8 * @extends {WebInspector.VBox} | 8 * @extends {WebInspector.VBox} |
| 9 * @param {!WebInspector.ProfileDataGridNode.Formatter} nodeFormatter | 9 * @param {!WebInspector.ProfileDataGridNode.Formatter} nodeFormatter |
| 10 * @param {!Array<string>=} viewTypes | 10 * @param {!Array<string>=} viewTypes |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 _onEntrySelected: function(event) | 262 _onEntrySelected: function(event) |
| 263 { | 263 { |
| 264 var entryIndex = event.data; | 264 var entryIndex = event.data; |
| 265 var node = this._dataProvider._entryNodes[entryIndex]; | 265 var node = this._dataProvider._entryNodes[entryIndex]; |
| 266 var debuggerModel = this._profileHeader._debuggerModel; | 266 var debuggerModel = this._profileHeader._debuggerModel; |
| 267 if (!node || !node.scriptId || !debuggerModel) | 267 if (!node || !node.scriptId || !debuggerModel) |
| 268 return; | 268 return; |
| 269 var script = debuggerModel.scriptForId(node.scriptId); | 269 var script = debuggerModel.scriptForId(node.scriptId); |
| 270 if (!script) | 270 if (!script) |
| 271 return; | 271 return; |
| 272 var location = /** @type {!WebInspector.DebuggerModel.Location} */ (debu
ggerModel.createRawLocation(script, node.lineNumber - 1, node.columnNumber ? nod
e.columnNumber - 1 : node.columnNumber)); | 272 var location = /** @type {!WebInspector.DebuggerModel.Location} */ (debu
ggerModel.createRawLocation(script, node.lineNumber, node.columnNumber)); |
| 273 WebInspector.Revealer.reveal(WebInspector.debuggerWorkspaceBinding.rawLo
cationToUILocation(location)); | 273 WebInspector.Revealer.reveal(WebInspector.debuggerWorkspaceBinding.rawLo
cationToUILocation(location)); |
| 274 }, | 274 }, |
| 275 | 275 |
| 276 _changeView: function() | 276 _changeView: function() |
| 277 { | 277 { |
| 278 if (!this.profile) | 278 if (!this.profile) |
| 279 return; | 279 return; |
| 280 | 280 |
| 281 this._searchableView.closeSearch(); | 281 this._searchableView.closeSearch(); |
| 282 | 282 |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 _notifyTempFileReady: function() | 583 _notifyTempFileReady: function() |
| 584 { | 584 { |
| 585 if (this._onTempFileReady) { | 585 if (this._onTempFileReady) { |
| 586 this._onTempFileReady(); | 586 this._onTempFileReady(); |
| 587 this._onTempFileReady = null; | 587 this._onTempFileReady = null; |
| 588 } | 588 } |
| 589 }, | 589 }, |
| 590 | 590 |
| 591 __proto__: WebInspector.ProfileHeader.prototype | 591 __proto__: WebInspector.ProfileHeader.prototype |
| 592 } | 592 } |
| OLD | NEW |