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

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

Issue 99184: DevTools: Implement styles toggle:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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/inject.js ('k') | webkit/glue/devtools/tools_agent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 /**
6 * @fileoverview Injects 'injected' object into the inspectable page.
7 */
8
9 /**
10 * Dispatches host calls into the injected function calls.
11 */
12 goog.require('devtools.Injected');
13
14
15 /**
16 * Injected singleton.
17 */
18 var devtools$$obj = new devtools.Injected();
19
20
21 /**
22 * Main dispatch method, all calls from the host go through this one.
23 * @param {string} functionName Function to call
24 * @param {Node} node Node context of the call.
25 * @param {string} json_args JSON-serialized call parameters.
26 * @return {string} JSON-serialized result of the dispatched call.
27 */
28 function devtools$$dispatch(functionName, node, json_args) {
29 var params = goog.json.parse(json_args);
30 params.splice(0, 0, node);
31 var result = devtools$$obj[functionName].apply(devtools$$obj, params);
32 return goog.json.serialize(result);
33 };
OLDNEW
« no previous file with comments | « webkit/glue/devtools/js/inject.js ('k') | webkit/glue/devtools/tools_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698