| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 * @constructor | 258 * @constructor |
| 259 */ | 259 */ |
| 260 DevToolsHostStub = function() { | 260 DevToolsHostStub = function() { |
| 261 }; | 261 }; |
| 262 | 262 |
| 263 | 263 |
| 264 DevToolsHostStub.prototype.loaded = function() { | 264 DevToolsHostStub.prototype.loaded = function() { |
| 265 RemoteDomAgentStub.sendDocumentElement_(); | 265 RemoteDomAgentStub.sendDocumentElement_(); |
| 266 RemoteDomAgentStub.sendChildNodes_(1); | 266 RemoteDomAgentStub.sendChildNodes_(1); |
| 267 RemoteDomAgentStub.sendChildNodes_(2); | 267 RemoteDomAgentStub.sendChildNodes_(2); |
| 268 devtools.tools.updateFocusedNode(4); | 268 devtools.tools.updateFocusedNode_(4); |
| 269 devtools.tools.addMessageToConsole('message', 'source', 3); | 269 devtools.tools.addMessageToConsole_('message', 'source', 3); |
| 270 }; | 270 }; |
| 271 | 271 |
| 272 | 272 |
| 273 if (!window['DevToolsHost']) { | 273 if (!window['DevToolsHost']) { |
| 274 window['RemoteDebuggerAgent'] = new RemoteDebuggerAgentStub(); | 274 window['RemoteDebuggerAgent'] = new RemoteDebuggerAgentStub(); |
| 275 window['RemoteDebuggerCommandExecutor'] = | 275 window['RemoteDebuggerCommandExecutor'] = |
| 276 new RemoteDebuggerCommandExecutorStub(); | 276 new RemoteDebuggerCommandExecutorStub(); |
| 277 window['RemoteDomAgent'] = new RemoteDomAgentStub(); | 277 window['RemoteDomAgent'] = new RemoteDomAgentStub(); |
| 278 window['RemoteToolsAgent'] = new RemoteToolsAgentStub(); | 278 window['RemoteToolsAgent'] = new RemoteToolsAgentStub(); |
| 279 window['DevToolsHost'] = new DevToolsHostStub(); | 279 window['DevToolsHost'] = new DevToolsHostStub(); |
| 280 } | 280 } |
| OLD | NEW |