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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.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 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org>
4 * Copyright (C) 2011 Google Inc. All rights reserved. 4 * Copyright (C) 2011 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 _refresh() { 789 _refresh() {
790 this._needsRefresh = false; 790 this._needsRefresh = false;
791 791
792 if (this._refreshRequestId) { 792 if (this._refreshRequestId) {
793 this.element.window().cancelAnimationFrame(this._refreshRequestId); 793 this.element.window().cancelAnimationFrame(this._refreshRequestId);
794 delete this._refreshRequestId; 794 delete this._refreshRequestId;
795 } 795 }
796 796
797 this.removeAllNodeHighlights(); 797 this.removeAllNodeHighlights();
798 798
799 var oldBoundary = this.calculator().boundary();
800 this._timeCalculator.updateBoundariesForEventTime(this._mainRequestLoadTime) ; 799 this._timeCalculator.updateBoundariesForEventTime(this._mainRequestLoadTime) ;
801 this._durationCalculator.updateBoundariesForEventTime(this._mainRequestLoadT ime); 800 this._durationCalculator.updateBoundariesForEventTime(this._mainRequestLoadT ime);
802 this._timeCalculator.updateBoundariesForEventTime(this._mainRequestDOMConten tLoadedTime); 801 this._timeCalculator.updateBoundariesForEventTime(this._mainRequestDOMConten tLoadedTime);
803 this._durationCalculator.updateBoundariesForEventTime(this._mainRequestDOMCo ntentLoadedTime); 802 this._durationCalculator.updateBoundariesForEventTime(this._mainRequestDOMCo ntentLoadedTime);
804 803
805 var dataGrid = this._dataGrid; 804 var dataGrid = this._dataGrid;
806 var rootNode = dataGrid.rootNode(); 805 var rootNode = dataGrid.rootNode();
807 /** @type {!Array<!Network.NetworkDataGridNode> } */ 806 /** @type {!Array<!Network.NetworkDataGridNode> } */
808 var nodesToInsert = []; 807 var nodesToInsert = [];
809 /** @type {!Array<!Network.NetworkDataGridNode> } */ 808 /** @type {!Array<!Network.NetworkDataGridNode> } */
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
1710 Running: 'running', 1709 Running: 'running',
1711 FromCache: 'from-cache' 1710 FromCache: 'from-cache'
1712 }; 1711 };
1713 1712
1714 /** @type {!Array<string>} */ 1713 /** @type {!Array<string>} */
1715 Network.NetworkLogView._searchKeys = 1714 Network.NetworkLogView._searchKeys =
1716 Object.keys(Network.NetworkLogView.FilterType).map(key => Network.NetworkLog View.FilterType[key]); 1715 Object.keys(Network.NetworkLogView.FilterType).map(key => Network.NetworkLog View.FilterType[key]);
1717 1716
1718 /** @typedef {function(!SDK.NetworkRequest): boolean} */ 1717 /** @typedef {function(!SDK.NetworkRequest): boolean} */
1719 Network.NetworkLogView.Filter; 1718 Network.NetworkLogView.Filter;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698