| 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 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 /** @type {!Map.<!Function, !WebInspector.SDKModel>} */ | 24 /** @type {!Map.<!Function, !WebInspector.SDKModel>} */ |
| 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()) |
| 34 this.consoleAgent().setTracingBasedTimeline(true); |
| 33 | 35 |
| 34 /** @type {!WebInspector.Lock} */ | 36 /** @type {!WebInspector.Lock} */ |
| 35 this.profilingLock = new WebInspector.Lock(); | 37 this.profilingLock = new WebInspector.Lock(); |
| 36 } | 38 } |
| 37 | 39 |
| 38 /** | 40 /** |
| 39 * @enum {string} | 41 * @enum {string} |
| 40 */ | 42 */ |
| 41 WebInspector.Target.Capabilities = { | 43 WebInspector.Target.Capabilities = { |
| 42 CanScreencast: "CanScreencast", | 44 CanScreencast: "CanScreencast", |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 /** | 426 /** |
| 425 * @param {!WebInspector.Target} target | 427 * @param {!WebInspector.Target} target |
| 426 */ | 428 */ |
| 427 targetRemoved: function(target) { }, | 429 targetRemoved: function(target) { }, |
| 428 } | 430 } |
| 429 | 431 |
| 430 /** | 432 /** |
| 431 * @type {!WebInspector.TargetManager} | 433 * @type {!WebInspector.TargetManager} |
| 432 */ | 434 */ |
| 433 WebInspector.targetManager = new WebInspector.TargetManager(); | 435 WebInspector.targetManager = new WebInspector.TargetManager(); |
| OLD | NEW |