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

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

Issue 338283004: DevTools: Use TargetsToolbar instead of ThreadToolbar (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address vsevik's comments Created 6 years, 6 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 5
6 /** 6 /**
7 * @constructor 7 * @constructor
8 * @param {!WebInspector.Target} mainTarget 8 * @param {!WebInspector.Target} mainTarget
9 * @param {!WebInspector.TargetManager} targetManager 9 * @param {!WebInspector.TargetManager} targetManager
10 */ 10 */
(...skipping 13 matching lines...) Expand all
24 { 24 {
25 var data = /** @type {{workerId: number, url: string}} */ (event.data); 25 var data = /** @type {{workerId: number, url: string}} */ (event.data);
26 new WebInspector.WorkerConnection(this._mainTarget, data.workerId, onCon nectionReady.bind(this)); 26 new WebInspector.WorkerConnection(this._mainTarget, data.workerId, onCon nectionReady.bind(this));
27 27
28 /** 28 /**
29 * @this {WebInspector.WorkerTargetManager} 29 * @this {WebInspector.WorkerTargetManager}
30 * @param {!InspectorBackendClass.Connection} connection 30 * @param {!InspectorBackendClass.Connection} connection
31 */ 31 */
32 function onConnectionReady(connection) 32 function onConnectionReady(connection)
33 { 33 {
34 this._targetManager.createTarget(connection) 34 this._targetManager.createTarget(event.data.url, connection)
35 } 35 }
36 } 36 }
37 37
38 } 38 }
39 39
40 /** 40 /**
41 * @constructor 41 * @constructor
42 * @extends {InspectorBackendClass.Connection} 42 * @extends {InspectorBackendClass.Connection}
43 * @param {!WebInspector.Target} target 43 * @param {!WebInspector.Target} target
44 * @param {number} workerId 44 * @param {number} workerId
(...skipping 23 matching lines...) Expand all
68 /** 68 /**
69 * @param {!Object} messageObject 69 * @param {!Object} messageObject
70 */ 70 */
71 sendMessage: function(messageObject) 71 sendMessage: function(messageObject)
72 { 72 {
73 this._workerAgent.sendMessageToWorker(this._workerId, messageObject); 73 this._workerAgent.sendMessageToWorker(this._workerId, messageObject);
74 }, 74 },
75 75
76 __proto__: InspectorBackendClass.Connection.prototype 76 __proto__: InspectorBackendClass.Connection.prototype
77 } 77 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sdk/Target.js ('k') | Source/devtools/front_end/sources/SourcesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698