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

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

Issue 113836: DevTools: introduce bound object on the agent side. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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
« no previous file with comments | « webkit/glue/devtools/js/devtools.js ('k') | webkit/glue/devtools/js/dom_agent.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « webkit/glue/devtools/js/devtools.js ('k') | webkit/glue/devtools/js/dom_agent.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698