google-closure-compiler 20250412.0.0-nightly → 20250413.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -30
- package/cli.js +3 -4
- package/externs/browser/decorators.js +276 -0
- package/externs/browser/deprecated.js +58 -0
- package/externs/browser/es6_proxy.js +143 -0
- package/externs/browser/fetchapi.js +449 -0
- package/externs/browser/fido.js +94 -0
- package/externs/browser/flash.js +226 -0
- package/externs/browser/gecko_css.js +126 -0
- package/externs/browser/gecko_dom.js +479 -0
- package/externs/browser/gecko_event.js +86 -0
- package/externs/browser/gecko_xml.js +73 -0
- package/externs/browser/google_legacy.js +31 -0
- package/externs/browser/html5.js +6647 -0
- package/externs/browser/ie_css.js +270 -0
- package/externs/browser/ie_dom.js +1232 -0
- package/externs/browser/ie_event.js +310 -0
- package/externs/browser/ie_vml.js +77 -0
- package/externs/browser/intersection_observer.js +178 -0
- package/externs/browser/intl.js +602 -0
- package/externs/browser/iphone.js +204 -0
- package/externs/browser/mediakeys.js +305 -0
- package/externs/browser/mediasource.js +155 -0
- package/externs/browser/nonstandard_anim_timing.js +97 -0
- package/externs/browser/nonstandard_audio.js +82 -0
- package/externs/browser/nonstandard_console.js +75 -0
- package/externs/browser/nonstandard_fileapi.js +1066 -0
- package/externs/browser/nonstandard_indexeddb.js +78 -0
- package/externs/browser/nonstandard_navigation_timing.js +38 -0
- package/externs/browser/nonstandard_selection.js +80 -0
- package/externs/browser/page_visibility.js +28 -0
- package/externs/browser/streamsapi.js +593 -0
- package/externs/browser/svg.js +10016 -0
- package/externs/browser/url.js +202 -0
- package/externs/browser/v8.js +134 -0
- package/externs/browser/w3c_abort.js +89 -0
- package/externs/browser/w3c_anim_timing.js +49 -0
- package/externs/browser/w3c_aria_mixin.js +286 -0
- package/externs/browser/w3c_audio.js +1660 -0
- package/externs/browser/w3c_batterystatus.js +85 -0
- package/externs/browser/w3c_clipboard.js +74 -0
- package/externs/browser/w3c_clipboardevent.js +47 -0
- package/externs/browser/w3c_composition_event.js +93 -0
- package/externs/browser/w3c_css.js +3790 -0
- package/externs/browser/w3c_css3d.js +199 -0
- package/externs/browser/w3c_device_sensor_event.js +122 -0
- package/externs/browser/w3c_dom1.js +1160 -0
- package/externs/browser/w3c_dom2.js +3151 -0
- package/externs/browser/w3c_dom3.js +555 -0
- package/externs/browser/w3c_dom4.js +289 -0
- package/externs/browser/w3c_elementtraversal.js +116 -0
- package/externs/browser/w3c_event.js +607 -0
- package/externs/browser/w3c_event3.js +77 -0
- package/externs/browser/w3c_eventsource.js +110 -0
- package/externs/browser/w3c_fileapi.js +302 -0
- package/externs/browser/w3c_gamepad.js +113 -0
- package/externs/browser/w3c_geolocation.js +130 -0
- package/externs/browser/w3c_geometry1.js +899 -0
- package/externs/browser/w3c_indexeddb.js +771 -0
- package/externs/browser/w3c_keyboardlock.js +47 -0
- package/externs/browser/w3c_mediacapabilities.js +206 -0
- package/externs/browser/w3c_midi.js +301 -0
- package/externs/browser/w3c_navigation.js +72 -0
- package/externs/browser/w3c_navigation_timing.js +437 -0
- package/externs/browser/w3c_netinfo.js +85 -0
- package/externs/browser/w3c_payment_request.js +401 -0
- package/externs/browser/w3c_permissions.js +112 -0
- package/externs/browser/w3c_permissions_policy.js +78 -0
- package/externs/browser/w3c_pointer_events.js +163 -0
- package/externs/browser/w3c_pointerlock.js +63 -0
- package/externs/browser/w3c_range.js +284 -0
- package/externs/browser/w3c_referrer_policy.js +36 -0
- package/externs/browser/w3c_requestidlecallback.js +76 -0
- package/externs/browser/w3c_rtc.js +3882 -0
- package/externs/browser/w3c_screen_orientation.js +53 -0
- package/externs/browser/w3c_screen_wake_lock.js +58 -0
- package/externs/browser/w3c_selection.js +209 -0
- package/externs/browser/w3c_selectors.js +113 -0
- package/externs/browser/w3c_serviceworker.js +739 -0
- package/externs/browser/w3c_speech.js +426 -0
- package/externs/browser/w3c_touch_event.js +296 -0
- package/externs/browser/w3c_trusted_types.js +142 -0
- package/externs/browser/w3c_vibration.js +38 -0
- package/externs/browser/w3c_webcodecs.js +1473 -0
- package/externs/browser/w3c_webcrypto.js +839 -0
- package/externs/browser/w3c_worklets.js +54 -0
- package/externs/browser/w3c_xml.js +533 -0
- package/externs/browser/web_animations.js +452 -0
- package/externs/browser/web_app_manifest.js +50 -0
- package/externs/browser/webassembly.js +223 -0
- package/externs/browser/webgl.js +3409 -0
- package/externs/browser/webgl2.js +2727 -0
- package/externs/browser/webgl2_compute.js +1609 -0
- package/externs/browser/webkit_css.js +456 -0
- package/externs/browser/webkit_dom.js +118 -0
- package/externs/browser/webkit_event.js +46 -0
- package/externs/browser/webkit_notifications.js +258 -0
- package/externs/browser/webkit_usercontent.js +55 -0
- package/externs/browser/weblocksapi.js +125 -0
- package/externs/browser/webstorage.js +171 -0
- package/externs/browser/whatwg_bitmap_context.js +37 -0
- package/externs/browser/whatwg_console.js +152 -0
- package/externs/browser/whatwg_encoding.js +99 -0
- package/externs/browser/whatwg_file_system.js +296 -0
- package/externs/browser/wicg_attribution_reporting.js +42 -0
- package/externs/browser/wicg_compression_stream.js +60 -0
- package/externs/browser/wicg_constructable_stylesheets.js +60 -0
- package/externs/browser/wicg_entries.js +169 -0
- package/externs/browser/wicg_file_handling.js +41 -0
- package/externs/browser/wicg_file_system_access.js +191 -0
- package/externs/browser/wicg_floc.js +41 -0
- package/externs/browser/wicg_ink.js +89 -0
- package/externs/browser/wicg_resizeobserver.js +100 -0
- package/externs/browser/wicg_scheduler.js +62 -0
- package/externs/browser/wicg_trust_token.js +89 -0
- package/externs/browser/wicg_uach.js +100 -0
- package/externs/browser/window.js +190 -0
- package/externs/es3.js +2716 -0
- package/externs/es5.js +284 -0
- package/externs/es6.js +2554 -0
- package/externs/es6_collections.js +323 -0
- package/index.js +13 -16
- package/lib/grunt/index.js +71 -92
- package/lib/grunt/vinyl-stream.js +12 -18
- package/lib/gulp/concat-to-json.js +30 -18
- package/lib/gulp/index.js +174 -181
- package/lib/gulp/json-to-vinyl.js +8 -8
- package/lib/node/{closure-compiler.js → index.js} +27 -51
- package/lib/utils.js +16 -14
- package/package.json +19 -16
- package/lib/logger.js +0 -89
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2008 The Closure Compiler Authors
|
|
3
|
+
*
|
|
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
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
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.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @fileoverview Definitions for all the extensions over
|
|
19
|
+
* W3C's DOM specification by Gecko. This file depends on
|
|
20
|
+
* w3c_dom2.js.
|
|
21
|
+
*
|
|
22
|
+
* When a non-standard extension appears in both Gecko and IE, we put
|
|
23
|
+
* it in gecko_dom.js
|
|
24
|
+
*
|
|
25
|
+
* @externs
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
// TODO: Almost all of it has not been annotated with types.
|
|
29
|
+
|
|
30
|
+
// Gecko DOM;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @see https://developer.mozilla.org/en/Components_object
|
|
34
|
+
*/
|
|
35
|
+
Window.prototype.Components;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @type {Window}
|
|
39
|
+
* @see https://developer.mozilla.org/en/DOM/window.content
|
|
40
|
+
*/
|
|
41
|
+
Window.prototype.content;
|
|
42
|
+
|
|
43
|
+
/** @see https://developer.mozilla.org/en/DOM/window.controllers */
|
|
44
|
+
Window.prototype.controllers;
|
|
45
|
+
|
|
46
|
+
/** @see https://developer.mozilla.org/en/DOM/window.crypto */
|
|
47
|
+
Window.prototype.crypto;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Gets/sets the status bar text for the given window.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @see https://developer.mozilla.org/en/DOM/window.defaultStatus
|
|
53
|
+
*/
|
|
54
|
+
Window.prototype.defaultStatus;
|
|
55
|
+
|
|
56
|
+
/** @see https://developer.mozilla.org/en/DOM/window.dialogArguments */
|
|
57
|
+
Window.prototype.dialogArguments;
|
|
58
|
+
|
|
59
|
+
/** @see https://developer.mozilla.org/en/DOM/window.directories */
|
|
60
|
+
Window.prototype.directories;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @see https://developer.mozilla.org/en/DOM/window.fullScreen
|
|
65
|
+
* @deprecated
|
|
66
|
+
*/
|
|
67
|
+
Window.prototype.fullScreen;
|
|
68
|
+
|
|
69
|
+
/** @see https://developer.mozilla.org/en/DOM/window.pkcs11 */
|
|
70
|
+
Window.prototype.pkcs11;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @see https://developer.mozilla.org/en/DOM/window
|
|
74
|
+
* @deprecated
|
|
75
|
+
*/
|
|
76
|
+
Window.prototype.returnValue;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @see https://developer.mozilla.org/En/DOM/window.scrollMaxX
|
|
81
|
+
*/
|
|
82
|
+
Window.prototype.scrollMaxX;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @see https://developer.mozilla.org/En/DOM/window.scrollMaxY
|
|
87
|
+
*/
|
|
88
|
+
Window.prototype.scrollMaxY;
|
|
89
|
+
|
|
90
|
+
/** @see https://developer.mozilla.org/en/DOM/window.sidebar */
|
|
91
|
+
Window.prototype.sidebar;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @see https://developer.mozilla.org/en/DOM/window.back
|
|
95
|
+
* @return {undefined}
|
|
96
|
+
* @deprecated
|
|
97
|
+
*/
|
|
98
|
+
Window.prototype.back = function() {};
|
|
99
|
+
|
|
100
|
+
/** @deprecated */
|
|
101
|
+
Window.prototype.captureEvents;
|
|
102
|
+
|
|
103
|
+
/**@see https://developer.mozilla.org/en/DOM/window.find */
|
|
104
|
+
Window.prototype.find;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @see https://developer.mozilla.org/en/DOM/window.forward
|
|
108
|
+
* @return {undefined}
|
|
109
|
+
* @deprecated
|
|
110
|
+
*/
|
|
111
|
+
Window.prototype.forward = function() {};
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @see https://developer.mozilla.org/en/DOM/window.getAttention
|
|
115
|
+
* @return {undefined}
|
|
116
|
+
* @deprecated
|
|
117
|
+
*/
|
|
118
|
+
Window.prototype.getAttention = function() {};
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @see https://developer.mozilla.org/en/DOM/window.home
|
|
122
|
+
* @return {undefined}
|
|
123
|
+
* @deprecated
|
|
124
|
+
*/
|
|
125
|
+
Window.prototype.home = function() {};
|
|
126
|
+
|
|
127
|
+
/** @deprecated */
|
|
128
|
+
Window.prototype.openDialog;
|
|
129
|
+
/** @deprecated */
|
|
130
|
+
Window.prototype.releaseEvents;
|
|
131
|
+
Window.prototype.scrollByLines;
|
|
132
|
+
Window.prototype.scrollByPages;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @param {string} uri
|
|
136
|
+
* @param {?=} opt_arguments
|
|
137
|
+
* @param {string=} opt_options
|
|
138
|
+
* @see https://developer.mozilla.org/en/DOM/window.showModalDialog
|
|
139
|
+
* @deprecated
|
|
140
|
+
*/
|
|
141
|
+
Window.prototype.showModalDialog;
|
|
142
|
+
|
|
143
|
+
Window.prototype.sizeToContent;
|
|
144
|
+
|
|
145
|
+
Window.prototype.updateCommands;
|
|
146
|
+
|
|
147
|
+
// properties of Document
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @see https://developer.mozilla.org/en/DOM/document.alinkColor
|
|
151
|
+
* @type {string}
|
|
152
|
+
* @deprecated
|
|
153
|
+
*/
|
|
154
|
+
Document.prototype.alinkColor;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @see https://developer.mozilla.org/en/DOM/document.anchors
|
|
158
|
+
* @type {HTMLCollection<!HTMLAnchorElement>}
|
|
159
|
+
* @deprecated
|
|
160
|
+
*/
|
|
161
|
+
Document.prototype.anchors;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @see https://developer.mozilla.org/en/DOM/document.applets
|
|
165
|
+
* @type {HTMLCollection<!HTMLAppletElement>}
|
|
166
|
+
* @deprecated
|
|
167
|
+
*/
|
|
168
|
+
Document.prototype.applets;
|
|
169
|
+
/** @type {?string} */ Document.prototype.baseURI;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @see https://developer.mozilla.org/en/DOM/document.bgColor
|
|
173
|
+
* @type {string}
|
|
174
|
+
* @deprecated
|
|
175
|
+
*/
|
|
176
|
+
Document.prototype.bgColor;
|
|
177
|
+
|
|
178
|
+
/** @type {HTMLBodyElement} */ Document.prototype.body;
|
|
179
|
+
|
|
180
|
+
/** @type {string} */ Document.prototype.cookie;
|
|
181
|
+
|
|
182
|
+
/** @deprecated */
|
|
183
|
+
Document.prototype.documentURIObject;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @see https://developer.mozilla.org/en/DOM/document.domain
|
|
187
|
+
* @type {string}
|
|
188
|
+
* @deprecated
|
|
189
|
+
*/
|
|
190
|
+
Document.prototype.domain;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @see https://developer.mozilla.org/en/DOM/document.embeds
|
|
194
|
+
* @type {HTMLCollection<!HTMLEmbedElement>}
|
|
195
|
+
*/
|
|
196
|
+
Document.prototype.embeds;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* @see https://developer.mozilla.org/en/DOM/document.fgColor
|
|
200
|
+
* @type {string}
|
|
201
|
+
*/
|
|
202
|
+
Document.prototype.fgColor;
|
|
203
|
+
|
|
204
|
+
/** @type {Element} */ Document.prototype.firstChild;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* @see https://developer.mozilla.org/en/DOM/document.forms
|
|
208
|
+
* @type {HTMLCollection<!HTMLFormElement>}
|
|
209
|
+
*/
|
|
210
|
+
Document.prototype.forms;
|
|
211
|
+
|
|
212
|
+
/** @type {HTMLCollection<!HTMLImageElement>} */
|
|
213
|
+
Document.prototype.images;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* @type {string}
|
|
217
|
+
* @see https://developer.mozilla.org/en/DOM/document.lastModified
|
|
218
|
+
*/
|
|
219
|
+
Document.prototype.lastModified;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @type {string}
|
|
223
|
+
* @see https://developer.mozilla.org/en/DOM/document.linkColor
|
|
224
|
+
* @deprecated
|
|
225
|
+
*/
|
|
226
|
+
Document.prototype.linkColor;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @see https://developer.mozilla.org/en/DOM/document.links
|
|
230
|
+
* @type {HTMLCollection<(!HTMLAreaElement|!HTMLAnchorElement)>}
|
|
231
|
+
*/
|
|
232
|
+
Document.prototype.links;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* @type {!Location}
|
|
236
|
+
* @implicitCast
|
|
237
|
+
*/
|
|
238
|
+
Document.prototype.location;
|
|
239
|
+
|
|
240
|
+
Document.prototype.namespaceURI;
|
|
241
|
+
Document.prototype.nodePrincipal;
|
|
242
|
+
Document.prototype.plugins;
|
|
243
|
+
Document.prototype.popupNode;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @type {string}
|
|
247
|
+
* @see https://developer.mozilla.org/en/DOM/document.referrer
|
|
248
|
+
*/
|
|
249
|
+
Document.prototype.referrer;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @type {StyleSheetList}
|
|
253
|
+
* @see https://developer.mozilla.org/en/DOM/document.styleSheets
|
|
254
|
+
*/
|
|
255
|
+
Document.prototype.styleSheets;
|
|
256
|
+
|
|
257
|
+
/** @type {?string} */ Document.prototype.title;
|
|
258
|
+
Document.prototype.tooltipNode;
|
|
259
|
+
/** @type {string} */ Document.prototype.URL;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* @type {string}
|
|
263
|
+
* @see https://developer.mozilla.org/en/DOM/document.vlinkColor
|
|
264
|
+
* @deprecated
|
|
265
|
+
*/
|
|
266
|
+
Document.prototype.vlinkColor;
|
|
267
|
+
|
|
268
|
+
/** @type {number} */ Document.prototype.width;
|
|
269
|
+
|
|
270
|
+
// Methods of Document
|
|
271
|
+
/**
|
|
272
|
+
* @see https://developer.mozilla.org/en/DOM/document.clear
|
|
273
|
+
* @return {undefined}
|
|
274
|
+
* @deprecated
|
|
275
|
+
*/
|
|
276
|
+
Document.prototype.clear = function() {};
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @param {string} type
|
|
280
|
+
* @return {Event}
|
|
281
|
+
*/
|
|
282
|
+
Document.prototype.createEvent = function(type) {};
|
|
283
|
+
Document.prototype.createNSResolver;
|
|
284
|
+
/** @return {Range} */ Document.prototype.createRange = function() {};
|
|
285
|
+
Document.prototype.createTreeWalker;
|
|
286
|
+
|
|
287
|
+
Document.prototype.evaluate;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* @param {string} commandName
|
|
291
|
+
* @param {?boolean=} opt_showUi
|
|
292
|
+
* @param {*=} opt_value
|
|
293
|
+
* @see https://developer.mozilla.org/en/Rich-Text_Editing_in_Mozilla#Executing_Commands
|
|
294
|
+
* @deprecated
|
|
295
|
+
*/
|
|
296
|
+
Document.prototype.execCommand;
|
|
297
|
+
|
|
298
|
+
/** @deprecated */
|
|
299
|
+
Document.prototype.loadOverlay;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* @see https://developer.mozilla.org/en/Midas
|
|
303
|
+
* @see http://msdn.microsoft.com/en-us/library/ms536676(VS.85).aspx
|
|
304
|
+
* @deprecated
|
|
305
|
+
*/
|
|
306
|
+
Document.prototype.queryCommandEnabled;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* @see https://developer.mozilla.org/en/Midas
|
|
310
|
+
* @see http://msdn.microsoft.com/en-us/library/ms536678(VS.85).aspx
|
|
311
|
+
* @deprecated
|
|
312
|
+
*/
|
|
313
|
+
Document.prototype.queryCommandIndeterm;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* @see https://developer.mozilla.org/en/Midas
|
|
317
|
+
* @see http://msdn.microsoft.com/en-us/library/ms536679(VS.85).aspx
|
|
318
|
+
* @deprecated
|
|
319
|
+
*/
|
|
320
|
+
Document.prototype.queryCommandState;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* @see https://developer.mozilla.org/en/DOM/document.queryCommandSupported
|
|
324
|
+
* @see http://msdn.microsoft.com/en-us/library/ms536681(VS.85).aspx
|
|
325
|
+
* @param {string} command
|
|
326
|
+
* @return {?} Implementation-specific.
|
|
327
|
+
* @deprecated
|
|
328
|
+
*/
|
|
329
|
+
Document.prototype.queryCommandSupported;
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* @see https://developer.mozilla.org/en/Midas
|
|
333
|
+
* @see http://msdn.microsoft.com/en-us/library/ms536683(VS.85).aspx
|
|
334
|
+
* @deprecated
|
|
335
|
+
*/
|
|
336
|
+
Document.prototype.queryCommandValue;
|
|
337
|
+
|
|
338
|
+
// online and offline handlers belong to window, not document
|
|
339
|
+
/** @deprecated */
|
|
340
|
+
Document.prototype.ononline;
|
|
341
|
+
/** @deprecated */
|
|
342
|
+
Document.prototype.onoffline;
|
|
343
|
+
|
|
344
|
+
// XUL
|
|
345
|
+
/**
|
|
346
|
+
* @see http://developer.mozilla.org/en/DOM/document.getBoxObjectFor
|
|
347
|
+
* @return {BoxObject}
|
|
348
|
+
* @nosideeffects
|
|
349
|
+
* @deprecated
|
|
350
|
+
*/
|
|
351
|
+
Document.prototype.getBoxObjectFor = function(element) {};
|
|
352
|
+
|
|
353
|
+
// From:
|
|
354
|
+
// http://lxr.mozilla.org/mozilla1.8/source/dom/public/idl/range/nsIDOMNSRange.idl
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* @param {Node} n
|
|
358
|
+
* @return {number}
|
|
359
|
+
* @nosideeffects
|
|
360
|
+
* @deprecated
|
|
361
|
+
*/
|
|
362
|
+
Range.prototype.compareNode;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* @type {!NodeList<!Element>}
|
|
366
|
+
* @see https://developer.mozilla.org/en/DOM/element.children
|
|
367
|
+
*/
|
|
368
|
+
Element.prototype.children;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Firebug sets this property on elements it is inserting into the DOM.
|
|
372
|
+
* @type {boolean}
|
|
373
|
+
*/
|
|
374
|
+
Element.prototype.firebugIgnore;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Note: According to the spec, name is defined on specific types of
|
|
378
|
+
* HTMLElements, rather than on Node, Element, or HTMLElement directly.
|
|
379
|
+
* Ignore this.
|
|
380
|
+
* @type {string}
|
|
381
|
+
*/
|
|
382
|
+
Element.prototype.name;
|
|
383
|
+
|
|
384
|
+
Element.prototype.nodePrincipal;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* @type {!CSSStyleDeclaration}
|
|
388
|
+
* This belongs on HTMLElement rather than Element, but that
|
|
389
|
+
* breaks a lot.
|
|
390
|
+
* TODO(rdcronin): Remove this declaration once the breakage is fixed.
|
|
391
|
+
*/
|
|
392
|
+
Element.prototype.style;
|
|
393
|
+
|
|
394
|
+
/** @return {undefined} */
|
|
395
|
+
Element.prototype.click = function() {};
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* @type {string}
|
|
399
|
+
* @see https://developer.mozilla.org/en/Navigator.buildID
|
|
400
|
+
*/
|
|
401
|
+
Navigator.prototype.buildID;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* @type {string}
|
|
405
|
+
* @see https://developer.mozilla.org/en/Navigator.oscpu
|
|
406
|
+
* @deprecated
|
|
407
|
+
*/
|
|
408
|
+
Navigator.prototype.oscpu;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* @type {string}
|
|
412
|
+
* @see https://developer.mozilla.org/en/Navigator.productSub
|
|
413
|
+
* @deprecated
|
|
414
|
+
*/
|
|
415
|
+
Navigator.prototype.productSub;
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* @type {string}
|
|
419
|
+
* @see https://developer.mozilla.org/en/Navigator.securityPolicy
|
|
420
|
+
* @deprecated
|
|
421
|
+
*/
|
|
422
|
+
Navigator.prototype.securityPolicy;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* @param {!URL|string} url
|
|
426
|
+
* @param {ArrayBufferView|Blob|string|FormData|URLSearchParams=} opt_data
|
|
427
|
+
* @return {boolean}
|
|
428
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/navigator.sendBeacon
|
|
429
|
+
*/
|
|
430
|
+
Navigator.prototype.sendBeacon = function(url, opt_data) {};
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* @type {string}
|
|
434
|
+
* @see https://developer.mozilla.org/en/Navigator.vendor
|
|
435
|
+
* @deprecated
|
|
436
|
+
*/
|
|
437
|
+
Navigator.prototype.vendor;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* @type {string}
|
|
441
|
+
* @see https://developer.mozilla.org/en/Navigator.vendorSub
|
|
442
|
+
* @deprecated
|
|
443
|
+
*/
|
|
444
|
+
Navigator.prototype.vendorSub;
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* @constructor
|
|
449
|
+
* @deprecated
|
|
450
|
+
*/
|
|
451
|
+
function BoxObject() {}
|
|
452
|
+
|
|
453
|
+
/** @type {Element} */
|
|
454
|
+
BoxObject.prototype.element;
|
|
455
|
+
|
|
456
|
+
/** @type {number} */
|
|
457
|
+
BoxObject.prototype.screenX;
|
|
458
|
+
|
|
459
|
+
/** @type {number} */
|
|
460
|
+
BoxObject.prototype.screenY;
|
|
461
|
+
|
|
462
|
+
/** @type {number} */
|
|
463
|
+
BoxObject.prototype.x;
|
|
464
|
+
|
|
465
|
+
/** @type {number} */
|
|
466
|
+
BoxObject.prototype.y;
|
|
467
|
+
|
|
468
|
+
/** @type {number} */
|
|
469
|
+
BoxObject.prototype.width;
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* @param {Element} element
|
|
474
|
+
* @param {?string=} pseudoElt
|
|
475
|
+
* @return {?CSSStyleDeclaration}
|
|
476
|
+
* @nosideeffects
|
|
477
|
+
* @see https://bugzilla.mozilla.org/show_bug.cgi?id=548397
|
|
478
|
+
*/
|
|
479
|
+
function getComputedStyle(element, pseudoElt) {}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2008 The Closure Compiler Authors
|
|
3
|
+
*
|
|
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
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
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.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @fileoverview Definitions for all the extensions over
|
|
19
|
+
* W3C's event specification by Gecko. This file depends on
|
|
20
|
+
* w3c_event.js.
|
|
21
|
+
*
|
|
22
|
+
* @externs
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
// TODO: Almost all of it has not been annotated with types.
|
|
26
|
+
|
|
27
|
+
/** @const {number} */ Event.prototype.HORIZONTAL_AXIS;
|
|
28
|
+
/** @const {number} */ Event.prototype.VERTICAL_AXIS;
|
|
29
|
+
/** @type {boolean} */ Event.prototype.altKey;
|
|
30
|
+
/** @type {number} */ Event.prototype.axis;
|
|
31
|
+
/** @type {number} */ Event.prototype.button;
|
|
32
|
+
/** @type {number} */ Event.prototype.charCode;
|
|
33
|
+
/** @type {number} */ Event.prototype.clientX;
|
|
34
|
+
/** @type {number} */ Event.prototype.clientY;
|
|
35
|
+
/** @type {boolean} */ Event.prototype.ctrlKey;
|
|
36
|
+
/** @type {EventTarget} */ Event.prototype.explicitOriginalTarget;
|
|
37
|
+
/** @type {boolean} */ Event.prototype.isChar;
|
|
38
|
+
/** @type {boolean} */ Event.prototype.isTrusted;
|
|
39
|
+
/** @type {number} */ Event.prototype.keyCode;
|
|
40
|
+
/** @type {number} */ Event.prototype.layerX;
|
|
41
|
+
/** @type {number} */ Event.prototype.layerY;
|
|
42
|
+
/** @type {boolean} */ Event.prototype.metaKey;
|
|
43
|
+
/** @type {EventTarget} */ Event.prototype.originalTarget;
|
|
44
|
+
/** @type {number} */ Event.prototype.pageX;
|
|
45
|
+
/** @type {number} */ Event.prototype.pageY;
|
|
46
|
+
/** @type {EventTarget|undefined} */ Event.prototype.relatedTarget;
|
|
47
|
+
/** @type {number} */ Event.prototype.screenX;
|
|
48
|
+
/** @type {number} */ Event.prototype.screenY;
|
|
49
|
+
/** @type {boolean} */ Event.prototype.shiftKey;
|
|
50
|
+
/** @type {Window} */ Event.prototype.view;
|
|
51
|
+
/** @type {number} */ Event.prototype.which;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @deprecated cancelBubble is obsolete and is no-op in modern browsers. Use
|
|
56
|
+
* stopPropagation() instead.
|
|
57
|
+
*/
|
|
58
|
+
Event.prototype.cancelBubble;
|
|
59
|
+
|
|
60
|
+
/** @constructor */ function nsIDOMPageTransitionEvent() {}
|
|
61
|
+
/** @type {boolean} */ nsIDOMPageTransitionEvent.prototype.persisted;
|
|
62
|
+
|
|
63
|
+
//Methods
|
|
64
|
+
Event.prototype.initKeyEvent;
|
|
65
|
+
/**
|
|
66
|
+
* @param {string} typeArg
|
|
67
|
+
* @param {boolean=} canBubbleArg
|
|
68
|
+
* @param {boolean=} cancelableArg
|
|
69
|
+
* @param {?Window=} viewArg
|
|
70
|
+
* @param {?number=} detailArg
|
|
71
|
+
* @param {number=} screenXArg
|
|
72
|
+
* @param {number=} screenYArg
|
|
73
|
+
* @param {number=} clientXArg
|
|
74
|
+
* @param {number=} clientYArg
|
|
75
|
+
* @param {boolean=} ctrlKeyArg
|
|
76
|
+
* @param {boolean=} altKeyArg
|
|
77
|
+
* @param {boolean=} shiftKeyArg
|
|
78
|
+
* @param {boolean=} metaKeyArg
|
|
79
|
+
* @param {?number=} buttonArg
|
|
80
|
+
* @param {?EventTarget=} relatedTargetArg
|
|
81
|
+
*/
|
|
82
|
+
Event.prototype.initMouseEvent = function(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, relatedTargetArg) {};
|
|
83
|
+
Event.prototype.initUIEvent;
|
|
84
|
+
Event.prototype.initMessageEvent;
|
|
85
|
+
Event.prototype.preventBubble;
|
|
86
|
+
Event.prototype.preventCapture;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2008 The Closure Compiler Authors
|
|
3
|
+
*
|
|
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
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
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.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @fileoverview Definitions for all the extensions over some of the
|
|
19
|
+
* W3C's XML specifications by Gecko. This file depends on
|
|
20
|
+
* w3c_xml.js. The whole file has been fully type annotated.
|
|
21
|
+
*
|
|
22
|
+
* @externs
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* XMLSerializer can be used to convert DOM subtree or DOM document into text.
|
|
27
|
+
* XMLSerializer is available to unprivileged scripts.
|
|
28
|
+
*
|
|
29
|
+
* XMLSerializer is mainly useful for applications and extensions based on
|
|
30
|
+
* Mozilla platform. While it's available to web pages, it's not part of any
|
|
31
|
+
* standard and level of support in other browsers is unknown.
|
|
32
|
+
*
|
|
33
|
+
* @constructor
|
|
34
|
+
*/
|
|
35
|
+
function XMLSerializer() {}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Returns the serialized subtree in the form of a string
|
|
39
|
+
* @param {Node} subtree
|
|
40
|
+
* @return {string}
|
|
41
|
+
*/
|
|
42
|
+
XMLSerializer.prototype.serializeToString = function(subtree) {};
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The subtree rooted by the specified element is serialized to a byte stream
|
|
46
|
+
* using the character set specified.
|
|
47
|
+
*
|
|
48
|
+
* @param {Node} subtree
|
|
49
|
+
* @return {Object}
|
|
50
|
+
*/
|
|
51
|
+
XMLSerializer.prototype.serializeToStream = function(subtree) {};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* DOMParser is mainly useful for applications and extensions based on Mozilla
|
|
55
|
+
* platform. While it's available to web pages, it's not part of any standard and
|
|
56
|
+
* level of support in other browsers is unknown.
|
|
57
|
+
*
|
|
58
|
+
* @constructor
|
|
59
|
+
*/
|
|
60
|
+
function DOMParser() {}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The string passed in is parsed into a DOM document.
|
|
64
|
+
*
|
|
65
|
+
* Example:
|
|
66
|
+
* var parser = new DOMParser();
|
|
67
|
+
* var doc = parser.parseFromString(aStr, "text/xml");
|
|
68
|
+
*
|
|
69
|
+
* @param {!TrustedHTML|string} src The UTF16 string to be parsed.
|
|
70
|
+
* @param {string} type The content type of the string.
|
|
71
|
+
* @return {!Document}
|
|
72
|
+
*/
|
|
73
|
+
DOMParser.prototype.parseFromString = function(src, type) {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2010 The Closure Compiler Authors
|
|
3
|
+
*
|
|
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
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
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.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @fileoverview Declaration of the type level google namespace.
|
|
19
|
+
* @externs
|
|
20
|
+
* @author nicksantos@google.com (Nick Santos)
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Suppresses the compiler warning when multiple externs files declare the
|
|
25
|
+
* google namespace.
|
|
26
|
+
* @suppress {duplicate,strictMissingProperties}
|
|
27
|
+
* NOTE: This definition should be marked \@const, and when it is we can remove
|
|
28
|
+
* the "strictMissingProperties" suppression.
|
|
29
|
+
*/
|
|
30
|
+
// TODO(nicksantos): Consolidate to one google namespace declaration.
|
|
31
|
+
var google = {};
|