| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 */ | 187 */ |
| 188 SDK.Target.Capability = { | 188 SDK.Target.Capability = { |
| 189 Browser: 1 << 0, | 189 Browser: 1 << 0, |
| 190 DOM: 1 << 1, | 190 DOM: 1 << 1, |
| 191 JS: 1 << 2, | 191 JS: 1 << 2, |
| 192 Log: 1 << 3, | 192 Log: 1 << 3, |
| 193 Network: 1 << 4, | 193 Network: 1 << 4, |
| 194 Target: 1 << 5, | 194 Target: 1 << 5, |
| 195 ScreenCapture: 1 << 6, | 195 ScreenCapture: 1 << 6, |
| 196 Tracing: 1 << 7, | 196 Tracing: 1 << 7, |
| 197 TouchEmulation: 1 << 8, |
| 197 | 198 |
| 198 None: 0, | 199 None: 0, |
| 199 | 200 |
| 200 AllForTests: (1 << 8) - 1 | 201 AllForTests: (1 << 9) - 1 |
| 201 }; | 202 }; |
| 202 | 203 |
| 203 /** | 204 /** |
| 204 * @unrestricted | 205 * @unrestricted |
| 205 */ | 206 */ |
| 206 SDK.SDKObject = class extends Common.Object { | 207 SDK.SDKObject = class extends Common.Object { |
| 207 /** | 208 /** |
| 208 * @param {!SDK.Target} target | 209 * @param {!SDK.Target} target |
| 209 */ | 210 */ |
| 210 constructor(target) { | 211 constructor(target) { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 * @param {number} capabilities | 256 * @param {number} capabilities |
| 256 */ | 257 */ |
| 257 SDK.SDKModel.register = function(modelClass, capabilities) { | 258 SDK.SDKModel.register = function(modelClass, capabilities) { |
| 258 if (!SDK.SDKModel._capabilitiesByModelClass) | 259 if (!SDK.SDKModel._capabilitiesByModelClass) |
| 259 SDK.SDKModel._capabilitiesByModelClass = new Map(); | 260 SDK.SDKModel._capabilitiesByModelClass = new Map(); |
| 260 SDK.SDKModel._capabilitiesByModelClass.set(modelClass, capabilities); | 261 SDK.SDKModel._capabilitiesByModelClass.set(modelClass, capabilities); |
| 261 }; | 262 }; |
| 262 | 263 |
| 263 /** @type {!Map<function(new:SDK.SDKModel, !SDK.Target), number>} */ | 264 /** @type {!Map<function(new:SDK.SDKModel, !SDK.Target), number>} */ |
| 264 SDK.SDKModel._capabilitiesByModelClass; | 265 SDK.SDKModel._capabilitiesByModelClass; |
| OLD | NEW |