2 * Copyright 2008 The Closure Compiler Authors
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @fileoverview Definitions for all the extensions over W3C's DOM
19 * specification by WebKit. This file depends on w3c_dom2.js.
20 * All the provided definitions has been type annotated
27 * @param {boolean=} opt_center
28 * @see https://bugzilla.mozilla.org/show_bug.cgi?id=403510
30 Element.prototype.scrollIntoViewIfNeeded = function(opt_center) {};
34 * @see http://trac.webkit.org/browser/trunk/Source/WebCore/page/MemoryInfo.idl
35 * @see http://trac.webkit.org/browser/trunk/Source/WebCore/page/MemoryInfo.cpp
37 function MemoryInfo() {};
40 MemoryInfo.prototype.totalJSHeapSize;
43 MemoryInfo.prototype.usedJSHeapSize;
46 MemoryInfo.prototype.jsHeapSizeLimit;
50 * @see http://trac.webkit.org/browser/trunk/Source/WebCore/inspector/ScriptProfileNode.idl
52 function ScriptProfileNode() {};
55 ScriptProfileNode.prototype.functionName;
58 ScriptProfileNode.prototype.url;
61 ScriptProfileNode.prototype.lineNumber;
64 ScriptProfileNode.prototype.totalTime;
67 ScriptProfileNode.prototype.selfTime;
70 ScriptProfileNode.prototype.numberOfCalls;
72 /** @type {Array.<ScriptProfileNode>} */
73 ScriptProfileNode.prototype.children;
75 /** @type {boolean} */
76 ScriptProfileNode.prototype.visible;
79 ScriptProfileNode.prototype.callUID;
83 * @see http://trac.webkit.org/browser/trunk/Source/WebCore/inspector/ScriptProfile.idl
85 function ScriptProfile() {};
88 ScriptProfile.prototype.title;
91 ScriptProfile.prototype.uid;
93 /** @type {ScriptProfileNode} */
94 ScriptProfile.prototype.head;
98 * @see http://trac.webkit.org/browser/trunk/Source/WebCore/page/Console.idl
99 * @see http://trac.webkit.org/browser/trunk/Source/WebCore/page/Console.cpp
101 function Console() {};
104 * @param {*} condition
105 * @param {...*} var_args
107 Console.prototype.assert = function(condition, var_args) {};
110 * @param {...*} var_args
112 Console.prototype.error = function(var_args) {};
115 * @param {...*} var_args
117 Console.prototype.info = function(var_args) {};
120 * @param {...*} var_args
122 Console.prototype.log = function(var_args) {};
125 * @param {...*} var_args
127 Console.prototype.warn = function(var_args) {};
130 * @param {...*} var_args
132 Console.prototype.debug = function(var_args) {};
137 Console.prototype.dir = function(value) {};
140 * @param {...*} var_args
142 Console.prototype.dirxml = function(var_args) {};
145 * @param {!Object} data
146 * @param {*=} opt_columns
148 Console.prototype.table = function(data, opt_columns) {};
151 * @return {undefined}
153 Console.prototype.trace = function() {};
158 Console.prototype.count = function(value) {};
163 Console.prototype.markTimeline = function(value) {};
166 * @param {string=} opt_title
168 Console.prototype.profile = function(opt_title) {};
170 /** @type {Array.<ScriptProfile>} */
171 Console.prototype.profiles;
174 * @param {string=} opt_title
176 Console.prototype.profileEnd = function(opt_title) {};
179 * @param {string} name
181 Console.prototype.time = function(name) {};
184 * @param {string} name
186 Console.prototype.timeEnd = function(name) {};
191 Console.prototype.timeStamp = function(value) {};
194 * @param {...*} var_args
196 Console.prototype.group = function(var_args) {};
199 * @param {...*} var_args
201 Console.prototype.groupCollapsed = function(var_args) {};
203 Console.prototype.groupEnd = function() {};
205 Console.prototype.clear = function() {};
207 /** @type {MemoryInfo} */
208 Console.prototype.memory;
210 /** @type {!Console} */
211 Window.prototype.console;
215 * @suppress {duplicate}
221 * @see http://developer.android.com/reference/android/webkit/WebView.html
223 Window.prototype.devicePixelRatio;
226 Selection.prototype.baseNode;
228 /** @type {number} */
229 Selection.prototype.baseOffset;
232 Selection.prototype.extentNode;
234 /** @type {number} */
235 Selection.prototype.extentOffset;
237 /** @type {string} */
238 Selection.prototype.type;
241 * @return {undefined}
243 Selection.prototype.empty = function() {};
246 * @param {Node} baseNode
247 * @param {number} baseOffset
248 * @param {Node} extentNode
249 * @param {number} extentOffset
250 * @return {undefined}
252 Selection.prototype.setBaseAndExtent =
253 function(baseNode, baseOffset, extentNode, extentOffset) {};
256 * @param {string} alter
257 * @param {string} direction
258 * @param {string} granularity
259 * @return {undefined}
261 Selection.prototype.modify = function(alter, direction, granularity) {};
264 * @param {Element} element
265 * @param {string} pseudoElement
266 * @param {boolean=} opt_authorOnly
267 * @return {CSSRuleList}
270 ViewCSS.prototype.getMatchedCSSRules =
271 function(element, pseudoElement, opt_authorOnly) {};
274 * @param {string} contextId
275 * @param {string} name
276 * @param {number} width
277 * @param {number} height
280 Document.prototype.getCSSCanvasContext =
281 function(contextId, name, width, height) {};