| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 Browser: 1 << 0, | 203 Browser: 1 << 0, |
| 204 DOM: 1 << 1, | 204 DOM: 1 << 1, |
| 205 JS: 1 << 2, | 205 JS: 1 << 2, |
| 206 Log: 1 << 3, | 206 Log: 1 << 3, |
| 207 Network: 1 << 4, | 207 Network: 1 << 4, |
| 208 Target: 1 << 5, | 208 Target: 1 << 5, |
| 209 ScreenCapture: 1 << 6, | 209 ScreenCapture: 1 << 6, |
| 210 Tracing: 1 << 7, | 210 Tracing: 1 << 7, |
| 211 TouchEmulation: 1 << 8, | 211 TouchEmulation: 1 << 8, |
| 212 Security: 1 << 9, | 212 Security: 1 << 9, |
| 213 Input: 1 << 10, |
| 213 | 214 |
| 214 None: 0, | 215 None: 0, |
| 215 | 216 |
| 216 AllForTests: (1 << 10) - 1 | 217 AllForTests: (1 << 11) - 1 |
| 217 }; | 218 }; |
| 218 | 219 |
| 219 /** | 220 /** |
| 220 * @unrestricted | 221 * @unrestricted |
| 221 */ | 222 */ |
| 222 SDK.SDKModel = class extends Common.Object { | 223 SDK.SDKModel = class extends Common.Object { |
| 223 /** | 224 /** |
| 224 * @param {!SDK.Target} target | 225 * @param {!SDK.Target} target |
| 225 */ | 226 */ |
| 226 constructor(target) { | 227 constructor(target) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 * @param {boolean} autostart | 261 * @param {boolean} autostart |
| 261 */ | 262 */ |
| 262 SDK.SDKModel.register = function(modelClass, capabilities, autostart) { | 263 SDK.SDKModel.register = function(modelClass, capabilities, autostart) { |
| 263 if (!SDK.SDKModel._registeredModels) | 264 if (!SDK.SDKModel._registeredModels) |
| 264 SDK.SDKModel._registeredModels = new Map(); | 265 SDK.SDKModel._registeredModels = new Map(); |
| 265 SDK.SDKModel._registeredModels.set(modelClass, {capabilities: capabilities, au
tostart: autostart}); | 266 SDK.SDKModel._registeredModels.set(modelClass, {capabilities: capabilities, au
tostart: autostart}); |
| 266 }; | 267 }; |
| 267 | 268 |
| 268 /** @type {!Map<function(new:SDK.SDKModel, !SDK.Target), !{capabilities: number,
autostart: boolean}>} */ | 269 /** @type {!Map<function(new:SDK.SDKModel, !SDK.Target), !{capabilities: number,
autostart: boolean}>} */ |
| 269 SDK.SDKModel._registeredModels; | 270 SDK.SDKModel._registeredModels; |
| OLD | NEW |