| 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 * @constructor | 8 * @constructor |
| 9 * @extends {Protocol.Target} | 9 * @extends {Protocol.Target} |
| 10 * @param {!WebInspector.TargetManager} targetManager | 10 * @param {!WebInspector.TargetManager} targetManager |
| 11 * @param {string} name | 11 * @param {string} name |
| 12 * @param {number} capabilitiesMask | 12 * @param {number} capabilitiesMask |
| 13 * @param {!InspectorBackendClass.Connection.Factory} connectionFactory | 13 * @param {!Protocol.Connection.Factory} connectionFactory |
| 14 * @param {?WebInspector.Target} parentTarget | 14 * @param {?WebInspector.Target} parentTarget |
| 15 */ | 15 */ |
| 16 WebInspector.Target = function(targetManager, name, capabilitiesMask, connection
Factory, parentTarget) | 16 WebInspector.Target = function(targetManager, name, capabilitiesMask, connection
Factory, parentTarget) |
| 17 { | 17 { |
| 18 Protocol.Target.call(this, connectionFactory); | 18 Protocol.Target.call(this, connectionFactory); |
| 19 this._targetManager = targetManager; | 19 this._targetManager = targetManager; |
| 20 this._name = name; | 20 this._name = name; |
| 21 this._inspectedURL = ""; | 21 this._inspectedURL = ""; |
| 22 this._capabilitiesMask = capabilitiesMask; | 22 this._capabilitiesMask = capabilitiesMask; |
| 23 this._parentTarget = parentTarget; | 23 this._parentTarget = parentTarget; |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 _targetDisposed: function(event) | 269 _targetDisposed: function(event) |
| 270 { | 270 { |
| 271 var target = /** @type {!WebInspector.Target} */ (event.data); | 271 var target = /** @type {!WebInspector.Target} */ (event.data); |
| 272 if (target !== this._target) | 272 if (target !== this._target) |
| 273 return; | 273 return; |
| 274 this.dispose(); | 274 this.dispose(); |
| 275 }, | 275 }, |
| 276 | 276 |
| 277 __proto__: WebInspector.SDKObject.prototype | 277 __proto__: WebInspector.SDKObject.prototype |
| 278 }; | 278 }; |
| OLD | NEW |