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

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: A new unused variable was born 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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 463
464 /** 464 /**
465 * @param {string} headerId 465 * @param {string} headerId
466 * @return {boolean} 466 * @return {boolean}
467 */ 467 */
468 _removeCustomHeader(headerId) { 468 _removeCustomHeader(headerId) {
469 headerId = headerId.toLowerCase(); 469 headerId = headerId.toLowerCase();
470 var index = this._columns.findIndex(columnConfig => columnConfig.id === head erId); 470 var index = this._columns.findIndex(columnConfig => columnConfig.id === head erId);
471 if (index === -1) 471 if (index === -1)
472 return false; 472 return false;
473 var columnConfig = this._columns.splice(index, 1); 473 this._columns.splice(index, 1);
474 this._dataGrid.removeColumn(headerId); 474 this._dataGrid.removeColumn(headerId);
475 this._saveColumns(); 475 this._saveColumns();
476 this._updateColumns(); 476 this._updateColumns();
477 return true; 477 return true;
478 } 478 }
479 479
480 /** 480 /**
481 * @param {string} headerTitle 481 * @param {string} headerTitle
482 * @param {string=} headerId 482 * @param {string=} headerId
483 * @param {number=} index 483 * @param {number=} index
(...skipping 333 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