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

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

Issue 2672983002: [DevTools] Separate ScreenCaptureModel out of ResourceTreeModel. (Closed)
Patch Set: rebased Created 3 years, 10 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698