OLD | NEW |
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 Loading... |
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 }; |
OLD | NEW |