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

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

Issue 2523633003: [Devtools] Prepare network log view for grouping support (Closed)
Patch Set: Merge branch 'master' into NETWORK_GROUP_SUPPORT_1 Created 4 years 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
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 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 /** 152 /**
153 * @param {!Event} event 153 * @param {!Event} event
154 * @this {Network.NetworkLogViewColumns} 154 * @this {Network.NetworkLogViewColumns}
155 */ 155 */
156 function handleContextMenu(event) { 156 function handleContextMenu(event) {
157 var logEntry = this._waterfallColumn.getLogEntryFromPoint(event.offsetX, e vent.offsetY); 157 var logEntry = this._waterfallColumn.getLogEntryFromPoint(event.offsetX, e vent.offsetY);
158 if (!logEntry) 158 if (!logEntry)
159 return; 159 return;
160 var contextMenu = new UI.ContextMenu(event); 160 var contextMenu = new UI.ContextMenu(event);
161 this._networkLogView.handleContextMenuForRequest(contextMenu, logEntry.req uest()); 161 this._networkLogView.handleContextMenuForLogEntry(contextMenu, logEntry);
162 contextMenu.show(); 162 contextMenu.show();
163 } 163 }
164 } 164 }
165 165
166 /** 166 /**
167 * @param {boolean} shouldConsume 167 * @param {boolean} shouldConsume
168 * @param {!Event} event 168 * @param {!Event} event
169 */ 169 */
170 _onMouseWheel(shouldConsume, event) { 170 _onMouseWheel(shouldConsume, event) {
171 if (shouldConsume) 171 if (shouldConsume)
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 /** 817 /**
818 * @enum {string} 818 * @enum {string}
819 */ 819 */
820 Network.NetworkLogViewColumns.WaterfallSortIds = { 820 Network.NetworkLogViewColumns.WaterfallSortIds = {
821 StartTime: 'startTime', 821 StartTime: 'startTime',
822 ResponseTime: 'responseReceivedTime', 822 ResponseTime: 'responseReceivedTime',
823 EndTime: 'endTime', 823 EndTime: 'endTime',
824 Duration: 'duration', 824 Duration: 'duration',
825 Latency: 'latency' 825 Latency: 'latency'
826 }; 826 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698