| 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 { |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 | 174 |
| 175 /** | 175 /** |
| 176 * @enum {number} | 176 * @enum {number} |
| 177 */ | 177 */ |
| 178 SDK.Target.Capability = { | 178 SDK.Target.Capability = { |
| 179 Browser: 1, | 179 Browser: 1, |
| 180 DOM: 2, | 180 DOM: 2, |
| 181 JS: 4, | 181 JS: 4, |
| 182 Log: 8, | 182 Log: 8, |
| 183 Network: 16, | 183 Network: 16, |
| 184 Target: 32 | 184 Target: 32, |
| 185 |
| 186 AllForTests: 63 |
| 185 }; | 187 }; |
| 186 | 188 |
| 187 SDK.Target._nextId = 1; | 189 SDK.Target._nextId = 1; |
| 188 | 190 |
| 189 /** | 191 /** |
| 190 * @unrestricted | 192 * @unrestricted |
| 191 */ | 193 */ |
| 192 SDK.SDKObject = class extends Common.Object { | 194 SDK.SDKObject = class extends Common.Object { |
| 193 /** | 195 /** |
| 194 * @param {!SDK.Target} target | 196 * @param {!SDK.Target} target |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 /** | 241 /** |
| 240 * @param {!Common.Event} event | 242 * @param {!Common.Event} event |
| 241 */ | 243 */ |
| 242 _targetDisposed(event) { | 244 _targetDisposed(event) { |
| 243 var target = /** @type {!SDK.Target} */ (event.data); | 245 var target = /** @type {!SDK.Target} */ (event.data); |
| 244 if (target !== this._target) | 246 if (target !== this._target) |
| 245 return; | 247 return; |
| 246 this.dispose(); | 248 this.dispose(); |
| 247 } | 249 } |
| 248 }; | 250 }; |
| OLD | NEW |