OLD | NEW |
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 {!InspectorBackendClass.Connection} connection | 10 * @param {!InspectorBackendClass.Connection} connection |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 WebInspector.resourceTreeModel = this.resourceTreeModel; | 50 WebInspector.resourceTreeModel = this.resourceTreeModel; |
51 | 51 |
52 this.debuggerModel = new WebInspector.DebuggerModel(this); | 52 this.debuggerModel = new WebInspector.DebuggerModel(this); |
53 if (!WebInspector.debuggerModel) | 53 if (!WebInspector.debuggerModel) |
54 WebInspector.debuggerModel = this.debuggerModel; | 54 WebInspector.debuggerModel = this.debuggerModel; |
55 | 55 |
56 this.runtimeModel = new WebInspector.RuntimeModel(this); | 56 this.runtimeModel = new WebInspector.RuntimeModel(this); |
57 if (!WebInspector.runtimeModel) | 57 if (!WebInspector.runtimeModel) |
58 WebInspector.runtimeModel = this.runtimeModel; | 58 WebInspector.runtimeModel = this.runtimeModel; |
59 | 59 |
60 //we can't name it domAgent, because it clashes with function, WebInspec
tor.DOMAgent should be renamed to DOMModel | 60 this.domModel = new WebInspector.DOMModel(); |
61 this.domModel = new WebInspector.DOMAgent(); | 61 if (!WebInspector.domModel) |
62 if (!WebInspector.domAgent) | 62 WebInspector.domModel = this.domModel; |
63 WebInspector.domAgent = this.domModel; | |
64 | 63 |
65 this.workerManager = new WebInspector.WorkerManager(this, this.isMainFro
ntend); | 64 this.workerManager = new WebInspector.WorkerManager(this, this.isMainFro
ntend); |
66 if (!WebInspector.workerManager) | 65 if (!WebInspector.workerManager) |
67 WebInspector.workerManager = this.workerManager; | 66 WebInspector.workerManager = this.workerManager; |
68 | 67 |
69 if (callback) | 68 if (callback) |
70 callback(this); | 69 callback(this); |
71 }, | 70 }, |
72 | 71 |
73 /** | 72 /** |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 return this._targets[0]; | 146 return this._targets[0]; |
148 }, | 147 }, |
149 | 148 |
150 __proto__: WebInspector.Object.prototype | 149 __proto__: WebInspector.Object.prototype |
151 } | 150 } |
152 | 151 |
153 /** | 152 /** |
154 * @type {!WebInspector.TargetManager} | 153 * @type {!WebInspector.TargetManager} |
155 */ | 154 */ |
156 WebInspector.targetManager; | 155 WebInspector.targetManager; |
OLD | NEW |