Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(657)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/Target.js

Issue 2815003002: [DevTools] Split InputModel out of screencast (Closed)
Patch Set: comments addressed Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698