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

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

Issue 2731383002: [DevTools] Make touch emulation work with OOPIF. (Closed)
Patch Set: dialog fix to separate patch Created 3 years, 9 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698