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

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

Issue 2560043005: DevTools: Remove unused variables. Disallow unused variables with eslint (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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 462
463 /** 463 /**
464 * @param {string} headerId 464 * @param {string} headerId
465 * @return {boolean} 465 * @return {boolean}
466 */ 466 */
467 _removeCustomHeader(headerId) { 467 _removeCustomHeader(headerId) {
468 headerId = headerId.toLowerCase(); 468 headerId = headerId.toLowerCase();
469 var index = this._columns.findIndex(columnConfig => columnConfig.id === head erId); 469 var index = this._columns.findIndex(columnConfig => columnConfig.id === head erId);
470 if (index === -1) 470 if (index === -1)
471 return false; 471 return false;
472 var columnConfig = this._columns.splice(index, 1); 472 this._columns.splice(index, 1);
473 this._dataGrid.removeColumn(headerId); 473 this._dataGrid.removeColumn(headerId);
474 this._saveColumns(); 474 this._saveColumns();
475 this._updateColumns(); 475 this._updateColumns();
476 return true; 476 return true;
477 } 477 }
478 478
479 /** 479 /**
480 * @param {string} headerTitle 480 * @param {string} headerTitle
481 * @param {string=} headerId 481 * @param {string=} headerId
482 * @param {number=} index 482 * @param {number=} index
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 /** 816 /**
817 * @enum {string} 817 * @enum {string}
818 */ 818 */
819 Network.NetworkLogViewColumns.WaterfallSortIds = { 819 Network.NetworkLogViewColumns.WaterfallSortIds = {
820 StartTime: 'startTime', 820 StartTime: 'startTime',
821 ResponseTime: 'responseReceivedTime', 821 ResponseTime: 'responseReceivedTime',
822 EndTime: 'endTime', 822 EndTime: 'endTime',
823 Duration: 'duration', 823 Duration: 'duration',
824 Latency: 'latency' 824 Latency: 'latency'
825 }; 825 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698