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

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

Issue 481403002: DevTools: move tracing based Timeline out of experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated inspector/timeline/timeline-coalescing.html Created 6 years, 4 months 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 12 matching lines...) Expand all
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
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();
OLDNEW
« no previous file with comments | « Source/devtools/front_end/common/Settings.js ('k') | Source/devtools/front_end/timeline/TimelinePanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698