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

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: review comments addressed 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
« no previous file with comments | « Source/core/inspector/WorkerInspectorController.cpp ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 /** 562 /**
564 * @param {!WebInspector.Target} target 563 * @param {!WebInspector.Target} target
565 */ 564 */
566 targetRemoved: function(target) { }, 565 targetRemoved: function(target) { },
567 } 566 }
568 567
569 /** 568 /**
570 * @type {!WebInspector.TargetManager} 569 * @type {!WebInspector.TargetManager}
571 */ 570 */
572 WebInspector.targetManager = new WebInspector.TargetManager(); 571 WebInspector.targetManager = new WebInspector.TargetManager();
OLDNEW
« no previous file with comments | « Source/core/inspector/WorkerInspectorController.cpp ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698