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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/Target.js

Issue 2600323002: DevTools: extract protocol module (Closed)
Patch Set: move inspector backend commands.js Created 3 years, 11 months 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 2014 The Chromium Authors. All rights reserved. 2 * Copyright 2014 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /** 7 /**
8 * @unrestricted 8 * @unrestricted
9 */ 9 */
10 SDK.Target = class extends Protocol.TargetBase { 10 SDK.Target = class extends Protocol.TargetBase {
11 /** 11 /**
12 * @param {!SDK.TargetManager} targetManager 12 * @param {!SDK.TargetManager} targetManager
13 * @param {string} name 13 * @param {string} name
14 * @param {number} capabilitiesMask 14 * @param {number} capabilitiesMask
15 * @param {!InspectorBackendClass.Connection.Factory} connectionFactory 15 * @param {!Protocol.InspectorBackend.Connection.Factory} connectionFactory
16 * @param {?SDK.Target} parentTarget 16 * @param {?SDK.Target} parentTarget
17 */ 17 */
18 constructor(targetManager, name, capabilitiesMask, connectionFactory, parentTa rget) { 18 constructor(targetManager, name, capabilitiesMask, connectionFactory, parentTa rget) {
19 super(connectionFactory); 19 super(connectionFactory);
20 this._targetManager = targetManager; 20 this._targetManager = targetManager;
21 this._name = name; 21 this._name = name;
22 this._inspectedURL = ''; 22 this._inspectedURL = '';
23 this._capabilitiesMask = capabilitiesMask; 23 this._capabilitiesMask = capabilitiesMask;
24 this._parentTarget = parentTarget; 24 this._parentTarget = parentTarget;
25 this._id = SDK.Target._nextId++; 25 this._id = SDK.Target._nextId++;
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 /** 242 /**
243 * @param {!Common.Event} event 243 * @param {!Common.Event} event
244 */ 244 */
245 _targetDisposed(event) { 245 _targetDisposed(event) {
246 var target = /** @type {!SDK.Target} */ (event.data); 246 var target = /** @type {!SDK.Target} */ (event.data);
247 if (target !== this._target) 247 if (target !== this._target)
248 return; 248 return;
249 this.dispose(); 249 this.dispose();
250 } 250 }
251 }; 251 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698