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,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2020 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 the Worklets API.
|
|
19
|
+
* This file is based on the W3C Editor's Draft 07 April 2020.
|
|
20
|
+
* @see https://drafts.css-houdini.org/worklets/
|
|
21
|
+
*
|
|
22
|
+
* @externs
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @interface
|
|
27
|
+
* @see https://drafts.css-houdini.org/worklets/#the-global-scope
|
|
28
|
+
*/
|
|
29
|
+
function WorkletGlobalScope() {}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @record
|
|
33
|
+
* @see https://drafts.css-houdini.org/worklets/#dictdef-workletoptions
|
|
34
|
+
*/
|
|
35
|
+
function WorkletOptions() {};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @type {!RequestCredentials}
|
|
39
|
+
* See https://fetch.spec.whatwg.org/#requestcredentials for valid values.
|
|
40
|
+
*/
|
|
41
|
+
WorkletOptions.prototype.credentials;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @interface
|
|
45
|
+
* @see https://drafts.css-houdini.org/worklets/#worklet-section
|
|
46
|
+
*/
|
|
47
|
+
function Worklet() {}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @param {!URL|string} moduleURL
|
|
51
|
+
* @param {!WorkletOptions=} options
|
|
52
|
+
* @return {!Promise<void>}
|
|
53
|
+
*/
|
|
54
|
+
Worklet.prototype.addModule = function(moduleURL, options) {};
|
|
@@ -0,0 +1,533 @@
|
|
|
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 W3C's XML related specifications.
|
|
19
|
+
* This file depends on w3c_dom2.js.
|
|
20
|
+
* The whole file has been fully type annotated.
|
|
21
|
+
*
|
|
22
|
+
* Provides the XML standards from W3C.
|
|
23
|
+
* Includes:
|
|
24
|
+
* XPath - Fully type annotated
|
|
25
|
+
* XMLHttpRequest - Fully type annotated
|
|
26
|
+
*
|
|
27
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html
|
|
28
|
+
* @see https://xhr.spec.whatwg.org/
|
|
29
|
+
*
|
|
30
|
+
* @externs
|
|
31
|
+
* @author stevey@google.com (Steve Yegge)
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @constructor
|
|
37
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathException
|
|
38
|
+
*/
|
|
39
|
+
function XPathException() {}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @const {number}
|
|
43
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#INVALID_EXPRESSION_ERR
|
|
44
|
+
*/
|
|
45
|
+
XPathException.INVALID_EXPRESSION_ERR;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @const {number}
|
|
49
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#TYPE_ERR
|
|
50
|
+
*/
|
|
51
|
+
XPathException.TYPE_ERR;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#
|
|
56
|
+
*/
|
|
57
|
+
XPathException.prototype.code;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @constructor
|
|
61
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathEvaluator
|
|
62
|
+
*/
|
|
63
|
+
function XPathEvaluator() {}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @param {string} expr
|
|
67
|
+
* @param {?XPathNSResolver=} opt_resolver
|
|
68
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathEvaluator-createExpression
|
|
69
|
+
* @throws XPathException
|
|
70
|
+
* @throws DOMException
|
|
71
|
+
* @return {undefined}
|
|
72
|
+
*/
|
|
73
|
+
XPathEvaluator.prototype.createExpression = function(expr, opt_resolver) {};
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @param {Node} nodeResolver
|
|
77
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathEvaluator-createNSResolver
|
|
78
|
+
* @return {undefined}
|
|
79
|
+
*/
|
|
80
|
+
XPathEvaluator.prototype.createNSResolver = function(nodeResolver) {};
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @param {string} expr
|
|
84
|
+
* @param {Node} contextNode
|
|
85
|
+
* @param {?XPathNSResolver=} opt_resolver
|
|
86
|
+
* @param {?number=} opt_type
|
|
87
|
+
* @param {*=} opt_result
|
|
88
|
+
* @return {XPathResult}
|
|
89
|
+
* @throws XPathException
|
|
90
|
+
* @throws DOMException
|
|
91
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathEvaluator-evaluate
|
|
92
|
+
*/
|
|
93
|
+
XPathEvaluator.prototype.evaluate = function(expr, contextNode, opt_resolver,
|
|
94
|
+
opt_type, opt_result) {};
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @constructor
|
|
99
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathExpression
|
|
100
|
+
*/
|
|
101
|
+
function XPathExpression() {}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @param {Node} contextNode
|
|
105
|
+
* @param {number=} opt_type
|
|
106
|
+
* @param {*=} opt_result
|
|
107
|
+
* @return {*}
|
|
108
|
+
* @throws XPathException
|
|
109
|
+
* @throws DOMException
|
|
110
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathExpression-evaluate
|
|
111
|
+
*/
|
|
112
|
+
XPathExpression.prototype.evaluate = function(contextNode, opt_type,
|
|
113
|
+
opt_result) {};
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @constructor
|
|
118
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathNSResolver
|
|
119
|
+
*/
|
|
120
|
+
function XPathNSResolver() {}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @param {string} prefix
|
|
124
|
+
* @return {?string}
|
|
125
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathNSResolver-lookupNamespaceURI
|
|
126
|
+
*/
|
|
127
|
+
XPathNSResolver.prototype.lookupNamespaceURI = function(prefix) {};
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* From http://www.w3.org/TR/xpath
|
|
131
|
+
*
|
|
132
|
+
* XPath is a language for addressing parts of an XML document, designed to be
|
|
133
|
+
* used by both XSLT and XPointer.
|
|
134
|
+
*
|
|
135
|
+
* @constructor
|
|
136
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult
|
|
137
|
+
*/
|
|
138
|
+
function XPathResult() {}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @type {boolean} {@see XPathException.TYPE_ERR}
|
|
142
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-booleanValue
|
|
143
|
+
*/
|
|
144
|
+
XPathResult.prototype.booleanValue;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @type {boolean} {@see XPathException.TYPE_ERR}
|
|
148
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-invalid-iterator-state
|
|
149
|
+
*/
|
|
150
|
+
XPathResult.prototype.invalidInteratorState;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @type {number}
|
|
154
|
+
* @throws XPathException {@see XPathException.TYPE_ERR}
|
|
155
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-numberValue
|
|
156
|
+
*/
|
|
157
|
+
XPathResult.prototype.numberValue;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @type {number}
|
|
161
|
+
* @throws XPathException {@see XPathException.TYPE_ERR}
|
|
162
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-resultType
|
|
163
|
+
*/
|
|
164
|
+
XPathResult.prototype.resultType;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @type {Node}
|
|
168
|
+
* @throws XPathException {@see XPathException.TYPE_ERR}
|
|
169
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-singleNodeValue
|
|
170
|
+
*/
|
|
171
|
+
XPathResult.prototype.singleNodeValue;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @type {number}
|
|
175
|
+
* @throws XPathException {@see XPathException.TYPE_ERR}
|
|
176
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-snapshot-length
|
|
177
|
+
*/
|
|
178
|
+
XPathResult.prototype.snapshotLength;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @type {string}
|
|
182
|
+
* @throws XPathException {@see XPathException.TYPE_ERR}
|
|
183
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-stringValue
|
|
184
|
+
*/
|
|
185
|
+
XPathResult.prototype.stringValue;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* @return {Node}
|
|
189
|
+
* @throws XPathException {@see XPathException.TYPE_ERR}
|
|
190
|
+
* @throws DOMException {@see DOMException.INVALID_STATE_ERR}
|
|
191
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-iterateNext
|
|
192
|
+
*/
|
|
193
|
+
XPathResult.prototype.iterateNext = function() {};
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @param {number} index
|
|
197
|
+
* @return {Node}
|
|
198
|
+
* @throws XPathException
|
|
199
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-snapshotItem
|
|
200
|
+
*/
|
|
201
|
+
XPathResult.prototype.snapshotItem = function(index) {};
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @const {number}
|
|
205
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-ANY-TYPE
|
|
206
|
+
*/
|
|
207
|
+
XPathResult.ANY_TYPE;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @const {number}
|
|
211
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-NUMBER-TYPE
|
|
212
|
+
*/
|
|
213
|
+
XPathResult.NUMBER_TYPE;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* @const {number}
|
|
217
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-STRING-TYPE
|
|
218
|
+
*/
|
|
219
|
+
XPathResult.STRING_TYPE;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @const {number}
|
|
223
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-BOOLEAN-TYPE
|
|
224
|
+
*/
|
|
225
|
+
XPathResult.BOOLEAN_TYPE;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @const {number}
|
|
229
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-UNORDERED-NODE-ITERATOR-TYPE
|
|
230
|
+
*/
|
|
231
|
+
XPathResult.UNORDERED_NODE_ITERATOR_TYPE;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* @const {number}
|
|
235
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-ORDERED-NODE-ITERATOR-TYPE
|
|
236
|
+
*/
|
|
237
|
+
XPathResult.ORDERED_NODE_ITERATOR_TYPE;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* @const {number}
|
|
241
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-UNORDERED-NODE-SNAPSHOT-TYPE
|
|
242
|
+
*/
|
|
243
|
+
XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @const {number}
|
|
247
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-ORDERED-NODE-SNAPSHOT-TYPE
|
|
248
|
+
*/
|
|
249
|
+
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @const {number}
|
|
253
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-ANY-UNORDERED-NODE-TYPE
|
|
254
|
+
*/
|
|
255
|
+
XPathResult.ANY_UNORDERED_NODE_TYPE;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @const {number}
|
|
259
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-FIRST-ORDERED-NODE-TYPE
|
|
260
|
+
*/
|
|
261
|
+
XPathResult.FIRST_ORDERED_NODE_TYPE;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @constructor
|
|
265
|
+
* @extends {Node}
|
|
266
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathNamespace
|
|
267
|
+
*/
|
|
268
|
+
function XPathNamespace() {}
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* @type {Element}
|
|
272
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathNamespace-ownerElement
|
|
273
|
+
*/
|
|
274
|
+
XPathNamespace.prototype.ownerElement;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* @const {number}
|
|
278
|
+
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPATH_NAMESPACE_NODE
|
|
279
|
+
*/
|
|
280
|
+
XPathNamespace.XPATH_NAMESPACE_NODE;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* From https://xhr.spec.whatwg.org/#xmlhttprequest
|
|
284
|
+
*
|
|
285
|
+
* (Draft)
|
|
286
|
+
*
|
|
287
|
+
* The XMLHttpRequest Object specification defines an API that provides
|
|
288
|
+
* scripted client functionality for transferring data between a client and a
|
|
289
|
+
* server.
|
|
290
|
+
*
|
|
291
|
+
* @constructor
|
|
292
|
+
* @implements {EventTarget}
|
|
293
|
+
* @see https://xhr.spec.whatwg.org/#xmlhttprequest
|
|
294
|
+
*/
|
|
295
|
+
function XMLHttpRequest() {}
|
|
296
|
+
|
|
297
|
+
/** @override */
|
|
298
|
+
XMLHttpRequest.prototype.addEventListener = function(
|
|
299
|
+
type, listener, opt_options) {};
|
|
300
|
+
|
|
301
|
+
/** @override */
|
|
302
|
+
XMLHttpRequest.prototype.removeEventListener = function(
|
|
303
|
+
type, listener, opt_options) {};
|
|
304
|
+
|
|
305
|
+
/** @override */
|
|
306
|
+
XMLHttpRequest.prototype.dispatchEvent = function(evt) {};
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* @param {string} method
|
|
310
|
+
* @param {!URL|string} url
|
|
311
|
+
* @param {?boolean=} opt_async
|
|
312
|
+
* @param {?string=} opt_user
|
|
313
|
+
* @param {?string=} opt_password
|
|
314
|
+
* @return {undefined}
|
|
315
|
+
* @see https://xhr.spec.whatwg.org/#the-open()-method
|
|
316
|
+
*/
|
|
317
|
+
XMLHttpRequest.prototype.open = function(method, url, opt_async, opt_user,
|
|
318
|
+
opt_password) {};
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* @param {string} header
|
|
322
|
+
* @param {string} value
|
|
323
|
+
* @return {undefined}
|
|
324
|
+
* @see https://xhr.spec.whatwg.org/#the-setrequestheader()-method
|
|
325
|
+
*/
|
|
326
|
+
XMLHttpRequest.prototype.setRequestHeader = function(header, value) {};
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* @param {ArrayBuffer|ArrayBufferView|Blob|Document|FormData|string=} opt_data
|
|
330
|
+
* @return {undefined}
|
|
331
|
+
* @see https://xhr.spec.whatwg.org/#the-send()-method
|
|
332
|
+
*/
|
|
333
|
+
XMLHttpRequest.prototype.send = function(opt_data) {};
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* @return {undefined}
|
|
337
|
+
* @see https://xhr.spec.whatwg.org/#the-abort()-method
|
|
338
|
+
*/
|
|
339
|
+
XMLHttpRequest.prototype.abort = function() {};
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @return {string}
|
|
343
|
+
* @see https://xhr.spec.whatwg.org/#the-getallresponseheaders()-method
|
|
344
|
+
*/
|
|
345
|
+
XMLHttpRequest.prototype.getAllResponseHeaders = function() {};
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* @param {string} header
|
|
349
|
+
* @return {?string}
|
|
350
|
+
* @see https://xhr.spec.whatwg.org/#the-getresponseheader()-method
|
|
351
|
+
*/
|
|
352
|
+
XMLHttpRequest.prototype.getResponseHeader = function(header) {};
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* @type {string}
|
|
356
|
+
* @see https://xhr.spec.whatwg.org/#the-responsetext-attribute
|
|
357
|
+
*/
|
|
358
|
+
XMLHttpRequest.prototype.responseText;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* This is not supported in any IE browser (as of August 2016).
|
|
362
|
+
* @type {string}
|
|
363
|
+
* @see https://xhr.spec.whatwg.org/#the-responseurl-attribute
|
|
364
|
+
*/
|
|
365
|
+
XMLHttpRequest.prototype.responseURL;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* @type {Document}
|
|
369
|
+
* @see https://xhr.spec.whatwg.org/#the-responsexml-attribute
|
|
370
|
+
*/
|
|
371
|
+
XMLHttpRequest.prototype.responseXML;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* @type {number}
|
|
375
|
+
* @see https://xhr.spec.whatwg.org/#dom-xmlhttprequest-readystate
|
|
376
|
+
*/
|
|
377
|
+
XMLHttpRequest.prototype.readyState;
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* @type {number}
|
|
381
|
+
* @see https://xhr.spec.whatwg.org/#the-status-attribute
|
|
382
|
+
*/
|
|
383
|
+
XMLHttpRequest.prototype.status;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* @type {string}
|
|
387
|
+
* @see https://xhr.spec.whatwg.org/#the-statustext-attribute
|
|
388
|
+
*/
|
|
389
|
+
XMLHttpRequest.prototype.statusText;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* @type {number}
|
|
393
|
+
* @see https://xhr.spec.whatwg.org/#the-timeout-attribute
|
|
394
|
+
*/
|
|
395
|
+
XMLHttpRequest.prototype.timeout;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* @type {?function(!Event)}
|
|
399
|
+
* @see https://xhr.spec.whatwg.org/#event-handlers
|
|
400
|
+
*/
|
|
401
|
+
XMLHttpRequest.prototype.onreadystatechange;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* @type {?function(!Event)}
|
|
405
|
+
* @see https://xhr.spec.whatwg.org/#event-handlers
|
|
406
|
+
*/
|
|
407
|
+
XMLHttpRequest.prototype.onerror;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* @const {number}
|
|
411
|
+
* @see https://xhr.spec.whatwg.org/#states
|
|
412
|
+
*/
|
|
413
|
+
XMLHttpRequest.UNSENT;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* @const {number}
|
|
417
|
+
* @see https://xhr.spec.whatwg.org/#states
|
|
418
|
+
*/
|
|
419
|
+
XMLHttpRequest.prototype.UNSENT;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* @const {number}
|
|
423
|
+
* @see https://xhr.spec.whatwg.org/#states
|
|
424
|
+
*/
|
|
425
|
+
XMLHttpRequest.OPENED;
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* @const {number}
|
|
429
|
+
* @see https://xhr.spec.whatwg.org/#states
|
|
430
|
+
*/
|
|
431
|
+
XMLHttpRequest.prototype.OPENED;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* @const {number}
|
|
435
|
+
* @see https://xhr.spec.whatwg.org/#states
|
|
436
|
+
*/
|
|
437
|
+
XMLHttpRequest.HEADERS_RECEIVED;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* @const {number}
|
|
441
|
+
* @see https://xhr.spec.whatwg.org/#states
|
|
442
|
+
*/
|
|
443
|
+
XMLHttpRequest.prototype.HEADERS_RECEIVED;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* @const {number}
|
|
447
|
+
* @see https://xhr.spec.whatwg.org/#states
|
|
448
|
+
*/
|
|
449
|
+
XMLHttpRequest.LOADING;
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* @const {number}
|
|
453
|
+
* @see https://xhr.spec.whatwg.org/#states
|
|
454
|
+
*/
|
|
455
|
+
XMLHttpRequest.prototype.LOADING;
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* @const {number}
|
|
459
|
+
* @see https://xhr.spec.whatwg.org/#states
|
|
460
|
+
*/
|
|
461
|
+
XMLHttpRequest.DONE;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* @const {number}
|
|
465
|
+
* @see https://xhr.spec.whatwg.org/#states
|
|
466
|
+
*/
|
|
467
|
+
XMLHttpRequest.prototype.DONE;
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* @see https://xhr.spec.whatwg.org/#formdataentryvalue
|
|
472
|
+
* @typedef {!File|string}
|
|
473
|
+
*/
|
|
474
|
+
var FormDataEntryValue;
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* The FormData object represents an ordered collection of entries. Each entry
|
|
478
|
+
* has a name and value.
|
|
479
|
+
*
|
|
480
|
+
* @param {?Element=} form An optional form to use for constructing the form
|
|
481
|
+
* data set.
|
|
482
|
+
* @constructor
|
|
483
|
+
* @implements {Iterable<!Array<!FormDataEntryValue>>}
|
|
484
|
+
* @see https://xhr.spec.whatwg.org/#interface-formdata
|
|
485
|
+
*/
|
|
486
|
+
function FormData(form) {}
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* @param {string} name
|
|
490
|
+
* @param {?Blob|string} value
|
|
491
|
+
* @param {string=} filename
|
|
492
|
+
* @return {undefined}
|
|
493
|
+
* @see https://xhr.spec.whatwg.org/#dom-formdata-append
|
|
494
|
+
*/
|
|
495
|
+
FormData.prototype.append = function(name, value, filename) {};
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* @param {string} name
|
|
499
|
+
* @return {undefined}
|
|
500
|
+
* @see https://xhr.spec.whatwg.org/#dom-formdata-delete
|
|
501
|
+
*/
|
|
502
|
+
FormData.prototype.delete = function(name) {};
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* @param {string} name
|
|
506
|
+
* @return {?FormDataEntryValue}
|
|
507
|
+
* @see https://xhr.spec.whatwg.org/#dom-formdata-get
|
|
508
|
+
*/
|
|
509
|
+
FormData.prototype.get = function(name) {};
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* @param {string} name
|
|
513
|
+
* @return {!Array<!FormDataEntryValue>}
|
|
514
|
+
* @see https://xhr.spec.whatwg.org/#dom-formdata-getall
|
|
515
|
+
*/
|
|
516
|
+
FormData.prototype.getAll = function(name) {};
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* @param {string} name
|
|
520
|
+
* @return {boolean}
|
|
521
|
+
* @see https://xhr.spec.whatwg.org/#dom-formdata-has
|
|
522
|
+
*/
|
|
523
|
+
FormData.prototype.has = function(name) {};
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* @param {string} name
|
|
527
|
+
* @param {!Blob|string} value
|
|
528
|
+
* @param {string=} filename
|
|
529
|
+
* @return {undefined}
|
|
530
|
+
* @see https://xhr.spec.whatwg.org/#dom-formdata-set
|
|
531
|
+
*/
|
|
532
|
+
FormData.prototype.set = function(name, value, filename) {};
|
|
533
|
+
|