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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/SubTargetsManager.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 SDK.SubTargetsManager = class extends SDK.SDKModel { 7 SDK.SubTargetsManager = class extends SDK.SDKModel {
8 /** 8 /**
9 * @param {!SDK.Target} target 9 * @param {!SDK.Target} target
10 */ 10 */
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 _createConnection(targetId, params) { 178 _createConnection(targetId, params) {
179 var connection = new SDK.SubTargetConnection(this._agent, targetId, params); 179 var connection = new SDK.SubTargetConnection(this._agent, targetId, params);
180 this._connections.set(targetId, connection); 180 this._connections.set(targetId, connection);
181 return connection; 181 return connection;
182 } 182 }
183 183
184 /** 184 /**
185 * @param {string} targetId 185 * @param {string} targetId
186 */ 186 */
187 _detachedFromTarget(targetId) { 187 _detachedFromTarget(targetId) {
188 var target = this._attachedTargets.get(targetId);
189 this._attachedTargets.delete(targetId); 188 this._attachedTargets.delete(targetId);
190 var connection = this._connections.get(targetId); 189 var connection = this._connections.get(targetId);
191 connection._onDisconnect.call(null, 'target terminated'); 190 connection._onDisconnect.call(null, 'target terminated');
192 this._connections.delete(targetId); 191 this._connections.delete(targetId);
193 this.dispatchEventToListeners( 192 this.dispatchEventToListeners(
194 SDK.SubTargetsManager.Events.PendingTargetDetached, this._pendingTargets .get(targetId)); 193 SDK.SubTargetsManager.Events.PendingTargetDetached, this._pendingTargets .get(targetId));
195 } 194 }
196 195
197 /** 196 /**
198 * @param {string} targetId 197 * @param {string} targetId
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 this._attachedCallback = null; 451 this._attachedCallback = null;
453 } 452 }
454 453
455 /** 454 /**
456 * @return {boolean} 455 * @return {boolean}
457 */ 456 */
458 canConnect() { 457 canConnect() {
459 return this._isRemote; 458 return this._isRemote;
460 } 459 }
461 }; 460 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698