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

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

Issue 2816403002: test all
Patch Set: fix sharedworker 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 SDK.TargetManager = class extends Common.Object { 7 SDK.TargetManager = class extends Common.Object {
8 constructor() { 8 constructor() {
9 super(); 9 super();
10 /** @type {!Array.<!SDK.Target>} */ 10 /** @type {!Array.<!SDK.Target>} */
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 for (var child of childTargets) 430 for (var child of childTargets)
431 this.detachedFromTarget(child.id()); 431 this.detachedFromTarget(child.id());
432 } 432 }
433 433
434 /** 434 /**
435 * @param {string} type 435 * @param {string} type
436 * @return {number} 436 * @return {number}
437 */ 437 */
438 _capabilitiesForType(type) { 438 _capabilitiesForType(type) {
439 if (type === 'worker') 439 if (type === 'worker')
440 return SDK.Target.Capability.JS | SDK.Target.Capability.Log; 440 return SDK.Target.Capability.JS | SDK.Target.Capability.Log | SDK.Target.C apability.Network;
441 if (type === 'service_worker') 441 if (type === 'service_worker')
442 return SDK.Target.Capability.Log | SDK.Target.Capability.Network | SDK.Tar get.Capability.Target; 442 return SDK.Target.Capability.Log | SDK.Target.Capability.Network | SDK.Tar get.Capability.Target;
443 if (type === 'iframe') { 443 if (type === 'iframe') {
444 return SDK.Target.Capability.Browser | SDK.Target.Capability.DOM | SDK.Tar get.Capability.JS | 444 return SDK.Target.Capability.Browser | SDK.Target.Capability.DOM | SDK.Tar get.Capability.JS |
445 SDK.Target.Capability.Log | SDK.Target.Capability.Network | SDK.Target .Capability.Target | 445 SDK.Target.Capability.Log | SDK.Target.Capability.Network | SDK.Target .Capability.Target |
446 SDK.Target.Capability.Tracing | SDK.Target.Capability.TouchEmulation | SDK.Target.Capability.Input; 446 SDK.Target.Capability.Tracing | SDK.Target.Capability.TouchEmulation | SDK.Target.Capability.Input;
447 } 447 }
448 if (type === 'node') 448 if (type === 'node')
449 return SDK.Target.Capability.JS; 449 return SDK.Target.Capability.JS;
450 return 0; 450 return 0;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 /** 612 /**
613 * @param {!T} model 613 * @param {!T} model
614 */ 614 */
615 modelRemoved(model) {}, 615 modelRemoved(model) {},
616 }; 616 };
617 617
618 /** 618 /**
619 * @type {!SDK.TargetManager} 619 * @type {!SDK.TargetManager}
620 */ 620 */
621 SDK.targetManager = new SDK.TargetManager(); 621 SDK.targetManager = new SDK.TargetManager();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698