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,202 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2015 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 URL and URLSearchParams from the spec at
|
|
19
|
+
* https://url.spec.whatwg.org.
|
|
20
|
+
*
|
|
21
|
+
* @externs
|
|
22
|
+
* @author rdcronin@google.com (Devlin Cronin)
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @typedef {Array<string>}
|
|
27
|
+
*/
|
|
28
|
+
var URLSearchParamsTupleType;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Represents the query string of a URL.
|
|
32
|
+
*
|
|
33
|
+
* * When `init` is a string, it is basically parsed as a query string
|
|
34
|
+
* `'name1=value1&name2=value2'`.
|
|
35
|
+
*
|
|
36
|
+
* * When `init` is an array of arrays of string
|
|
37
|
+
* `([['name1', 'value1'], ['name2', 'value2']])`,
|
|
38
|
+
* it must contain pairs of strings, where the first item in the pair will be
|
|
39
|
+
* interpreted as a key and the second as a value.
|
|
40
|
+
*
|
|
41
|
+
* NOTE: The specification uses Iterable rather than Array, but this is not
|
|
42
|
+
* supported in Edge 17 - 18.
|
|
43
|
+
*
|
|
44
|
+
* * When `init` is an object, keys and values will be interpreted as such
|
|
45
|
+
* `({name1: 'value1', name2: 'value2'}).
|
|
46
|
+
*
|
|
47
|
+
* @see https://url.spec.whatwg.org/#interface-urlsearchparams
|
|
48
|
+
* @constructor
|
|
49
|
+
* @implements {Iterable<!Array<string>>}
|
|
50
|
+
* @param {(string|!Array<!URLSearchParamsTupleType>|!Object<string,string>)=}
|
|
51
|
+
* init
|
|
52
|
+
*/
|
|
53
|
+
function URLSearchParams(init) {}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @param {string} name
|
|
57
|
+
* @param {string} value
|
|
58
|
+
* @return {undefined}
|
|
59
|
+
*/
|
|
60
|
+
URLSearchParams.prototype.append = function(name, value) {};
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @param {string} name
|
|
64
|
+
* @return {undefined}
|
|
65
|
+
*/
|
|
66
|
+
URLSearchParams.prototype.delete = function(name) {};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @return {!IteratorIterable<!Array<string>>}
|
|
70
|
+
* @nosideeffects
|
|
71
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/entries
|
|
72
|
+
*/
|
|
73
|
+
URLSearchParams.prototype.entries = function() {};
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @param {function(string, string)} callback
|
|
77
|
+
* @return {undefined}
|
|
78
|
+
*/
|
|
79
|
+
URLSearchParams.prototype.forEach = function(callback) {};
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @param {string} name
|
|
83
|
+
* @return {?string}
|
|
84
|
+
*/
|
|
85
|
+
URLSearchParams.prototype.get = function(name) {};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @param {string} name
|
|
89
|
+
* @return {!Array<string>}
|
|
90
|
+
*/
|
|
91
|
+
URLSearchParams.prototype.getAll = function(name) {};
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @param {string} name
|
|
95
|
+
* @return {boolean}
|
|
96
|
+
*/
|
|
97
|
+
URLSearchParams.prototype.has = function(name) {};
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @return {!IteratorIterable<string>}
|
|
101
|
+
*/
|
|
102
|
+
URLSearchParams.prototype.keys = function() {};
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @param {string} name
|
|
107
|
+
* @param {string} value
|
|
108
|
+
* @return {undefined}
|
|
109
|
+
*/
|
|
110
|
+
URLSearchParams.prototype.set = function(name, value) {};
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @return {undefined}
|
|
114
|
+
*/
|
|
115
|
+
URLSearchParams.prototype.sort = function() {};
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @return {!IteratorIterable<string>}
|
|
119
|
+
*/
|
|
120
|
+
URLSearchParams.prototype.values = function() {};
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @see https://url.spec.whatwg.org
|
|
124
|
+
* @constructor
|
|
125
|
+
* @param {!URL|string} url
|
|
126
|
+
* @param {(!URL|string)=} base
|
|
127
|
+
*/
|
|
128
|
+
function URL(url, base) {}
|
|
129
|
+
|
|
130
|
+
/** @type {string} */
|
|
131
|
+
URL.prototype.href;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @const {string}
|
|
135
|
+
*/
|
|
136
|
+
URL.prototype.origin;
|
|
137
|
+
|
|
138
|
+
/** @type {string} */
|
|
139
|
+
URL.prototype.protocol;
|
|
140
|
+
|
|
141
|
+
/** @type {string} */
|
|
142
|
+
URL.prototype.username;
|
|
143
|
+
|
|
144
|
+
/** @type {string} */
|
|
145
|
+
URL.prototype.password;
|
|
146
|
+
|
|
147
|
+
/** @type {string} */
|
|
148
|
+
URL.prototype.host;
|
|
149
|
+
|
|
150
|
+
/** @type {string} */
|
|
151
|
+
URL.prototype.hostname;
|
|
152
|
+
|
|
153
|
+
/** @type {string} */
|
|
154
|
+
URL.prototype.port;
|
|
155
|
+
|
|
156
|
+
/** @type {string} */
|
|
157
|
+
URL.prototype.pathname;
|
|
158
|
+
|
|
159
|
+
/** @type {string} */
|
|
160
|
+
URL.prototype.search;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* @const {!URLSearchParams}
|
|
164
|
+
*/
|
|
165
|
+
URL.prototype.searchParams;
|
|
166
|
+
|
|
167
|
+
/** @type {string} */
|
|
168
|
+
URL.prototype.hash;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* @param {string} domain
|
|
172
|
+
* @return {string}
|
|
173
|
+
*/
|
|
174
|
+
URL.domainToASCII = function(domain) {};
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* @param {string} domain
|
|
178
|
+
* @return {string}
|
|
179
|
+
*/
|
|
180
|
+
URL.domainToUnicode = function(domain) {};
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @see http://www.w3.org/TR/FileAPI/#dfn-createObjectURL
|
|
184
|
+
* @param {!File|!Blob|!MediaSource|!MediaStream} obj
|
|
185
|
+
* @return {string}
|
|
186
|
+
*/
|
|
187
|
+
URL.createObjectURL = function(obj) {};
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @see https://url.spec.whatwg.org
|
|
191
|
+
* @param {!URL|string} url
|
|
192
|
+
* @param {(!URL|string)=} base
|
|
193
|
+
* @return {boolean}
|
|
194
|
+
*/
|
|
195
|
+
URL.canParse = function(url, base) {};
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @see http://www.w3.org/TR/FileAPI/#dfn-revokeObjectURL
|
|
199
|
+
* @param {!URL|string} url
|
|
200
|
+
* @return {undefined}
|
|
201
|
+
*/
|
|
202
|
+
URL.revokeObjectURL = function(url) {};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2013 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 This file describes the externs API for V8-specific objects.
|
|
19
|
+
* @externs
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Stack frame elements in V8.
|
|
26
|
+
* @constructor
|
|
27
|
+
*/
|
|
28
|
+
function CallSite() {}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Runs the garbage collector, provided that you start V8 with --expose-gc or
|
|
33
|
+
* Chrome with --js-flags="--expose-gc".
|
|
34
|
+
* See https://v8.dev/docs/memory-leaks
|
|
35
|
+
* @type {undefined|function()}
|
|
36
|
+
*/
|
|
37
|
+
CallSite.prototype.gc;
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Returns the value of this.
|
|
42
|
+
* @return {Object|undefined}
|
|
43
|
+
*/
|
|
44
|
+
CallSite.prototype.getThis = function() {};
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Returns the type of this as a string. This is the name of the function stored
|
|
49
|
+
* in the constructor field of this, if available, otherwise the object's
|
|
50
|
+
* [[Class]] internal property.
|
|
51
|
+
* @return {string|undefined}
|
|
52
|
+
*/
|
|
53
|
+
CallSite.prototype.getTypeName = function() {};
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Returns the current function.
|
|
58
|
+
* @return {!Function|undefined}
|
|
59
|
+
*/
|
|
60
|
+
CallSite.prototype.getFunction = function() {};
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Returns the name of the current function, typically its name property. If a
|
|
65
|
+
* name property is not available an attempt will be made to try to infer a name
|
|
66
|
+
* from the function's context.
|
|
67
|
+
* @return {string|undefined}
|
|
68
|
+
*/
|
|
69
|
+
CallSite.prototype.getFunctionName = function() {};
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Returns the name of the property of this or one of its prototypes that holds
|
|
74
|
+
* the current function.
|
|
75
|
+
* @return {string|undefined}
|
|
76
|
+
*/
|
|
77
|
+
CallSite.prototype.getMethodName = function() {};
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* If this function was defined in a script returns the name of the script
|
|
82
|
+
* @return {string|undefined}
|
|
83
|
+
*/
|
|
84
|
+
CallSite.prototype.getFileName = function() {};
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* If this function was defined in a script returns the current line number.
|
|
89
|
+
* @return {number|undefined}
|
|
90
|
+
*/
|
|
91
|
+
CallSite.prototype.getLineNumber = function() {};
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* If this function was defined in a script returns the current column number.
|
|
96
|
+
* @return {number|undefined}
|
|
97
|
+
*/
|
|
98
|
+
CallSite.prototype.getColumnNumber = function() {};
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* If this function was created using a call to eval, returns a CallSite object
|
|
103
|
+
* representing the location where eval was called
|
|
104
|
+
* @return {CallSite|undefined}
|
|
105
|
+
*/
|
|
106
|
+
CallSite.prototype.getEvalOrigin = function() {};
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Is this a toplevel invocation, that is, is this the global object?
|
|
111
|
+
* @return {boolean}
|
|
112
|
+
*/
|
|
113
|
+
CallSite.prototype.isToplevel = function() {};
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Does this call take place in code defined by a call to eval?
|
|
118
|
+
* @return {boolean}
|
|
119
|
+
*/
|
|
120
|
+
CallSite.prototype.isEval = function() {};
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Is this call in native V8 code?
|
|
125
|
+
* @return {boolean}
|
|
126
|
+
*/
|
|
127
|
+
CallSite.prototype.isNative = function() {};
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Is this a constructor call?
|
|
132
|
+
* @return {boolean}
|
|
133
|
+
*/
|
|
134
|
+
CallSite.prototype.isConstructor = function() {};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2018 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 AbortController
|
|
19
|
+
* @see https://dom.spec.whatwg.org/#aborting-ongoing-activities
|
|
20
|
+
* @externs
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @constructor
|
|
27
|
+
* @implements {EventTarget}
|
|
28
|
+
* @see https://dom.spec.whatwg.org/#interface-AbortSignal
|
|
29
|
+
*/
|
|
30
|
+
function AbortSignal() {}
|
|
31
|
+
|
|
32
|
+
/** @override */
|
|
33
|
+
AbortSignal.prototype.addEventListener = function(
|
|
34
|
+
type, listener, opt_options) {};
|
|
35
|
+
|
|
36
|
+
/** @override */
|
|
37
|
+
AbortSignal.prototype.removeEventListener = function(
|
|
38
|
+
type, listener, opt_options) {};
|
|
39
|
+
|
|
40
|
+
/** @override */
|
|
41
|
+
AbortSignal.prototype.dispatchEvent = function(evt) {};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @param {*=} reason
|
|
45
|
+
* @return {!AbortSignal}
|
|
46
|
+
* @see https://dom.spec.whatwg.org/#dom-abortsignal-abort
|
|
47
|
+
*/
|
|
48
|
+
AbortSignal.abort = function(reason) {};
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @param {number} milliseconds
|
|
52
|
+
* @return {!AbortSignal}
|
|
53
|
+
* @see https://dom.spec.whatwg.org/#dom-abortsignal-timeout
|
|
54
|
+
*/
|
|
55
|
+
AbortSignal.timeout = function(milliseconds) {};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @param {!Iterable} signals
|
|
59
|
+
* @return {!AbortSignal}
|
|
60
|
+
* @see https://dom.spec.whatwg.org/#dom-abortsignal-any
|
|
61
|
+
*/
|
|
62
|
+
AbortSignal.any = function(signals) {};
|
|
63
|
+
|
|
64
|
+
/** @type {boolean} */
|
|
65
|
+
AbortSignal.prototype.aborted;
|
|
66
|
+
|
|
67
|
+
/** @type {?function(!Event)} */
|
|
68
|
+
AbortSignal.prototype.onabort;
|
|
69
|
+
|
|
70
|
+
/** @type {*} */
|
|
71
|
+
AbortSignal.prototype.reason;
|
|
72
|
+
|
|
73
|
+
/** @return {void} */
|
|
74
|
+
AbortSignal.prototype.throwIfAborted = function() {};
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @constructor
|
|
78
|
+
* @see https://dom.spec.whatwg.org/#interface-abortcontroller
|
|
79
|
+
*/
|
|
80
|
+
function AbortController() {}
|
|
81
|
+
|
|
82
|
+
/** @const {!AbortSignal} */
|
|
83
|
+
AbortController.prototype.signal;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @param {*=} reason
|
|
87
|
+
* @return {void}
|
|
88
|
+
*/
|
|
89
|
+
AbortController.prototype.abort = function(reason) {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2011 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
|
+
* @fileoverview Definitions for timing control for script base animations. The
|
|
18
|
+
* whole file has been fully type annotated.
|
|
19
|
+
*
|
|
20
|
+
* @see http://www.w3.org/TR/animation-timing/
|
|
21
|
+
* @see http://webstuff.nfshost.com/anim-timing/Overview.html
|
|
22
|
+
* @externs
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @typedef {function(number): undefined}
|
|
27
|
+
* @see https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#framerequestcallback
|
|
28
|
+
*/
|
|
29
|
+
var FrameRequestCallback;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @param {!FrameRequestCallback} callback
|
|
33
|
+
* @param {Element=} opt_element In early versions of this API, the callback
|
|
34
|
+
* was invoked only if the element was visible.
|
|
35
|
+
* @return {number}
|
|
36
|
+
*/
|
|
37
|
+
function requestAnimationFrame(callback, opt_element) {};
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @param {number} handle
|
|
41
|
+
* @return {undefined}
|
|
42
|
+
*/
|
|
43
|
+
function cancelRequestAnimationFrame(handle) {};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @param {number} handle
|
|
47
|
+
* @return {undefined}
|
|
48
|
+
*/
|
|
49
|
+
function cancelAnimationFrame(handle) {};
|