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

Side by Side Diff: webkit/glue/devtools/js/devtools_host_stub.js

Issue 149178: DevTools: Console tests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698