| 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 WebInspector.NetworkLogViewColumns = class { | 7 WebInspector.NetworkLogViewColumns = class { |
| 8 /** | 8 /** |
| 9 * @param {!WebInspector.NetworkLogView} networkLogView | 9 * @param {!WebInspector.NetworkLogView} networkLogView |
| 10 * @param {!WebInspector.NetworkTransferTimeCalculator} timeCalculator | 10 * @param {!WebInspector.NetworkTransferTimeCalculator} timeCalculator |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 } | 224 } |
| 225 | 225 |
| 226 _redrawTimelineColumn() { | 226 _redrawTimelineColumn() { |
| 227 if (!this._timelineRequestsAreStale) { | 227 if (!this._timelineRequestsAreStale) { |
| 228 this._updateScrollerWidthIfNeeded(); | 228 this._updateScrollerWidthIfNeeded(); |
| 229 this._timelineColumn.update( | 229 this._timelineColumn.update( |
| 230 this._activeScroller.scrollTop, this._eventDividersShown ? this._shown
EventDividers : undefined); | 230 this._activeScroller.scrollTop, this._eventDividersShown ? this._shown
EventDividers : undefined); |
| 231 return; | 231 return; |
| 232 } | 232 } |
| 233 var currentNode = this._dataGrid.rootNode(); | 233 var currentNode = this._dataGrid.rootNode(); |
| 234 /** @type {!WebInspector.NetworkTimelineColumn.RequestData} */ |
| 234 var requestData = {requests: [], navigationRequest: null}; | 235 var requestData = {requests: [], navigationRequest: null}; |
| 235 while (currentNode = currentNode.traverseNextNode(true)) { | 236 while (currentNode = currentNode.traverseNextNode(true)) { |
| 236 if (currentNode.isNavigationRequest()) | 237 if (currentNode.isNavigationRequest()) |
| 237 requestData.navigationRequest = currentNode.request(); | 238 requestData.navigationRequest = currentNode.request(); |
| 238 requestData.requests.push(currentNode.request()); | 239 requestData.requests.push(currentNode.request()); |
| 239 } | 240 } |
| 240 this._timelineColumn.update(this._activeScroller.scrollTop, this._shownEvent
Dividers, requestData); | 241 this._timelineColumn.update(this._activeScroller.scrollTop, this._shownEvent
Dividers, requestData); |
| 241 } | 242 } |
| 242 | 243 |
| 243 /** | 244 /** |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1073 /** | 1074 /** |
| 1074 * @enum {string} | 1075 * @enum {string} |
| 1075 */ | 1076 */ |
| 1076 WebInspector.NetworkLogViewColumns.TimelineSortIds = { | 1077 WebInspector.NetworkLogViewColumns.TimelineSortIds = { |
| 1077 StartTime: 'startTime', | 1078 StartTime: 'startTime', |
| 1078 ResponseTime: 'responseReceivedTime', | 1079 ResponseTime: 'responseReceivedTime', |
| 1079 EndTime: 'endTime', | 1080 EndTime: 'endTime', |
| 1080 Duration: 'duration', | 1081 Duration: 'duration', |
| 1081 Latency: 'latency' | 1082 Latency: 'latency' |
| 1082 }; | 1083 }; |
| OLD | NEW |