| 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 14 matching lines...) Expand all Loading... |
| 25 this._modelByConstructor = new Map(); | 25 this._modelByConstructor = new Map(); |
| 26 | 26 |
| 27 /** @type {!Object.<string, boolean>} */ | 27 /** @type {!Object.<string, boolean>} */ |
| 28 this._capabilities = {}; | 28 this._capabilities = {}; |
| 29 this.pageAgent().canScreencast(this._initializeCapability.bind(this, WebInsp
ector.Target.Capabilities.CanScreencast, null)); | 29 this.pageAgent().canScreencast(this._initializeCapability.bind(this, WebInsp
ector.Target.Capabilities.CanScreencast, null)); |
| 30 if (WebInspector.experimentsSettings.timelinePowerProfiler.isEnabled()) | 30 if (WebInspector.experimentsSettings.timelinePowerProfiler.isEnabled()) |
| 31 this.powerAgent().canProfilePower(this._initializeCapability.bind(this,
WebInspector.Target.Capabilities.CanProfilePower, null)); | 31 this.powerAgent().canProfilePower(this._initializeCapability.bind(this,
WebInspector.Target.Capabilities.CanProfilePower, null)); |
| 32 this.workerAgent().canInspectWorkers(this._initializeCapability.bind(this, W
ebInspector.Target.Capabilities.CanInspectWorkers, this._loadedWithCapabilities.
bind(this, callback))); | 32 this.workerAgent().canInspectWorkers(this._initializeCapability.bind(this, W
ebInspector.Target.Capabilities.CanInspectWorkers, this._loadedWithCapabilities.
bind(this, callback))); |
| 33 if (WebInspector.experimentsSettings.timelineOnTraceEvents.isEnabled()) | 33 if (WebInspector.experimentsSettings.timelineOnTraceEvents.isEnabled()) |
| 34 this.consoleAgent().setTracingBasedTimeline(true); | 34 this.consoleAgent().setTracingBasedTimeline(true); |
| 35 |
| 36 /** @type {!WebInspector.Lock} */ |
| 37 this.profilingLock = new WebInspector.Lock(); |
| 35 } | 38 } |
| 36 | 39 |
| 37 /** | 40 /** |
| 38 * @enum {string} | 41 * @enum {string} |
| 39 */ | 42 */ |
| 40 WebInspector.Target.Capabilities = { | 43 WebInspector.Target.Capabilities = { |
| 41 CanScreencast: "CanScreencast", | 44 CanScreencast: "CanScreencast", |
| 42 HasTouchInputs: "HasTouchInputs", | 45 HasTouchInputs: "HasTouchInputs", |
| 43 CanProfilePower: "CanProfilePower", | 46 CanProfilePower: "CanProfilePower", |
| 44 CanInspectWorkers: "CanInspectWorkers" | 47 CanInspectWorkers: "CanInspectWorkers" |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 /** | 426 /** |
| 424 * @param {!WebInspector.Target} target | 427 * @param {!WebInspector.Target} target |
| 425 */ | 428 */ |
| 426 targetRemoved: function(target) { }, | 429 targetRemoved: function(target) { }, |
| 427 } | 430 } |
| 428 | 431 |
| 429 /** | 432 /** |
| 430 * @type {!WebInspector.TargetManager} | 433 * @type {!WebInspector.TargetManager} |
| 431 */ | 434 */ |
| 432 WebInspector.targetManager = new WebInspector.TargetManager(); | 435 WebInspector.targetManager = new WebInspector.TargetManager(); |
| OLD | NEW |