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

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

Issue 750983003: DevTools: remove Console.setTracingBasedTimeline call from startup. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 this.consoleAgent().setTracingBasedTimeline(true);
33 } 32 }
34 33
35 /** 34 /**
36 * @enum {string} 35 * @enum {string}
37 */ 36 */
38 WebInspector.Target.Capabilities = { 37 WebInspector.Target.Capabilities = {
39 CanScreencast: "CanScreencast", 38 CanScreencast: "CanScreencast",
40 HasTouchInputs: "HasTouchInputs", 39 HasTouchInputs: "HasTouchInputs",
41 CanProfilePower: "CanProfilePower", 40 CanProfilePower: "CanProfilePower",
42 CanInspectWorkers: "CanInspectWorkers", 41 CanInspectWorkers: "CanInspectWorkers",
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 /** 555 /**
557 * @param {!WebInspector.Target} target 556 * @param {!WebInspector.Target} target
558 */ 557 */
559 targetRemoved: function(target) { }, 558 targetRemoved: function(target) { },
560 } 559 }
561 560
562 /** 561 /**
563 * @type {!WebInspector.TargetManager} 562 * @type {!WebInspector.TargetManager}
564 */ 563 */
565 WebInspector.targetManager = new WebInspector.TargetManager(); 564 WebInspector.targetManager = new WebInspector.TargetManager();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698