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

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

Issue 2653363002: [Devtools] Added typing to network in prep for removing unrestricted (Closed)
Patch Set: changes Created 3 years, 10 months 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 this.switchViewMode(false); 144 this.switchViewMode(false);
145 145
146 /** 146 /**
147 * @param {!Event} event 147 * @param {!Event} event
148 * @this {Network.NetworkLogViewColumns} 148 * @this {Network.NetworkLogViewColumns}
149 */ 149 */
150 function handleContextMenu(event) { 150 function handleContextMenu(event) {
151 var node = this._waterfallColumn.getNodeFromPoint(event.offsetX, event.off setY); 151 var node = this._waterfallColumn.getNodeFromPoint(event.offsetX, event.off setY);
152 if (!node) 152 if (!node)
153 return; 153 return;
154 var request = node.request();
155 if (!request)
156 return;
154 var contextMenu = new UI.ContextMenu(event); 157 var contextMenu = new UI.ContextMenu(event);
155 this._networkLogView.handleContextMenuForRequest(contextMenu, node.request ()); 158 this._networkLogView.handleContextMenuForRequest(contextMenu, request);
156 contextMenu.show(); 159 contextMenu.show();
157 } 160 }
158 } 161 }
159 162
160 /** 163 /**
161 * @param {boolean} shouldConsume 164 * @param {boolean} shouldConsume
162 * @param {!Event} event 165 * @param {!Event} event
163 */ 166 */
164 _onMouseWheel(shouldConsume, event) { 167 _onMouseWheel(shouldConsume, event) {
165 if (shouldConsume) 168 if (shouldConsume)
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 /** 806 /**
804 * @enum {string} 807 * @enum {string}
805 */ 808 */
806 Network.NetworkLogViewColumns.WaterfallSortIds = { 809 Network.NetworkLogViewColumns.WaterfallSortIds = {
807 StartTime: 'startTime', 810 StartTime: 'startTime',
808 ResponseTime: 'responseReceivedTime', 811 ResponseTime: 'responseReceivedTime',
809 EndTime: 'endTime', 812 EndTime: 'endTime',
810 Duration: 'duration', 813 Duration: 'duration',
811 Latency: 'latency' 814 Latency: 'latency'
812 }; 815 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698