OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 * @fileoverview These stubs emulate backend functionality and allows | 6 * @fileoverview These stubs emulate backend functionality and allows |
7 * DevTools frontend to function as a standalone web app. | 7 * DevTools frontend to function as a standalone web app. |
8 */ | 8 */ |
9 | 9 |
10 /** | 10 /** |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 }; | 250 }; |
251 | 251 |
252 | 252 |
253 RemoteDebuggerCommandExecutorStub.prototype.DebuggerCommand = function(cmd) { | 253 RemoteDebuggerCommandExecutorStub.prototype.DebuggerCommand = function(cmd) { |
254 }; | 254 }; |
255 | 255 |
256 | 256 |
257 /** | 257 /** |
258 * @constructor | 258 * @constructor |
259 */ | 259 */ |
260 RemoteNetAgentStub = function() { | |
261 }; | |
262 | |
263 | |
264 /** | |
265 * @constructor | |
266 */ | |
267 DevToolsHostStub = function() { | 260 DevToolsHostStub = function() { |
268 }; | 261 }; |
269 | 262 |
270 | 263 |
271 DevToolsHostStub.prototype.loaded = function() { | 264 DevToolsHostStub.prototype.loaded = function() { |
272 RemoteDomAgentStub.sendDocumentElement_(); | 265 RemoteDomAgentStub.sendDocumentElement_(); |
273 RemoteDomAgentStub.sendChildNodes_(1); | 266 RemoteDomAgentStub.sendChildNodes_(1); |
274 RemoteDomAgentStub.sendChildNodes_(2); | 267 RemoteDomAgentStub.sendChildNodes_(2); |
275 devtools.tools.updateFocusedNode(4); | 268 devtools.tools.updateFocusedNode(4); |
276 devtools.tools.addMessageToConsole('message', 'source', 3); | 269 devtools.tools.addMessageToConsole('message', 'source', 3); |
277 }; | 270 }; |
278 | 271 |
279 | 272 |
280 if (!window['DevToolsHost']) { | 273 if (!window['DevToolsHost']) { |
281 window['RemoteDebuggerAgent'] = new RemoteDebuggerAgentStub(); | 274 window['RemoteDebuggerAgent'] = new RemoteDebuggerAgentStub(); |
282 window['RemoteDebuggerCommandExecutor'] = | 275 window['RemoteDebuggerCommandExecutor'] = |
283 new RemoteDebuggerCommandExecutorStub(); | 276 new RemoteDebuggerCommandExecutorStub(); |
284 window['RemoteDomAgent'] = new RemoteDomAgentStub(); | 277 window['RemoteDomAgent'] = new RemoteDomAgentStub(); |
285 window['RemoteNetAgent'] = new RemoteNetAgentStub(); | |
286 window['RemoteToolsAgent'] = new RemoteToolsAgentStub(); | 278 window['RemoteToolsAgent'] = new RemoteToolsAgentStub(); |
287 window['DevToolsHost'] = new DevToolsHostStub(); | 279 window['DevToolsHost'] = new DevToolsHostStub(); |
288 } | 280 } |
OLD | NEW |