diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-21 15:26:31 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-21 15:26:31 +0000 |
commit | 3bd61de09a1aadbf57d61ace0d478b59bfd375f3 (patch) | |
tree | 04942387680d656e3140b087286a60c4a2a5559f /webkit/glue/devtools/js/inject.js | |
parent | 776775e2a12012b8747c3f2653140d0cf3036b6c (diff) | |
download | chromium_src-3bd61de09a1aadbf57d61ace0d478b59bfd375f3.zip chromium_src-3bd61de09a1aadbf57d61ace0d478b59bfd375f3.tar.gz chromium_src-3bd61de09a1aadbf57d61ace0d478b59bfd375f3.tar.bz2 |
DevTools: Get rid of utility functions and ExecuteUtilityFunction as a whole. Eliminates the need in double-JSON of InjectedScript-related functions.
Review URL: http://codereview.chromium.org/201017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26684 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/devtools/js/inject.js')
-rw-r--r-- | webkit/glue/devtools/js/inject.js | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/webkit/glue/devtools/js/inject.js b/webkit/glue/devtools/js/inject.js deleted file mode 100644 index 8a9b199..0000000 --- a/webkit/glue/devtools/js/inject.js +++ /dev/null @@ -1,50 +0,0 @@ -// 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 Javascript that is being injected into the inspectable page - * while debugging. - */ -goog.provide('devtools.Injected'); - - -/** - * Main injected object. - * @constructor. - */ -devtools.Injected = function() { -}; - - -/** - * Dispatches given method with given args on the host object. - * @param {string} method Method name. - */ -devtools.Injected.prototype.InspectorController = function(method, var_args) { - var args = Array.prototype.slice.call(arguments, 1); - return InspectorController[method].apply(InspectorController, args); -}; - - -/** - * Dispatches given method with given args on the InjectedScript. - * @param {string} method Method name. - */ -devtools.Injected.prototype.InjectedScript = function(method, var_args) { - var args = Array.prototype.slice.call(arguments, 1); - var result = InjectedScript[method].apply(InjectedScript, args); - return result; -}; - - -// Plugging into upstreamed support. -InjectedScript._window = function() { - return contentWindow; -}; - - -// Plugging into upstreamed support. -Object.className = function(obj) { - return (obj == null) ? "null" : obj.constructor.name; -}; |