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,169 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2021 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 APIs used for file/directory upload by drag-and-drop
|
|
19
|
+
* @see https://wicg.github.io/entries-api
|
|
20
|
+
* @see https://github.com/WICG/entries-api/blob/main/EXPLAINER.md
|
|
21
|
+
* @externs
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @see https://wicg.github.io/entries-api/#filesystementry
|
|
26
|
+
* @constructor
|
|
27
|
+
*/
|
|
28
|
+
function FileSystemEntry() {}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @see https://wicg.github.io/entries-api/#dom-filesystementry-isfile
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
*/
|
|
34
|
+
FileSystemEntry.prototype.isFile;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @see https://wicg.github.io/entries-api/#dom-filesystementry-isdirectory
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
*/
|
|
40
|
+
FileSystemEntry.prototype.isDirectory;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @see https://wicg.github.io/entries-api/#dom-filesystementry-name
|
|
44
|
+
* @type {string}
|
|
45
|
+
*/
|
|
46
|
+
FileSystemEntry.prototype.name;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @see https://wicg.github.io/entries-api/#dom-filesystementry-fullpath
|
|
50
|
+
* @type {string}
|
|
51
|
+
*/
|
|
52
|
+
FileSystemEntry.prototype.fullPath;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @see https://wicg.github.io/entries-api/#dom-filesystementry-filesystem
|
|
56
|
+
* @type {!FileSystem}
|
|
57
|
+
*/
|
|
58
|
+
FileSystemEntry.prototype.filesystem;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @see https://wicg.github.io/entries-api/#dom-filesystementry-getparent
|
|
62
|
+
* @param {function(!FileSystemEntry)=} successCallback
|
|
63
|
+
* @param {function(!DOMException)=} errorCallback
|
|
64
|
+
* @return {undefined}
|
|
65
|
+
*/
|
|
66
|
+
FileSystemEntry.prototype.getParent = function(
|
|
67
|
+
successCallback, errorCallback) {};
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @see https://wicg.github.io/entries-api/#filesystemdirectoryentry
|
|
71
|
+
* @constructor
|
|
72
|
+
* @extends {FileSystemEntry}
|
|
73
|
+
*/
|
|
74
|
+
function FileSystemDirectoryEntry() {}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @see https://wicg.github.io/entries-api/#dom-filesystemdirectoryentry-createreader
|
|
78
|
+
* @return {!FileSystemDirectoryReader}
|
|
79
|
+
*/
|
|
80
|
+
FileSystemDirectoryEntry.prototype.createReader = function() {};
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @see https://wicg.github.io/entries-api/#dom-filesystemdirectoryentry-getfile
|
|
84
|
+
* @param {string|null=} path
|
|
85
|
+
* @param {!FileSystemFlags=} options
|
|
86
|
+
* @param {function(!FileSystemFileEntry)=} successCallback
|
|
87
|
+
* @param {function(!DOMException)=} errorCallback
|
|
88
|
+
* @return {undefined}
|
|
89
|
+
*/
|
|
90
|
+
FileSystemDirectoryEntry.prototype.getFile = function(
|
|
91
|
+
path, options, successCallback, errorCallback) {};
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @see https://wicg.github.io/entries-api/#dom-filesystemdirectoryentry-getdirectory
|
|
95
|
+
* @param {string|null=} path
|
|
96
|
+
* @param {!FileSystemFlags=} options
|
|
97
|
+
* @param {function(!FileSystemDirectoryEntry)=} successCallback
|
|
98
|
+
* @param {function(!DOMException)=} errorCallback
|
|
99
|
+
* @return {undefined}
|
|
100
|
+
*/
|
|
101
|
+
FileSystemDirectoryEntry.prototype.getDirectory = function(
|
|
102
|
+
path, options, successCallback, errorCallback) {};
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @see https://wicg.github.io/entries-api/#dictdef-filesystemflags
|
|
106
|
+
* @record
|
|
107
|
+
*/
|
|
108
|
+
function FileSystemFlags() {}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @see https://wicg.github.io/entries-api/#dom-filesystemflags-create
|
|
112
|
+
* @type {(undefined|boolean)}
|
|
113
|
+
*/
|
|
114
|
+
FileSystemFlags.prototype.create;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @see https://wicg.github.io/entries-api/#dom-filesystemflags-exclusive
|
|
118
|
+
* @type {(undefined|boolean)}
|
|
119
|
+
*/
|
|
120
|
+
FileSystemFlags.prototype.exclusive;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @see https://wicg.github.io/entries-api/#filesystemdirectoryreader
|
|
124
|
+
* @constructor
|
|
125
|
+
*/
|
|
126
|
+
function FileSystemDirectoryReader() {}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @see https://wicg.github.io/entries-api/#dom-filesystemdirectoryentry-readentries
|
|
130
|
+
* @param {function(!Array<FileSystemEntry>)} successCallback
|
|
131
|
+
* @param {function(!DOMException)=} errorCallback
|
|
132
|
+
* @return {undefined}
|
|
133
|
+
*/
|
|
134
|
+
FileSystemDirectoryReader.prototype.readEntries = function(
|
|
135
|
+
successCallback, errorCallback) {};
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @see https://wicg.github.io/entries-api/#filesystemfileentry
|
|
139
|
+
* @constructor
|
|
140
|
+
* @extends {FileSystemEntry}
|
|
141
|
+
*/
|
|
142
|
+
function FileSystemFileEntry() {}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @see https://wicg.github.io/entries-api/#dom-filesystemfileentry-file
|
|
146
|
+
* @param {function(!File)} successCallback
|
|
147
|
+
* @param {function(!DOMException)=} errorCallback
|
|
148
|
+
* @return {undefined}
|
|
149
|
+
*/
|
|
150
|
+
FileSystemFileEntry.prototype.file = function(
|
|
151
|
+
successCallback, errorCallback) {};
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @see https://wicg.github.io/entries-api/#filesystem
|
|
155
|
+
* @constructor
|
|
156
|
+
*/
|
|
157
|
+
function FileSystem() {}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @see https://wicg.github.io/entries-api/#dom-filesystem-name
|
|
161
|
+
* @type {string}
|
|
162
|
+
*/
|
|
163
|
+
FileSystem.prototype.name;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* @see https://wicg.github.io/entries-api/#dom-filesystem-root
|
|
167
|
+
* @type {!FileSystemDirectoryEntry}
|
|
168
|
+
*/
|
|
169
|
+
FileSystem.prototype.root;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2021 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 @externs
|
|
19
|
+
* Externs for interfaces in //third_party/blink/renderer/modules/launch/*
|
|
20
|
+
*
|
|
21
|
+
* FileHandling Explainer:
|
|
22
|
+
* https://github.com/WICG/file-handling/blob/main/explainer.md
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/** @interface */
|
|
26
|
+
var LaunchParams = function() {};
|
|
27
|
+
|
|
28
|
+
/** @type {!Array<!FileSystemHandle>} */
|
|
29
|
+
LaunchParams.prototype.files;
|
|
30
|
+
|
|
31
|
+
/** @typedef {function(!LaunchParams)} */
|
|
32
|
+
var LaunchConsumer;
|
|
33
|
+
|
|
34
|
+
/** @interface */
|
|
35
|
+
var LaunchQueue = function() {};
|
|
36
|
+
|
|
37
|
+
/** @param {!LaunchConsumer} consumer */
|
|
38
|
+
LaunchQueue.prototype.setConsumer = function(consumer) {};
|
|
39
|
+
|
|
40
|
+
/** @type {!LaunchQueue} */
|
|
41
|
+
window.launchQueue;
|
|
@@ -0,0 +1,191 @@
|
|
|
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
|
+
* File System Access
|
|
19
|
+
* Draft Community Group Report, 12 January 2023
|
|
20
|
+
* @see https://wicg.github.io/file-system-access/
|
|
21
|
+
* @externs
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @typedef {string}
|
|
28
|
+
* @see https://wicg.github.io/file-system-access/#enumdef-filesystempermissionmode
|
|
29
|
+
*/
|
|
30
|
+
var FileSystemPermissionMode;
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @record
|
|
35
|
+
* @struct
|
|
36
|
+
* @extends {PermissionDescriptor}
|
|
37
|
+
* @see https://wicg.github.io/file-system-access/#dictdef-filesystempermissiondescriptor
|
|
38
|
+
*/
|
|
39
|
+
var FileSystemPermissionDescriptor = function() {};
|
|
40
|
+
|
|
41
|
+
/** @type {!FileSystemHandle} */
|
|
42
|
+
FileSystemPermissionDescriptor.prototype.handle;
|
|
43
|
+
|
|
44
|
+
/** @type {undefined|!FileSystemPermissionMode} */
|
|
45
|
+
FileSystemPermissionDescriptor.prototype.mode;
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @record
|
|
50
|
+
* @struct
|
|
51
|
+
* @see https://wicg.github.io/file-system-access/#dictdef-filesystemhandlepermissiondescriptor
|
|
52
|
+
*/
|
|
53
|
+
var FileSystemHandlePermissionDescriptor = function() {};
|
|
54
|
+
|
|
55
|
+
/** @type {undefined|!FileSystemPermissionMode} */
|
|
56
|
+
FileSystemHandlePermissionDescriptor.prototype.mode;
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @param {!FileSystemHandlePermissionDescriptor=} opt_descriptor
|
|
61
|
+
* @return {!Promise<!PermissionState>}
|
|
62
|
+
* @see https://wicg.github.io/file-system-access/#api-filesystemhandle
|
|
63
|
+
*/
|
|
64
|
+
FileSystemHandle.prototype.queryPermission = function(opt_descriptor) {};
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @param {!FileSystemHandlePermissionDescriptor=} opt_descriptor
|
|
68
|
+
* @return {!Promise<!PermissionState>}
|
|
69
|
+
* @see https://wicg.github.io/file-system-access/#api-filesystemhandle
|
|
70
|
+
*/
|
|
71
|
+
FileSystemHandle.prototype.requestPermission = function(opt_descriptor) {};
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @typedef {string}
|
|
76
|
+
* @see https://wicg.github.io/file-system-access/#local-filesystem
|
|
77
|
+
*/
|
|
78
|
+
var WellKnownDirectory;
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @typedef {!WellKnownDirectory|!FileSystemHandle}
|
|
83
|
+
* @see https://wicg.github.io/file-system-access/#local-filesystem
|
|
84
|
+
*/
|
|
85
|
+
var StartInDirectory;
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @record
|
|
90
|
+
* @struct
|
|
91
|
+
* @see https://wicg.github.io/file-system-access/#dictdef-filepickeraccepttype
|
|
92
|
+
*/
|
|
93
|
+
var FilePickerAcceptType = function() {};
|
|
94
|
+
|
|
95
|
+
/** @type {undefined|string} */
|
|
96
|
+
FilePickerAcceptType.prototype.description;
|
|
97
|
+
|
|
98
|
+
/** @type {undefined|!Object<string,(string|!Array<string>)>} */
|
|
99
|
+
FilePickerAcceptType.prototype.accept;
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @record
|
|
104
|
+
* @struct
|
|
105
|
+
* @see https://wicg.github.io/file-system-access/#dictdef-filepickeroptions
|
|
106
|
+
*/
|
|
107
|
+
var FilePickerOptions = function() {};
|
|
108
|
+
|
|
109
|
+
/** @type {undefined|!Array<!FilePickerAcceptType>} */
|
|
110
|
+
FilePickerOptions.prototype.types;
|
|
111
|
+
|
|
112
|
+
/** @type {undefined|boolean} */
|
|
113
|
+
FilePickerOptions.prototype.excludeAcceptAllOption;
|
|
114
|
+
|
|
115
|
+
/** @type {undefined|string} */
|
|
116
|
+
FilePickerOptions.prototype.id;
|
|
117
|
+
|
|
118
|
+
/** @type {undefined|!StartInDirectory} */
|
|
119
|
+
FilePickerOptions.prototype.startIn;
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @record
|
|
124
|
+
* @struct
|
|
125
|
+
* @extends {FilePickerOptions}
|
|
126
|
+
* @see https://wicg.github.io/file-system-access/#dictdef-openfilepickeroptions
|
|
127
|
+
*/
|
|
128
|
+
var OpenFilePickerOptions = function() {};
|
|
129
|
+
|
|
130
|
+
/** @type {undefined|boolean} */
|
|
131
|
+
OpenFilePickerOptions.prototype.multiple;
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @record
|
|
136
|
+
* @struct
|
|
137
|
+
* @extends {FilePickerOptions}
|
|
138
|
+
* @see https://wicg.github.io/file-system-access/#dictdef-savefilepickeroptions
|
|
139
|
+
*/
|
|
140
|
+
var SaveFilePickerOptions = function() {};
|
|
141
|
+
|
|
142
|
+
/** @type {undefined|?string} */
|
|
143
|
+
SaveFilePickerOptions.prototype.suggestedName;
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @record
|
|
148
|
+
* @struct
|
|
149
|
+
* @see https://wicg.github.io/file-system-access/#dictdef-directorypickeroptions
|
|
150
|
+
*/
|
|
151
|
+
var DirectoryPickerOptions = function() {};
|
|
152
|
+
|
|
153
|
+
/** @type {undefined|string} */
|
|
154
|
+
DirectoryPickerOptions.prototype.id;
|
|
155
|
+
|
|
156
|
+
/** @type {undefined|!StartInDirectory} */
|
|
157
|
+
DirectoryPickerOptions.prototype.startIn;
|
|
158
|
+
|
|
159
|
+
/** @type {undefined|!FileSystemPermissionMode} */
|
|
160
|
+
DirectoryPickerOptions.prototype.mode;
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @param {!OpenFilePickerOptions=} opt_options
|
|
165
|
+
* @return {!Promise<!Array<!FileSystemFileHandle>>}
|
|
166
|
+
* @see https://wicg.github.io/file-system-access/#local-filesystem
|
|
167
|
+
*/
|
|
168
|
+
Window.prototype.showOpenFilePicker = function(opt_options) {};
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @param {!SaveFilePickerOptions=} opt_options
|
|
173
|
+
* @return {!Promise<!FileSystemFileHandle>}
|
|
174
|
+
* @see https://wicg.github.io/file-system-access/#local-filesystem
|
|
175
|
+
*/
|
|
176
|
+
Window.prototype.showSaveFilePicker = function(opt_options) {};
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @param {!DirectoryPickerOptions=} opt_options
|
|
181
|
+
* @return {!Promise<!FileSystemDirectoryHandle>}
|
|
182
|
+
* @see https://wicg.github.io/file-system-access/#local-filesystem
|
|
183
|
+
*/
|
|
184
|
+
Window.prototype.showDirectoryPicker = function(opt_options) {};
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* @return {!Promise<?FileSystemHandle>}
|
|
189
|
+
* @see https://wicg.github.io/file-system-access/#drag-and-drop
|
|
190
|
+
*/
|
|
191
|
+
DataTransferItem.prototype.getAsFileSystemHandle = function() {};
|
|
@@ -0,0 +1,41 @@
|
|
|
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 The spec of FLoC interface.
|
|
19
|
+
* @see https://github.com/WICG/floc
|
|
20
|
+
* @externs
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @see https://wicg.github.io/floc/#interest-cohort-section
|
|
25
|
+
* @record
|
|
26
|
+
* @struct
|
|
27
|
+
*/
|
|
28
|
+
function InterestCohort() {}
|
|
29
|
+
|
|
30
|
+
/** @type {string} */
|
|
31
|
+
InterestCohort.prototype.id;
|
|
32
|
+
|
|
33
|
+
/** @type {string} */
|
|
34
|
+
InterestCohort.prototype.version;
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @return {!Promise<!InterestCohort>}
|
|
39
|
+
* @see https://wicg.github.io/floc/#the-api
|
|
40
|
+
*/
|
|
41
|
+
Document.prototype.interestCohort = function() {};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022 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 The current draft spec of Ink API.
|
|
19
|
+
* @see https://wicg.github.io/ink-enhancement/
|
|
20
|
+
* @externs
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @see https://wicg.github.io/ink-enhancement/#ink-presenter-param
|
|
25
|
+
* @record
|
|
26
|
+
* @struct
|
|
27
|
+
*/
|
|
28
|
+
function InkPresenterParam() {}
|
|
29
|
+
|
|
30
|
+
/** @type {?Element} */
|
|
31
|
+
InkPresenterParam.prototype.presentationArea;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The Ink API provides the InkPresenter interface to expose the underlying
|
|
35
|
+
* operating system API to achieve this and keeps the extensibility open in
|
|
36
|
+
* order to support additional presenters in the future.
|
|
37
|
+
* @see https://wicg.github.io/ink-enhancement/#ink-interface
|
|
38
|
+
* @interface
|
|
39
|
+
* @struct
|
|
40
|
+
*/
|
|
41
|
+
function Ink() {}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @param {?InkPresenterParam=} param
|
|
45
|
+
* @return {!Promise<!InkPresenter>}
|
|
46
|
+
*/
|
|
47
|
+
Ink.prototype.requestPresenter = function(param) {};
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @see https://wicg.github.io/ink-enhancement/#ink-presenter
|
|
52
|
+
* @interface
|
|
53
|
+
* @struct
|
|
54
|
+
*/
|
|
55
|
+
function InkPresenter() {}
|
|
56
|
+
|
|
57
|
+
/** @type {?Element} */
|
|
58
|
+
InkPresenter.prototype.presentationArea;
|
|
59
|
+
|
|
60
|
+
/** @type {number} */
|
|
61
|
+
InkPresenter.prototype.expectedImprovement;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @param {!PointerEvent} event
|
|
65
|
+
* @param {!InkTrailStyle} style
|
|
66
|
+
* @return {void}
|
|
67
|
+
*/
|
|
68
|
+
InkPresenter.prototype.updateInkTrailStartPoint = function(event, style) {};
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @see https://wicg.github.io/ink-enhancement/#ink-trail-style
|
|
73
|
+
* @record
|
|
74
|
+
* @struct
|
|
75
|
+
*/
|
|
76
|
+
function InkTrailStyle() {}
|
|
77
|
+
|
|
78
|
+
/** @type {string} */
|
|
79
|
+
InkTrailStyle.prototype.color;
|
|
80
|
+
|
|
81
|
+
/** @type {number} */
|
|
82
|
+
InkTrailStyle.prototype.diameter;
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @see https://wicg.github.io/ink-enhancement/#navigator-interface-extensions
|
|
87
|
+
* @type {!Ink}
|
|
88
|
+
*/
|
|
89
|
+
Navigator.prototype.ink;
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
* @fileoverview The current draft spec of ResizeObserver.
|
|
18
|
+
* @see https://wicg.github.io/ResizeObserver/
|
|
19
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver
|
|
20
|
+
* @externs
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @typedef {function(!Array<!ResizeObserverEntry>, !ResizeObserver)}
|
|
25
|
+
*/
|
|
26
|
+
var ResizeObserverCallback;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @typedef {{box: string}}
|
|
30
|
+
*/
|
|
31
|
+
var ResizeObserverOptions;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @typedef {{blockSize: number, inlineSize: number}}
|
|
35
|
+
*/
|
|
36
|
+
var ResizeObserverSize;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @constructor
|
|
40
|
+
* @param {!ResizeObserverCallback} callback
|
|
41
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/ResizeObserver
|
|
42
|
+
*/
|
|
43
|
+
function ResizeObserver(callback) {}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @param {!Element} target
|
|
47
|
+
* @param {!ResizeObserverOptions=} opt_options
|
|
48
|
+
* @return {void}
|
|
49
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/observe
|
|
50
|
+
*/
|
|
51
|
+
ResizeObserver.prototype.observe = function(target, opt_options) {};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @param {!Element} target
|
|
55
|
+
* @return {void}
|
|
56
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/unobserve
|
|
57
|
+
*/
|
|
58
|
+
ResizeObserver.prototype.unobserve = function(target) {};
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @return {void}
|
|
62
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/disconnect
|
|
63
|
+
*/
|
|
64
|
+
ResizeObserver.prototype.disconnect = function() {};
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @interface
|
|
68
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry
|
|
69
|
+
*/
|
|
70
|
+
function ResizeObserverEntry() {}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @const {!Array<!ResizeObserverSize>}
|
|
74
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/borderBoxSize
|
|
75
|
+
*/
|
|
76
|
+
ResizeObserverEntry.prototype.borderBoxSize;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @const {!Array<!ResizeObserverSize>}
|
|
80
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/contentBoxSize
|
|
81
|
+
*/
|
|
82
|
+
ResizeObserverEntry.prototype.contentBoxSize;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @const {!DOMRectReadOnly}
|
|
86
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/contentRect
|
|
87
|
+
*/
|
|
88
|
+
ResizeObserverEntry.prototype.contentRect;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @const {!Array<!ResizeObserverSize>}
|
|
92
|
+
* @see https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/devicePixelContentBoxSize
|
|
93
|
+
*/
|
|
94
|
+
ResizeObserverEntry.prototype.devicePixelContentBoxSize;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @const {!Element}
|
|
98
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/target
|
|
99
|
+
*/
|
|
100
|
+
ResizeObserverEntry.prototype.target;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 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 The current draft spec of Prioritized Task Scheduling API.
|
|
19
|
+
* @see https://wicg.github.io/scheduling-apis/
|
|
20
|
+
* @externs
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @typedef {string}
|
|
25
|
+
* @see https://wicg.github.io/scheduling-apis/#enumdef-taskpriority
|
|
26
|
+
*/
|
|
27
|
+
var TaskPriority;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @typedef {function()}
|
|
31
|
+
* @see https://wicg.github.io/scheduling-apis/#callbackdef-schedulerposttaskcallback
|
|
32
|
+
*/
|
|
33
|
+
var SchedulerPostTaskCallback;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @typedef {{
|
|
37
|
+
* signal: (!AbortSignal|undefined),
|
|
38
|
+
* priority: (!TaskPriority|undefined),
|
|
39
|
+
* delay: (number|undefined)
|
|
40
|
+
* }}
|
|
41
|
+
* @see https://wicg.github.io/scheduling-apis/#dictdef-schedulerposttaskoptions
|
|
42
|
+
*/
|
|
43
|
+
var SchedulerPostTaskOptions;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @see https://wicg.github.io/scheduling-apis/#sec-scheduler
|
|
47
|
+
* @interface
|
|
48
|
+
*/
|
|
49
|
+
function Scheduler() {}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @param {!SchedulerPostTaskCallback} callback
|
|
53
|
+
* @param {!SchedulerPostTaskOptions=} options
|
|
54
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Scheduler/postTask
|
|
55
|
+
*/
|
|
56
|
+
Scheduler.prototype.postTask = function(callback, options) {};
|
|
57
|
+
|
|
58
|
+
/** @type {!Scheduler} */
|
|
59
|
+
Window.prototype.scheduler;
|
|
60
|
+
|
|
61
|
+
/** @type {!Scheduler} */
|
|
62
|
+
WorkerGlobalScope.prototype.scheduler;
|