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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js

Issue 2442083002: [DevTools] Merge Worker domain to Target, migrate clients. (Closed)
Patch Set: rebased all tests Created 4 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
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 {WebInspector.Object} 9 * @extends {WebInspector.Object}
10 */ 10 */
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 if (target.hasJSCapability()) 211 if (target.hasJSCapability())
212 new WebInspector.DebuggerModel(target); 212 new WebInspector.DebuggerModel(target);
213 213
214 if (resourceTreeModel) { 214 if (resourceTreeModel) {
215 var domModel = new WebInspector.DOMModel(target); 215 var domModel = new WebInspector.DOMModel(target);
216 // TODO(eostroukhov) CSSModel should not depend on RTM 216 // TODO(eostroukhov) CSSModel should not depend on RTM
217 new WebInspector.CSSModel(target, domModel); 217 new WebInspector.CSSModel(target, domModel);
218 } 218 }
219 219
220 /** @type {?WebInspector.WorkerManager} */ 220 /** @type {?WebInspector.SubTargetsManager} */
221 target.workerManager = target.hasWorkerCapability() ? new WebInspector.W orkerManager(target) : null; 221 target.subTargetsManager = target.hasTargetCapability() ? new WebInspect or.SubTargetsManager(target) : null;
222 /** @type {!WebInspector.CPUProfilerModel} */ 222 /** @type {!WebInspector.CPUProfilerModel} */
223 target.cpuProfilerModel = new WebInspector.CPUProfilerModel(target); 223 target.cpuProfilerModel = new WebInspector.CPUProfilerModel(target);
224 /** @type {!WebInspector.HeapProfilerModel} */ 224 /** @type {!WebInspector.HeapProfilerModel} */
225 target.heapProfilerModel = new WebInspector.HeapProfilerModel(target); 225 target.heapProfilerModel = new WebInspector.HeapProfilerModel(target);
226 226
227 target.tracingManager = new WebInspector.TracingManager(target); 227 target.tracingManager = new WebInspector.TracingManager(target);
228 228
229 if (target.hasBrowserCapability()) { 229 if (target.subTargetsManager && target.hasBrowserCapability())
230 target.subTargetsManager = new WebInspector.SubTargetsManager(target );
231 target.serviceWorkerManager = new WebInspector.ServiceWorkerManager( target, target.subTargetsManager); 230 target.serviceWorkerManager = new WebInspector.ServiceWorkerManager( target, target.subTargetsManager);
232 }
233 231
234 this.addTarget(target); 232 this.addTarget(target);
235 return target; 233 return target;
236 }, 234 },
237 235
238 /** 236 /**
239 * @param {function(function(string)):!Promise<!InspectorBackendClass.Connec tion>} interceptor 237 * @param {function(function(string)):!Promise<!InspectorBackendClass.Connec tion>} interceptor
240 */ 238 */
241 setMainConnectionInterceptor: function(interceptor) 239 setMainConnectionInterceptor: function(interceptor)
242 { 240 {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 /** 399 /**
402 * @param {!WebInspector.Target} target 400 * @param {!WebInspector.Target} target
403 */ 401 */
404 targetRemoved: function(target) { }, 402 targetRemoved: function(target) { },
405 }; 403 };
406 404
407 /** 405 /**
408 * @type {!WebInspector.TargetManager} 406 * @type {!WebInspector.TargetManager}
409 */ 407 */
410 WebInspector.targetManager = new WebInspector.TargetManager(); 408 WebInspector.targetManager = new WebInspector.TargetManager();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698