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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.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.TargetManager = class extends Common.Object { 10 SDK.TargetManager = class extends Common.Object {
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 if (Runtime.queryParam('nodeFrontend')) { 409 if (Runtime.queryParam('nodeFrontend')) {
410 var target = new SDK.Target( 410 var target = new SDK.Target(
411 this, Common.UIString('Node'), SDK.Target.Capability.Target, this._cre ateMainConnection.bind(this), null); 411 this, Common.UIString('Node'), SDK.Target.Capability.Target, this._cre ateMainConnection.bind(this), null);
412 target.subTargetsManager = new SDK.SubTargetsManager(target); 412 target.subTargetsManager = new SDK.SubTargetsManager(target);
413 target.setInspectedURL('Node'); 413 target.setInspectedURL('Node');
414 Host.userMetrics.actionTaken(Host.UserMetrics.Action.ConnectToNodeJSFromFr ontend); 414 Host.userMetrics.actionTaken(Host.UserMetrics.Action.ConnectToNodeJSFromFr ontend);
415 return; 415 return;
416 } 416 }
417 417
418 var capabilities = SDK.Target.Capability.Browser | SDK.Target.Capability.DOM | SDK.Target.Capability.JS | 418 var capabilities = SDK.Target.Capability.Browser | SDK.Target.Capability.DOM | SDK.Target.Capability.JS |
419 SDK.Target.Capability.Log | SDK.Target.Capability.Network | SDK.Target.C apability.Target; 419 SDK.Target.Capability.Log | SDK.Target.Capability.Network | SDK.Target.C apability.Target |
420 SDK.Target.Capability.ScreenCapture;
420 if (Runtime.queryParam('isSharedWorker')) { 421 if (Runtime.queryParam('isSharedWorker')) {
421 capabilities = SDK.Target.Capability.Browser | SDK.Target.Capability.Log | SDK.Target.Capability.Network | 422 capabilities = SDK.Target.Capability.Browser | SDK.Target.Capability.Log | SDK.Target.Capability.Network |
422 SDK.Target.Capability.Target; 423 SDK.Target.Capability.Target;
423 } else if (Runtime.queryParam('v8only')) { 424 } else if (Runtime.queryParam('v8only')) {
424 capabilities = SDK.Target.Capability.JS; 425 capabilities = SDK.Target.Capability.JS;
425 Host.userMetrics.actionTaken(Host.UserMetrics.Action.ConnectToNodeJSDirect ly); 426 Host.userMetrics.actionTaken(Host.UserMetrics.Action.ConnectToNodeJSDirect ly);
426 } 427 }
427 428
428 var target = this.createTarget(Common.UIString('Main'), capabilities, this._ createMainConnection.bind(this), null); 429 var target = this.createTarget(Common.UIString('Main'), capabilities, this._ createMainConnection.bind(this), null);
429 target.runtimeAgent().runIfWaitingForDebugger(); 430 target.runtimeAgent().runIfWaitingForDebugger();
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 /** 502 /**
502 * @param {!T} model 503 * @param {!T} model
503 */ 504 */
504 modelRemoved(model) {}, 505 modelRemoved(model) {},
505 }; 506 };
506 507
507 /** 508 /**
508 * @type {!SDK.TargetManager} 509 * @type {!SDK.TargetManager}
509 */ 510 */
510 SDK.targetManager = new SDK.TargetManager(); 511 SDK.targetManager = new SDK.TargetManager();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698