Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(611)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkLogViewColumns.js

Issue 2474233002: [Devtools] Added "wiskers" to new network timeline for colored mode (Closed)
Patch Set: wq Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/network/NetworkTimelineColumn.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/network/NetworkTimelineColumn.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698