Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / inspector / InjectedScriptExterns.js
1 /*
2  * Copyright (C) 2012 Google Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are
6  * met:
7  *
8  *     * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *     * Redistributions in binary form must reproduce the above
11  * copyright notice, this list of conditions and the following disclaimer
12  * in the documentation and/or other materials provided with the
13  * distribution.
14  *     * Neither the name of Google Inc. nor the names of its
15  * contributors may be used to endorse or promote products derived from
16  * this software without specific prior written permission.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29  */
30
31 /**
32  * @constructor
33  */
34 function InjectedScriptHostClass() { }
35 InjectedScriptHostClass.prototype.storageId = function(object) { }
36 InjectedScriptHostClass.prototype.getInternalProperties = function(object) { }
37 /**
38  * @param {Function} func
39  */
40 InjectedScriptHostClass.prototype.functionDetails = function(func) { }
41 /**
42  * @param {*} object
43  */
44 InjectedScriptHostClass.prototype.isHTMLAllCollection = function(object) { }
45 /**
46  * @param {*} object
47  */
48 InjectedScriptHostClass.prototype.internalConstructorName = function(object) { }
49 /**
50  * @param {*} object
51  */
52 InjectedScriptHostClass.prototype.copyText = function(object) { }
53 InjectedScriptHostClass.prototype.clearConsoleMessages = function() { }
54 /**
55  * @param {number} index
56  */
57 InjectedScriptHostClass.prototype.inspectedObject = function(index) { }
58 /**
59  * @param {*} object
60  * @return {number}
61  */
62 InjectedScriptHostClass.prototype.objectId = function(object) { }
63 /**
64  * @param {*} object
65  */
66 InjectedScriptHostClass.prototype.releaseObjectId = function(object) { }
67 /**
68  * @param {*} object
69  */
70 InjectedScriptHostClass.prototype.databaseId = function(object) { }
71 /**
72  * @param {*} object
73  * @param {Object} hints
74  */
75 InjectedScriptHostClass.prototype.inspect = function(object, hints) { }
76 /**
77  * @param {*} object
78  */
79 InjectedScriptHostClass.prototype.type = function(object) { }
80 /**
81  * @param {*} object
82  */
83 InjectedScriptHostClass.prototype.getEventListeners = function(object) { }
84 /**
85  * @param {string} expression
86  */
87 InjectedScriptHostClass.prototype.evaluate = function(expression) { }
88 /**
89  * @param {*} fn
90  */
91 InjectedScriptHostClass.prototype.debugFunction = function(fn) { }
92 /**
93  * @param {*} fn
94  */
95 InjectedScriptHostClass.prototype.undebugFunction = function(fn) { }
96 /**
97  * @param {*} fn
98  */
99 InjectedScriptHostClass.prototype.monitorFunction = function(fn) { }
100 /**
101  * @param {*} fn
102  */
103 InjectedScriptHostClass.prototype.unmonitorFunction = function(fn) { }
104
105 /**
106  * @param {function(...)} fun
107  * @param {number} scopeNumber
108  * @param {string} variableName
109  * @param {*} newValue
110  */
111 InjectedScriptHostClass.prototype.setFunctionVariableValue = function(fun, scopeNumber, variableName, newValue) { }
112
113 /** @type {!InjectedScriptHostClass} */
114 var InjectedScriptHost;
115 /** @type {!Window} */
116 var inspectedWindow;
117 /** @type {number} */
118 var injectedScriptId;
119
120 /**
121  * @constructor
122  */
123 function JavaScriptCallFrame()
124 {
125     /** @type {number} */
126     this.sourceID;
127     /** @type {number} */
128     this.line;
129     /** @type {number} */
130     this.column;
131     /** @type {*} */
132     this.thisObject;
133     /** @type {string} */
134     this.stepInPositions;
135 }
136
137 /**
138  * @param {number} index
139  */
140 JavaScriptCallFrame.prototype.scopeType = function(index) { }
141
142 JavaScriptCallFrame.prototype.restart = function() { }
143
144 /**
145  * @param {number} scopeNumber
146  * @param {string} variableName
147  * @param {*} newValue
148  */
149 JavaScriptCallFrame.prototype.setVariableValue = function(scopeNumber, variableName, newValue) {}
150
151 /**
152  * @constructor
153  */
154 function JavaScriptFunction()
155 {
156     /** @type {Array} */
157     this.rawScopes;
158 }
159
160 // http://code.google.com/p/v8/wiki/JavaScriptStackTraceApi
161 /**
162  * @constructor
163  */
164 function CallSite()
165 {
166 }
167 /**
168  * @return {string}
169  */
170 CallSite.prototype.getFileName = function() { }
171 /**
172  * @return {number}
173  */
174 CallSite.prototype.getLineNumber = function() { }
175 /**
176  * @return {number}
177  */
178 CallSite.prototype.getColumnNumber = function() { }