| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 /** | 184 /** |
| 185 * @enum {number} | 185 * @enum {number} |
| 186 */ | 186 */ |
| 187 SDK.Target.Capability = { | 187 SDK.Target.Capability = { |
| 188 Browser: 1, | 188 Browser: 1, |
| 189 DOM: 2, | 189 DOM: 2, |
| 190 JS: 4, | 190 JS: 4, |
| 191 Log: 8, | 191 Log: 8, |
| 192 Network: 16, | 192 Network: 16, |
| 193 Target: 32, | 193 Target: 32, |
| 194 ScreenCapture: 64, |
| 194 | 195 |
| 195 None: 0, | 196 None: 0, |
| 196 | 197 |
| 197 AllForTests: 63 | 198 AllForTests: 127 |
| 198 }; | 199 }; |
| 199 | 200 |
| 200 SDK.Target._nextId = 1; | 201 SDK.Target._nextId = 1; |
| 201 | 202 |
| 202 /** | 203 /** |
| 203 * @unrestricted | 204 * @unrestricted |
| 204 */ | 205 */ |
| 205 SDK.SDKObject = class extends Common.Object { | 206 SDK.SDKObject = class extends Common.Object { |
| 206 /** | 207 /** |
| 207 * @param {!SDK.Target} target | 208 * @param {!SDK.Target} target |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 * @param {number} capabilities | 255 * @param {number} capabilities |
| 255 */ | 256 */ |
| 256 SDK.SDKModel.register = function(modelClass, capabilities) { | 257 SDK.SDKModel.register = function(modelClass, capabilities) { |
| 257 if (!SDK.SDKModel._capabilitiesByModelClass) | 258 if (!SDK.SDKModel._capabilitiesByModelClass) |
| 258 SDK.SDKModel._capabilitiesByModelClass = new Map(); | 259 SDK.SDKModel._capabilitiesByModelClass = new Map(); |
| 259 SDK.SDKModel._capabilitiesByModelClass.set(modelClass, capabilities); | 260 SDK.SDKModel._capabilitiesByModelClass.set(modelClass, capabilities); |
| 260 }; | 261 }; |
| 261 | 262 |
| 262 /** @type {!Map<function(new:SDK.SDKModel, !SDK.Target), number>} */ | 263 /** @type {!Map<function(new:SDK.SDKModel, !SDK.Target), number>} */ |
| 263 SDK.SDKModel._capabilitiesByModelClass; | 264 SDK.SDKModel._capabilitiesByModelClass; |
| OLD | NEW |