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

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

Issue 2519213002: [DevTools] Remove preventFollow and special checks for links throughout frontend. (Closed)
Patch Set: 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 } 88 }
89 this._loadColumns(); 89 this._loadColumns();
90 90
91 this._popoverHelper = new UI.PopoverHelper(this._networkLogView.element); 91 this._popoverHelper = new UI.PopoverHelper(this._networkLogView.element);
92 this._popoverHelper.initializeCallbacks( 92 this._popoverHelper.initializeCallbacks(
93 this._getPopoverAnchor.bind(this), this._showPopover.bind(this), this._o nHidePopover.bind(this)); 93 this._getPopoverAnchor.bind(this), this._showPopover.bind(this), this._o nHidePopover.bind(this));
94 94
95 this._dataGrid = 95 this._dataGrid =
96 new UI.SortableDataGrid(this._columns.map(Network.NetworkLogViewColumns. _convertToDataGridDescriptor)); 96 new UI.SortableDataGrid(this._columns.map(Network.NetworkLogViewColumns. _convertToDataGridDescriptor));
97 this._dataGrid.element.addEventListener('mousedown', event => { 97 this._dataGrid.element.addEventListener('mousedown', event => {
98 if ((!this._dataGrid.selectedNode && event.button) || event.target.enclosi ngNodeOrSelfWithNodeName('a')) 98 if (!this._dataGrid.selectedNode && event.button)
99 event.consume(); 99 event.consume();
100 }, true); 100 }, true);
101 101
102 this._dataGridScroller = this._dataGrid.scrollContainer; 102 this._dataGridScroller = this._dataGrid.scrollContainer;
103 103
104 this._updateColumns(); 104 this._updateColumns();
105 this._dataGrid.addEventListener(UI.DataGrid.Events.SortingChanged, this._sor tHandler, this); 105 this._dataGrid.addEventListener(UI.DataGrid.Events.SortingChanged, this._sor tHandler, this);
106 this._dataGrid.setHeaderContextMenuCallback(this._innerHeaderContextMenu.bin d(this)); 106 this._dataGrid.setHeaderContextMenuCallback(this._innerHeaderContextMenu.bin d(this));
107 107
108 this._activeWaterfallSortId = Network.NetworkLogViewColumns.WaterfallSortIds .StartTime; 108 this._activeWaterfallSortId = Network.NetworkLogViewColumns.WaterfallSortIds .StartTime;
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 /** 825 /**
826 * @enum {string} 826 * @enum {string}
827 */ 827 */
828 Network.NetworkLogViewColumns.WaterfallSortIds = { 828 Network.NetworkLogViewColumns.WaterfallSortIds = {
829 StartTime: 'startTime', 829 StartTime: 'startTime',
830 ResponseTime: 'responseReceivedTime', 830 ResponseTime: 'responseReceivedTime',
831 EndTime: 'endTime', 831 EndTime: 'endTime',
832 Duration: 'duration', 832 Duration: 'duration',
833 Latency: 'latency' 833 Latency: 'latency'
834 }; 834 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698