| Index: webkit/glue/devtools/js/inject_dispatch.js
|
| ===================================================================
|
| --- webkit/glue/devtools/js/inject_dispatch.js (revision 14839)
|
| +++ webkit/glue/devtools/js/inject_dispatch.js (working copy)
|
| @@ -1,33 +1,33 @@
|
| -// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -/**
|
| - * @fileoverview Injects 'injected' object into the inspectable page.
|
| - */
|
| -
|
| -/**
|
| - * Dispatches host calls into the injected function calls.
|
| - */
|
| -goog.require('devtools.Injected');
|
| -
|
| -
|
| -/**
|
| - * Injected singleton.
|
| - */
|
| -var devtools$$obj = new devtools.Injected();
|
| -
|
| -
|
| -/**
|
| - * Main dispatch method, all calls from the host go through this one.
|
| - * @param {string} functionName Function to call
|
| - * @param {Node} node Node context of the call.
|
| - * @param {string} json_args JSON-serialized call parameters.
|
| - * @return {string} JSON-serialized result of the dispatched call.
|
| - */
|
| -function devtools$$dispatch(functionName, node, json_args) {
|
| - var params = goog.json.parse(json_args);
|
| - params.splice(0, 0, node);
|
| - var result = devtools$$obj[functionName].apply(devtools$$obj, params);
|
| - return goog.json.serialize(result);
|
| -};
|
| +// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +/**
|
| + * @fileoverview Injects 'injected' object into the inspectable page.
|
| + */
|
| +
|
| +/**
|
| + * Dispatches host calls into the injected function calls.
|
| + */
|
| +goog.require('devtools.Injected');
|
| +
|
| +
|
| +/**
|
| + * Injected singleton.
|
| + */
|
| +var devtools$$obj = new devtools.Injected();
|
| +
|
| +
|
| +/**
|
| + * Main dispatch method, all calls from the host go through this one.
|
| + * @param {string} functionName Function to call
|
| + * @param {Node} node Node context of the call.
|
| + * @param {string} json_args JSON-serialized call parameters.
|
| + * @return {string} JSON-serialized result of the dispatched call.
|
| + */
|
| +function devtools$$dispatch(functionName, node, json_args) {
|
| + var params = goog.json.parse(json_args);
|
| + params.splice(0, 0, node);
|
| + var result = devtools$$obj[functionName].apply(devtools$$obj, params);
|
| + return goog.json.serialize(result);
|
| +};
|
|
|