| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 195 |
| 196 | 196 |
| 197 RemoteToolsAgentStub.prototype.GetNodePrototypes = function(callId, nodeId) { | 197 RemoteToolsAgentStub.prototype.GetNodePrototypes = function(callId, nodeId) { |
| 198 setTimeout(function() { | 198 setTimeout(function() { |
| 199 RemoteToolsAgent.DidGetNodePrototypes(callId, | 199 RemoteToolsAgent.DidGetNodePrototypes(callId, |
| 200 goog.json.serialize()); | 200 goog.json.serialize()); |
| 201 }, 0); | 201 }, 0); |
| 202 }; | 202 }; |
| 203 | 203 |
| 204 | 204 |
| 205 RemoteToolsAgentStub.prototype.ClearConsoleMessages = function() { |
| 206 }; |
| 207 |
| 208 |
| 205 /** | 209 /** |
| 206 * @constructor | 210 * @constructor |
| 207 */ | 211 */ |
| 208 RemoteDebuggerCommandExecutorStub = function() { | 212 RemoteDebuggerCommandExecutorStub = function() { |
| 209 }; | 213 }; |
| 210 | 214 |
| 211 | 215 |
| 212 RemoteDebuggerCommandExecutorStub.prototype.DebuggerCommand = function() { | 216 RemoteDebuggerCommandExecutorStub.prototype.DebuggerCommand = function() { |
| 213 }; | 217 }; |
| 214 | 218 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 225 */ | 229 */ |
| 226 DevToolsHostStub = function() { | 230 DevToolsHostStub = function() { |
| 227 }; | 231 }; |
| 228 | 232 |
| 229 | 233 |
| 230 DevToolsHostStub.prototype.loaded = function() { | 234 DevToolsHostStub.prototype.loaded = function() { |
| 231 RemoteDomAgentStub.sendDocumentElement_(); | 235 RemoteDomAgentStub.sendDocumentElement_(); |
| 232 RemoteDomAgentStub.sendChildNodes_(1); | 236 RemoteDomAgentStub.sendChildNodes_(1); |
| 233 RemoteDomAgentStub.sendChildNodes_(2); | 237 RemoteDomAgentStub.sendChildNodes_(2); |
| 234 devtools.tools.updateFocusedNode(4); | 238 devtools.tools.updateFocusedNode(4); |
| 239 devtools.tools.addMessageToConsole('message', 'source', 3); |
| 235 }; | 240 }; |
| 236 | 241 |
| 237 | 242 |
| 238 if (!window['DevToolsHost']) { | 243 if (!window['DevToolsHost']) { |
| 239 window['RemoteDebuggerAgent'] = new RemoteDebuggerAgentStub(); | 244 window['RemoteDebuggerAgent'] = new RemoteDebuggerAgentStub(); |
| 240 window['RemoteDebuggerCommandExecutor'] = | 245 window['RemoteDebuggerCommandExecutor'] = |
| 241 new RemoteDebuggerCommandExecutorStub(); | 246 new RemoteDebuggerCommandExecutorStub(); |
| 242 window['RemoteDomAgent'] = new RemoteDomAgentStub(); | 247 window['RemoteDomAgent'] = new RemoteDomAgentStub(); |
| 243 window['RemoteNetAgent'] = new RemoteNetAgentStub(); | 248 window['RemoteNetAgent'] = new RemoteNetAgentStub(); |
| 244 window['RemoteToolsAgent'] = new RemoteToolsAgentStub(); | 249 window['RemoteToolsAgent'] = new RemoteToolsAgentStub(); |
| 245 window['DevToolsHost'] = new DevToolsHostStub(); | 250 window['DevToolsHost'] = new DevToolsHostStub(); |
| 246 } | 251 } |
| OLD | NEW |