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 JavaScript Built-Ins for windows properties.
21 * @author stevey@google.com (Steve Yegge)
25 // Only common properties are here. Others such as open()
26 // should be used with an explicit Window object.
30 * @see https://developer.mozilla.org/en/DOM/window.top
37 * @see https://developer.mozilla.org/en/DOM/window.navigator
43 * @type {!HTMLDocument}
44 * @see https://developer.mozilla.org/en/DOM/window.document
51 * @see https://developer.mozilla.org/en/DOM/window.location
53 * @suppress {duplicate}
60 * @see https://developer.mozilla.org/En/DOM/window.screen
67 * @see https://developer.mozilla.org/En/DOM/Window.self
72 // Magic functions for Firefox's LiveConnect.
73 // We'll probably never use these in practice. But redefining them
74 // will fire up the JVM, so we want to reserve the symbol names.
77 * @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/JavaArray
82 * @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/JavaClass
86 // We just ripped this from the FF source; it doesn't appear to be
87 // publicly documented.
91 * @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/JavaObject
96 * @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/JavaPackage
101 * @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Packages
106 * @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/java
111 * @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/netscape
116 * @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/sun
121 * @see https://developer.mozilla.org/en/DOM/window.alert
126 * @param {number|undefined|null} immediateID
127 * @see https://developer.mozilla.org/en-US/docs/DOM/window.clearImmediate
128 * @see http://msdn.microsoft.com/en-us/library/ie/hh924825(v=vs.85).aspx
130 function clearImmediate(immediateID) {}
133 * @param {number|undefined?} intervalID
134 * @see https://developer.mozilla.org/en/DOM/window.clearInterval
135 * @suppress {duplicate}
137 function clearInterval(intervalID) {}
140 * @param {number|undefined?} timeoutID
141 * @see https://developer.mozilla.org/en/DOM/window.clearTimeout
142 * @suppress {duplicate}
144 function clearTimeout(timeoutID) {}
149 * @see https://developer.mozilla.org/en/DOM/window.confirm
151 function confirm(message) {}
154 * @see https://developer.mozilla.org/en/DOM/window.dump
159 * @param {string} message
160 * @param {string=} opt_value
162 * @see https://developer.mozilla.org/en/DOM/window.prompt
164 function prompt(message, opt_value) {}
167 * @param {function()} callback
169 * @see https://developer.mozilla.org/en-US/docs/DOM/window.setImmediate
170 * @see http://msdn.microsoft.com/en-us/library/ie/hh773176(v=vs.85).aspx
172 function setImmediate(callback) {}
175 * @param {Function|string} callback
176 * @param {number=} opt_delay
178 * @see https://developer.mozilla.org/en/DOM/window.setInterval
179 * @see https://html.spec.whatwg.org/multipage/webappapis.html#timers
181 function setInterval(callback, opt_delay) {}
184 * @param {Function|string} callback
185 * @param {number=} opt_delay
186 * @param {...*} var_args
188 * @see https://developer.mozilla.org/en/DOM/window.setTimeout
189 * @see https://html.spec.whatwg.org/multipage/webappapis.html#timers
191 function setTimeout(callback, opt_delay, var_args) {}