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

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

Issue 206313004: DevTools: Rename WebInspector.DOMAgent into WebInspector.DOMModel (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 6 years, 9 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
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 {!InspectorBackendClass.Connection} connection 10 * @param {!InspectorBackendClass.Connection} connection
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/StylesSidebarPane.js ('k') | Source/devtools/front_end/TimelineUIUtils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698