OLD | NEW |
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 * @constructor | 8 * @constructor |
9 * @extends {Protocol.Agents} | 9 * @extends {Protocol.Agents} |
10 * @param {string} name | 10 * @param {string} name |
(...skipping 11 matching lines...) Expand all Loading... |
22 /** @type {!Map.<!Function, !WebInspector.SDKModel>} */ | 22 /** @type {!Map.<!Function, !WebInspector.SDKModel>} */ |
23 this._modelByConstructor = new Map(); | 23 this._modelByConstructor = new Map(); |
24 | 24 |
25 /** @type {!Object.<string, boolean>} */ | 25 /** @type {!Object.<string, boolean>} */ |
26 this._capabilities = {}; | 26 this._capabilities = {}; |
27 this.pageAgent().canScreencast(this._initializeCapability.bind(this, WebInsp
ector.Target.Capabilities.CanScreencast, null)); | 27 this.pageAgent().canScreencast(this._initializeCapability.bind(this, WebInsp
ector.Target.Capabilities.CanScreencast, null)); |
28 this.pageAgent().canEmulate(this._initializeCapability.bind(this, WebInspect
or.Target.Capabilities.CanEmulate, null)); | 28 this.pageAgent().canEmulate(this._initializeCapability.bind(this, WebInspect
or.Target.Capabilities.CanEmulate, null)); |
29 if (Runtime.experiments.isEnabled("timelinePowerProfiler")) | 29 if (Runtime.experiments.isEnabled("timelinePowerProfiler")) |
30 this.powerAgent().canProfilePower(this._initializeCapability.bind(this,
WebInspector.Target.Capabilities.CanProfilePower, null)); | 30 this.powerAgent().canProfilePower(this._initializeCapability.bind(this,
WebInspector.Target.Capabilities.CanProfilePower, null)); |
31 this.workerAgent().canInspectWorkers(this._initializeCapability.bind(this, W
ebInspector.Target.Capabilities.CanInspectWorkers, this._loadedWithCapabilities.
bind(this, callback))); | 31 this.workerAgent().canInspectWorkers(this._initializeCapability.bind(this, W
ebInspector.Target.Capabilities.CanInspectWorkers, this._loadedWithCapabilities.
bind(this, callback))); |
32 this.consoleAgent().setTracingBasedTimeline(true); | |
33 } | 32 } |
34 | 33 |
35 /** | 34 /** |
36 * @enum {string} | 35 * @enum {string} |
37 */ | 36 */ |
38 WebInspector.Target.Capabilities = { | 37 WebInspector.Target.Capabilities = { |
39 CanScreencast: "CanScreencast", | 38 CanScreencast: "CanScreencast", |
40 HasTouchInputs: "HasTouchInputs", | 39 HasTouchInputs: "HasTouchInputs", |
41 CanProfilePower: "CanProfilePower", | 40 CanProfilePower: "CanProfilePower", |
42 CanInspectWorkers: "CanInspectWorkers", | 41 CanInspectWorkers: "CanInspectWorkers", |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 /** | 562 /** |
564 * @param {!WebInspector.Target} target | 563 * @param {!WebInspector.Target} target |
565 */ | 564 */ |
566 targetRemoved: function(target) { }, | 565 targetRemoved: function(target) { }, |
567 } | 566 } |
568 | 567 |
569 /** | 568 /** |
570 * @type {!WebInspector.TargetManager} | 569 * @type {!WebInspector.TargetManager} |
571 */ | 570 */ |
572 WebInspector.targetManager = new WebInspector.TargetManager(); | 571 WebInspector.targetManager = new WebInspector.TargetManager(); |
OLD | NEW |