| 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 DevToolsHostStub.prototype.getPlatform = function() { | 377 DevToolsHostStub.prototype.getPlatform = function() { |
| 378 return "windows"; | 378 return "windows"; |
| 379 }; | 379 }; |
| 380 | 380 |
| 381 | 381 |
| 382 DevToolsHostStub.prototype.addResourceSourceToFrame = function( | 382 DevToolsHostStub.prototype.addResourceSourceToFrame = function( |
| 383 identifier, mimeType, element) { | 383 identifier, mimeType, element) { |
| 384 }; | 384 }; |
| 385 | 385 |
| 386 | 386 |
| 387 DevToolsHostStub.prototype.addSourceToFrame = function(mimeType, source, |
| 388 element) { |
| 389 }; |
| 390 |
| 391 |
| 387 if (!window['DevToolsHost']) { | 392 if (!window['DevToolsHost']) { |
| 388 window['RemoteDebuggerAgent'] = new RemoteDebuggerAgentStub(); | 393 window['RemoteDebuggerAgent'] = new RemoteDebuggerAgentStub(); |
| 389 window['RemoteDebuggerCommandExecutor'] = | 394 window['RemoteDebuggerCommandExecutor'] = |
| 390 new RemoteDebuggerCommandExecutorStub(); | 395 new RemoteDebuggerCommandExecutorStub(); |
| 391 window['RemoteDomAgent'] = new RemoteDomAgentStub(); | 396 window['RemoteDomAgent'] = new RemoteDomAgentStub(); |
| 392 window['RemoteToolsAgent'] = new RemoteToolsAgentStub(); | 397 window['RemoteToolsAgent'] = new RemoteToolsAgentStub(); |
| 393 window['DevToolsHost'] = new DevToolsHostStub(); | 398 window['DevToolsHost'] = new DevToolsHostStub(); |
| 394 } | 399 } |
| OLD | NEW |