| 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()) | 33 this.consoleAgent().setTracingBasedTimeline(true); |
| 34 this.consoleAgent().setTracingBasedTimeline(true); | |
| 35 } | 34 } |
| 36 | 35 |
| 37 /** | 36 /** |
| 38 * @enum {string} | 37 * @enum {string} |
| 39 */ | 38 */ |
| 40 WebInspector.Target.Capabilities = { | 39 WebInspector.Target.Capabilities = { |
| 41 CanScreencast: "CanScreencast", | 40 CanScreencast: "CanScreencast", |
| 42 HasTouchInputs: "HasTouchInputs", | 41 HasTouchInputs: "HasTouchInputs", |
| 43 CanProfilePower: "CanProfilePower", | 42 CanProfilePower: "CanProfilePower", |
| 44 CanInspectWorkers: "CanInspectWorkers" | 43 CanInspectWorkers: "CanInspectWorkers" |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 /** | 498 /** |
| 500 * @param {!WebInspector.Target} target | 499 * @param {!WebInspector.Target} target |
| 501 */ | 500 */ |
| 502 targetRemoved: function(target) { }, | 501 targetRemoved: function(target) { }, |
| 503 } | 502 } |
| 504 | 503 |
| 505 /** | 504 /** |
| 506 * @type {!WebInspector.TargetManager} | 505 * @type {!WebInspector.TargetManager} |
| 507 */ | 506 */ |
| 508 WebInspector.targetManager = new WebInspector.TargetManager(); | 507 WebInspector.targetManager = new WebInspector.TargetManager(); |
| OLD | NEW |