| 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 * @unrestricted | 8 * @unrestricted |
| 8 */ | 9 */ |
| 9 WebInspector.Target = class extends Protocol.Target { | 10 WebInspector.Target = class extends Protocol.Target { |
| 10 /** | 11 /** |
| 11 * @param {!WebInspector.TargetManager} targetManager | 12 * @param {!WebInspector.TargetManager} targetManager |
| 12 * @param {string} name | 13 * @param {string} name |
| 13 * @param {number} capabilitiesMask | 14 * @param {number} capabilitiesMask |
| 14 * @param {!InspectorBackendClass.Connection.Factory} connectionFactory | 15 * @param {!InspectorBackendClass.Connection.Factory} connectionFactory |
| 15 * @param {?WebInspector.Target} parentTarget | 16 * @param {?WebInspector.Target} parentTarget |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 /** | 239 /** |
| 239 * @param {!WebInspector.Event} event | 240 * @param {!WebInspector.Event} event |
| 240 */ | 241 */ |
| 241 _targetDisposed(event) { | 242 _targetDisposed(event) { |
| 242 var target = /** @type {!WebInspector.Target} */ (event.data); | 243 var target = /** @type {!WebInspector.Target} */ (event.data); |
| 243 if (target !== this._target) | 244 if (target !== this._target) |
| 244 return; | 245 return; |
| 245 this.dispose(); | 246 this.dispose(); |
| 246 } | 247 } |
| 247 }; | 248 }; |
| OLD | NEW |