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

Side by Side Diff: Source/devtools/front_end/sdk/Target.js

Issue 709423002: DevTools: remove old Timeline front-end implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated LayoutTests/inspector/layers/layer-canvas-log.html Created 6 years, 1 month 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 | Annotate | Revision Log
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 /** 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
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 if (Runtime.experiments.isEnabled("timelineOnTraceEvents")) 32 this.consoleAgent().setTracingBasedTimeline(true);
33 this.consoleAgent().setTracingBasedTimeline(true);
34 } 33 }
35 34
36 /** 35 /**
37 * @enum {string} 36 * @enum {string}
38 */ 37 */
39 WebInspector.Target.Capabilities = { 38 WebInspector.Target.Capabilities = {
40 CanScreencast: "CanScreencast", 39 CanScreencast: "CanScreencast",
41 HasTouchInputs: "HasTouchInputs", 40 HasTouchInputs: "HasTouchInputs",
42 CanProfilePower: "CanProfilePower", 41 CanProfilePower: "CanProfilePower",
43 CanInspectWorkers: "CanInspectWorkers", 42 CanInspectWorkers: "CanInspectWorkers",
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 WebInspector.cssModel = this.cssModel; 152 WebInspector.cssModel = this.cssModel;
154 153
155 /** @type {!WebInspector.WorkerManager} */ 154 /** @type {!WebInspector.WorkerManager} */
156 this.workerManager = new WebInspector.WorkerManager(this, this.hasCapabi lity(WebInspector.Target.Capabilities.CanInspectWorkers)); 155 this.workerManager = new WebInspector.WorkerManager(this, this.hasCapabi lity(WebInspector.Target.Capabilities.CanInspectWorkers));
157 if (!WebInspector.workerManager) 156 if (!WebInspector.workerManager)
158 WebInspector.workerManager = this.workerManager; 157 WebInspector.workerManager = this.workerManager;
159 158
160 if (this.hasCapability(WebInspector.Target.Capabilities.CanProfilePower) ) 159 if (this.hasCapability(WebInspector.Target.Capabilities.CanProfilePower) )
161 WebInspector.powerProfiler = new WebInspector.PowerProfiler(this); 160 WebInspector.powerProfiler = new WebInspector.PowerProfiler(this);
162 161
163 /** @type {!WebInspector.TimelineManager} */
164 this.timelineManager = new WebInspector.TimelineManager(this);
165
166 /** @type {!WebInspector.DatabaseModel} */ 162 /** @type {!WebInspector.DatabaseModel} */
167 this.databaseModel = new WebInspector.DatabaseModel(this); 163 this.databaseModel = new WebInspector.DatabaseModel(this);
168 if (!WebInspector.databaseModel) 164 if (!WebInspector.databaseModel)
169 WebInspector.databaseModel = this.databaseModel; 165 WebInspector.databaseModel = this.databaseModel;
170 166
171 /** @type {!WebInspector.DOMStorageModel} */ 167 /** @type {!WebInspector.DOMStorageModel} */
172 this.domStorageModel = new WebInspector.DOMStorageModel(this); 168 this.domStorageModel = new WebInspector.DOMStorageModel(this);
173 if (!WebInspector.domStorageModel) 169 if (!WebInspector.domStorageModel)
174 WebInspector.domStorageModel = this.domStorageModel; 170 WebInspector.domStorageModel = this.domStorageModel;
175 171
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 /** 552 /**
557 * @param {!WebInspector.Target} target 553 * @param {!WebInspector.Target} target
558 */ 554 */
559 targetRemoved: function(target) { }, 555 targetRemoved: function(target) { },
560 } 556 }
561 557
562 /** 558 /**
563 * @type {!WebInspector.TargetManager} 559 * @type {!WebInspector.TargetManager}
564 */ 560 */
565 WebInspector.targetManager = new WebInspector.TargetManager(); 561 WebInspector.targetManager = new WebInspector.TargetManager();
OLDNEW
« no previous file with comments | « Source/devtools/front_end/main/Main.js ('k') | Source/devtools/front_end/sdk/TimelineManager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698