| 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 * @unrestricted | 5 * @unrestricted |
| 6 */ | 6 */ |
| 7 Network.NetworkLogViewColumns = class { | 7 Network.NetworkLogViewColumns = class { |
| 8 /** | 8 /** |
| 9 * @param {!Network.NetworkLogView} networkLogView | 9 * @param {!Network.NetworkLogView} networkLogView |
| 10 * @param {!Network.NetworkTransferTimeCalculator} timeCalculator | 10 * @param {!Network.NetworkTransferTimeCalculator} timeCalculator |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 | 538 |
| 539 /** | 539 /** |
| 540 * @param {!Element} anchor | 540 * @param {!Element} anchor |
| 541 * @param {!UI.Popover} popover | 541 * @param {!UI.Popover} popover |
| 542 */ | 542 */ |
| 543 _showPopover(anchor, popover) { | 543 _showPopover(anchor, popover) { |
| 544 var request = /** @type {!SDK.NetworkRequest} */ (anchor.request); | 544 var request = /** @type {!SDK.NetworkRequest} */ (anchor.request); |
| 545 var initiator = /** @type {!Protocol.Network.Initiator} */ (request.initiato
r()); | 545 var initiator = /** @type {!Protocol.Network.Initiator} */ (request.initiato
r()); |
| 546 var content = Components.DOMPresentationUtils.buildStackTracePreviewContents
( | 546 var content = Components.DOMPresentationUtils.buildStackTracePreviewContents
( |
| 547 request.target(), this._popupLinkifier, initiator.stack); | 547 request.target(), this._popupLinkifier, initiator.stack); |
| 548 popover.setCanShrink(true); | |
| 549 popover.showForAnchor(content, anchor); | 548 popover.showForAnchor(content, anchor); |
| 550 } | 549 } |
| 551 | 550 |
| 552 _onHidePopover() { | 551 _onHidePopover() { |
| 553 this._popupLinkifier.reset(); | 552 this._popupLinkifier.reset(); |
| 554 } | 553 } |
| 555 | 554 |
| 556 /** | 555 /** |
| 557 * @param {!Array<number>} times | 556 * @param {!Array<number>} times |
| 558 * @param {string} className | 557 * @param {string} className |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 /** | 804 /** |
| 806 * @enum {string} | 805 * @enum {string} |
| 807 */ | 806 */ |
| 808 Network.NetworkLogViewColumns.WaterfallSortIds = { | 807 Network.NetworkLogViewColumns.WaterfallSortIds = { |
| 809 StartTime: 'startTime', | 808 StartTime: 'startTime', |
| 810 ResponseTime: 'responseReceivedTime', | 809 ResponseTime: 'responseReceivedTime', |
| 811 EndTime: 'endTime', | 810 EndTime: 'endTime', |
| 812 Duration: 'duration', | 811 Duration: 'duration', |
| 813 Latency: 'latency' | 812 Latency: 'latency' |
| 814 }; | 813 }; |
| OLD | NEW |