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// WebKit Web Facing API
32var console = { }
33/** @param {...*} vararg */
34console.log = function(vararg) { }
35
36/**
37 * @constructor
38 */
39function InjectedScriptHost() { }
40InjectedScriptHost.prototype.storageId = function(object) { }
41InjectedScriptHost.prototype.getInternalProperties = function(object) { }
42/**
43 * @param {Function} func
44 */
45InjectedScriptHost.prototype.functionDetails = function(func) { }
46/**
47 * @param {*} object
48 */
49InjectedScriptHost.prototype.isHTMLAllCollection = function(object) { }
50/**
51 * @param {*} object
52 */
53InjectedScriptHost.prototype.internalConstructorName = function(object) { }
54/**
55 * @param {*} object
56 */
57InjectedScriptHost.prototype.copyText = function(object) { }
58InjectedScriptHost.prototype.clearConsoleMessages = function() { }
59/**
60 * @param {number} index
61 */
62InjectedScriptHost.prototype.inspectedObject = function(index) { }
63/**
64 * @param {*} object
65 * @return {number}
66 */
67InjectedScriptHost.prototype.objectId = function(object) { }
68/**
69 * @param {*} object
70 */
71InjectedScriptHost.prototype.releaseObjectId = function(object) { }
72/**
73 * @param {*} object
74 */
75InjectedScriptHost.prototype.databaseId = function(object) { }
76/**
77 * @param {*} object
78 * @param {Object} hints
79 */
80InjectedScriptHost.prototype.inspect = function(object, hints) { }
81/**
82 * @param {*} object
83 */
84InjectedScriptHost.prototype.type = function(object) { }
85/**
86 * @param {*} object
87 */
88InjectedScriptHost.prototype.getEventListeners = function(object) { }
89/**
90 * @param {string} expression
91 */
92InjectedScriptHost.prototype.evaluate = function(expression) { }
93
94/**
95 * @param {function(...)} fun
96 * @param {number} scopeNumber
97 * @param {string} variableName
98 * @param {*} newValue
99 */
100InjectedScriptHost.prototype.setFunctionVariableValue = function(fun, scopeNumber, variableName, newValue) { }
101
102/**
103 * @constructor
104 */
105function JavaScriptCallFrame()
106{
107    /** @type {number} */
108    this.sourceID;
109    /** @type {number} */
110    this.line;
111    /** @type {number} */
112    this.column;
113    /** @type {*} */
114    this.thisObject;
115}
116
117/**
118 * @param {number} index
119 */
120JavaScriptCallFrame.prototype.scopeType = function(index) { }
121
122JavaScriptCallFrame.prototype.restart = function() { }
123
124/**
125 * @param {number} scopeNumber
126 * @param {string} variableName
127 * @param {*} newValue
128 */
129JavaScriptCallFrame.prototype.setVariableValue = function(scopeNumber, variableName, newValue) {}
130
131/**
132 * @constructor
133 */
134function JavaScriptFunction()
135{
136    /** @type {Array} */
137    this.rawScopes;
138}
139
140var InspectorBackend = { };
141
142/**
143 * @constructor
144 */
145function CallSite()
146{
147}
148/**
149 * @return {string}
150 */
151CallSite.prototype.getFileName = function() { }
152/**
153 * @return {number}
154 */
155CallSite.prototype.getLineNumber = function() { }
156/**
157 * @return {number}
158 */
159CallSite.prototype.getColumnNumber = function() { }
160