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

Unified Diff: Source/core/inspector/injected_script_externs.js

Issue 1149383005: DevTools: remove InjectedScriptHost.idl, implement the binding without generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/inspector/InjectedScriptManager.cpp ('k') | Source/devtools/PRESUBMIT.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/injected_script_externs.js
diff --git a/Source/core/inspector/injected_script_externs.js b/Source/core/inspector/injected_script_externs.js
index 9fca1a00c7efaf825ad7624c237eb22912db663e..60e0bd00822fb14ea8022ef26b1f8805636f559c 100644
--- a/Source/core/inspector/injected_script_externs.js
+++ b/Source/core/inspector/injected_script_externs.js
@@ -3,6 +3,173 @@
// found in the LICENSE file.
/** @interface */
+function InjectedScriptHostClass()
+{
+}
+
+/**
+ */
+InjectedScriptHostClass.prototype.clearConsoleMessages = function() {}
+
+/**
+ * @param {*} objectId
+ * @param {!Object} hints
+ */
+InjectedScriptHostClass.prototype.inspect = function(objectId, hints) {}
+
+/**
+ * @param {number} num
+ * @return {*}
+ */
+InjectedScriptHostClass.prototype.inspectedObject = function(num) {}
+
+/**
+ * @param {*} obj
+ * @return {string}
+ */
+InjectedScriptHostClass.prototype.internalConstructorName = function(obj) {}
+
+/**
+ * @param {*} obj
+ * @return {boolean}
+ */
+InjectedScriptHostClass.prototype.isDOMWrapper = function(obj) {}
+
+/**
+ * @param {*} obj
+ * @return {boolean}
+ */
+InjectedScriptHostClass.prototype.isHTMLAllCollection = function(obj) {}
+
+/**
+ * @param {*} obj
+ * @return {boolean}
+ */
+InjectedScriptHostClass.prototype.isTypedArray = function(obj) {}
+
+/**
+ * @param {*} obj
+ * @return {string}
+ */
+InjectedScriptHostClass.prototype.subtype = function(obj) {}
+
+/**
+ * @param {!Function} obj
+ * @return {*}
+ */
+InjectedScriptHostClass.prototype.functionDetails = function(obj) {}
+
+/**
+ * @param {!Object} obj
+ * @return {?Object}
+ */
+InjectedScriptHostClass.prototype.generatorObjectDetails = function(obj) {}
+
+/**
+ * @param {!Object} obj
+ * @return {?Array.<*>}
+ */
+InjectedScriptHostClass.prototype.collectionEntries = function(obj) {}
+
+/**
+ * @param {*} obj
+ * @return {!Array.<*>}
+ */
+InjectedScriptHostClass.prototype.getInternalProperties = function(obj) {}
+
+/**
+ * @param {!EventTarget} target
+ * @return {!Array.<*>}
+ */
+InjectedScriptHostClass.prototype.getEventListeners = function(target) {}
+
+/**
+ * @param {string} text
+ * @return {*}
+ */
+InjectedScriptHostClass.prototype.eval = function(text) {}
+
+/**
+ * @param {string} text
+ * @return {*}
+ */
+InjectedScriptHostClass.prototype.evaluateWithExceptionDetails = function(text) {}
+
+/**
+ * @param {*} fn
+ */
+InjectedScriptHostClass.prototype.debugFunction = function(fn) {}
+
+/**
+ * @param {*} fn
+ */
+InjectedScriptHostClass.prototype.undebugFunction = function(fn) {}
+
+/**
+ * @param {*} fn
+ */
+InjectedScriptHostClass.prototype.monitorFunction = function(fn) {}
+
+/**
+ * @param {*} fn
+ */
+InjectedScriptHostClass.prototype.unmonitorFunction = function(fn) {}
+
+/**
+ * @param {!Function} fn
+ * @param {*} receiver
+ * @param {!Array.<*>=} argv
+ * @return {*}
+ */
+InjectedScriptHostClass.prototype.callFunction = function(fn, receiver, argv) {}
+
+/**
+ * @param {!Function} fn
+ * @param {*} receiver
+ * @param {!Array.<*>=} argv
+ * @return {*}
+ */
+InjectedScriptHostClass.prototype.suppressWarningsAndCallFunction = function(fn, receiver, argv) {}
+
+/**
+ * @param {!Object} obj
+ * @param {string} key
+ * @param {*} value
+ */
+InjectedScriptHostClass.prototype.setNonEnumProperty = function(obj, key, value) {}
+
+/**
+ * @param {!Function} functionObject
+ * @param {number} scopeIndex
+ * @param {string} variableName
+ * @param {*} newValue
+ * @return {*}
+ */
+InjectedScriptHostClass.prototype.setFunctionVariableValue = function(functionObject, scopeIndex, variableName, newValue) {}
+
+/**
+ * @param {*} value
+ * @param {string} groupName
+ * @return {number}
+ */
+InjectedScriptHostClass.prototype.bind = function(value, groupName) {}
+
+/**
+ * @param {number} id
+ * @return {*}
+ */
+InjectedScriptHostClass.prototype.objectForId = function(id) {}
+
+/**
+ * @param {number} id
+ * @return {string}
+ */
+InjectedScriptHostClass.prototype.idToObjectGroupName = function(id) {}
+
+/** @type {!InjectedScriptHostClass} */
+var InjectedScriptHost;
+
+/** @interface */
function JavaScriptCallFrame()
{
/** @type {!JavaScriptCallFrame} */
@@ -57,3 +224,8 @@ JavaScriptCallFrame.prototype.setVariableValue = function(scopeIndex, variableNa
*/
JavaScriptCallFrame.prototype.scopeType = function(scopeIndex) {}
+
+/** @type {!Window} */
+var inspectedWindow;
+/** @type {number} */
+var injectedScriptId;
« no previous file with comments | « Source/core/inspector/InjectedScriptManager.cpp ('k') | Source/devtools/PRESUBMIT.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698