summaryrefslogtreecommitdiffstats
path: root/webkit/glue/devtools/js/inject.js
diff options
context:
space:
mode:
authorpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-14 09:26:04 +0000
committerpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-14 09:26:04 +0000
commitd342eb38154f47b3deea6c46a80bd3767e6fdff9 (patch)
tree3d7e4bf1a36d3f7681cb762f9dc0ebba23edfe59 /webkit/glue/devtools/js/inject.js
parent4eddcddf2737503c440bbdef106f5a6436d71670 (diff)
downloadchromium_src-d342eb38154f47b3deea6c46a80bd3767e6fdff9.zip
chromium_src-d342eb38154f47b3deea6c46a80bd3767e6fdff9.tar.gz
chromium_src-d342eb38154f47b3deea6c46a80bd3767e6fdff9.tar.bz2
DevTools: dom_agent is dead. Long live InspectorDOMAgent.
Review URL: http://codereview.chromium.org/165526 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23429 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/devtools/js/inject.js')
-rw-r--r--webkit/glue/devtools/js/inject.js62
1 files changed, 0 insertions, 62 deletions
diff --git a/webkit/glue/devtools/js/inject.js b/webkit/glue/devtools/js/inject.js
index 0d4e0e3..e214766 100644
--- a/webkit/glue/devtools/js/inject.js
+++ b/webkit/glue/devtools/js/inject.js
@@ -14,55 +14,6 @@ goog.provide('devtools.Injected');
* @constructor.
*/
devtools.Injected = function() {
- /**
- * This cache contains mapping from object it to an object instance for
- * all results of the evaluation / console logs.
- */
- this.cachedConsoleObjects_ = {};
-
- /**
- * Last id for the cache above.
- */
- this.lastCachedConsoleObjectId_ = 1;
-};
-
-
-/**
- * Caches console object for subsequent calls to getConsoleObjectProperties.
- * @param {Object} obj Object to cache.
- * @return {Object} console object wrapper.
- */
-devtools.Injected.prototype.wrapConsoleObject = function(obj) {
- var type = typeof obj;
- if ((type == 'object' && obj != null) || type == 'function') {
- var objId = '#consoleobj#' + this.lastCachedConsoleObjectId_++;
- this.cachedConsoleObjects_[objId] = obj;
- var result = { ___devtools_id : objId };
- result.___devtools_class_name = Object.describe(obj, true);
- // Loop below fills dummy object with properties for completion.
- for (var name in obj) {
- result[name] = '';
- }
- return result;
- }
- return obj;
-};
-
-
-/**
- * Caches console object for subsequent calls to getConsoleObjectProperties.
- * @param {Object} obj Object to cache.
- * @return {string} Console object wrapper serialized into a JSON string.
- */
-devtools.Injected.prototype.serializeConsoleObject = function(obj) {
- var result = this.wrapConsoleObject(obj);
- return JSON.stringify(result,
- function (key, value) {
- if (value === undefined) {
- return 'undefined';
- }
- return value;
- });
};
@@ -93,19 +44,6 @@ InjectedScript._window = function() {
};
-InjectedScript._nodeForId = function(nodeId) {
- return DevToolsAgentHost.getNodeForId(nodeId);
-};
-
-
-InjectedScript._objectForId = function(id) {
- if (typeof id == 'number') {
- return DevToolsAgentHost.getNodeForId(id);
- }
- return devtools$$obj.cachedConsoleObjects_[id];
-};
-
-
Object.type = function(obj, win)
{
if (obj === null)