google-closure-compiler 20161024.3.0 → 20170409.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.
Files changed (45) hide show
  1. package/README.md +327 -0
  2. package/compiler.jar +0 -0
  3. package/contrib/externs/angular-1.3-resource.js +6 -0
  4. package/contrib/externs/angular-1.3.js +4 -3
  5. package/contrib/externs/angular-1.4-resource.js +6 -0
  6. package/contrib/externs/angular-1.4.js +2 -2
  7. package/contrib/externs/angular-1.5-q_templated.js +19 -1
  8. package/contrib/externs/angular-1.5-resource.js +6 -0
  9. package/contrib/externs/angular-1.5.js +44 -9
  10. package/contrib/externs/angular-1.6-http-promise_templated.js +61 -0
  11. package/contrib/externs/angular-1.6-mocks.js +267 -0
  12. package/contrib/externs/angular-1.6-q_templated.js +194 -0
  13. package/contrib/externs/angular-1.6-resource.js +332 -0
  14. package/contrib/externs/{w3c_css.js → angular-1.6-test.js} +8 -6
  15. package/contrib/externs/angular-1.6.js +2646 -0
  16. package/contrib/externs/angular-cache-4.6.js +316 -0
  17. package/contrib/externs/angular-material-1.1.js +92 -33
  18. package/contrib/externs/angular-material.js +36 -5
  19. package/contrib/externs/chai-3.5.js +101 -2
  20. package/contrib/externs/chrome_extensions.js +267 -95
  21. package/contrib/externs/jasmine-2.0.js +23 -3
  22. package/contrib/externs/jquery-1.4.4.js +1 -1
  23. package/contrib/externs/jquery-1.5.js +1 -1
  24. package/contrib/externs/jquery-1.6.js +1 -1
  25. package/contrib/externs/jquery-3.0.js +2037 -0
  26. package/contrib/externs/jquery-3.1.js +2045 -0
  27. package/contrib/externs/maps/google_maps_api_v3.js +306 -263
  28. package/contrib/externs/maps/google_maps_api_v3_27.js +6732 -0
  29. package/contrib/externs/maps/google_maps_api_v3_28.js +6637 -0
  30. package/contrib/externs/maps/google_maps_api_v3_exp.js +41 -106
  31. package/contrib/externs/mocha-2.5.js +65 -14
  32. package/contrib/externs/polymer-1.0.js +43 -5
  33. package/contrib/externs/safari.js +58 -0
  34. package/contrib/externs/sinon-1.17.js +719 -10
  35. package/contrib/externs/sinon-chai-2.7.js +78 -0
  36. package/contrib/externs/w3c_eventsource.js +6 -17
  37. package/contrib/externs/web_component_tester-4.2.js +6 -0
  38. package/contrib/nodejs/crypto.js +6 -6
  39. package/lib/gulp/index.js +2 -2
  40. package/lib/node/closure-compiler.js +3 -1
  41. package/package.json +8 -9
  42. package/contrib/externs/jquery-1.3.2.externs.js +0 -714
  43. package/contrib/externs/w3c_gamepad.js +0 -91
  44. package/contrib/externs/w3c_midi.js +0 -293
  45. package/contrib/externs/w3c_pointer_events.js +0 -105
@@ -17,8 +17,7 @@
17
17
  /**
18
18
  * @fileoverview Externs definitions for Chai, 3.5 branch.
19
19
  *
20
- * This file currently only defines the BDD API, and that part should be
21
- * complete.
20
+ * This file defines both the BDD and TDD APIs. The BDD API should be complete.
22
21
  *
23
22
  * This file defines some virtual types for the chained methods, please don't
24
23
  * use these types directly, but follow the official API guidelines.
@@ -237,3 +236,103 @@ ExpectChain.prototype.increase = function(value, name, opt_message) {};
237
236
  * @param {string=} opt_message
238
237
  */
239
238
  ExpectChain.prototype.decrease = function(value, name, opt_message) {};
239
+
240
+ // Below are the externs for the TDD expect API: http://chaijs.com/api/assert/
241
+
242
+ /** @const */
243
+ var assert = {};
244
+
245
+ /**
246
+ * @param {*} actual
247
+ * @param {*} expected
248
+ * @param {string=} opt_message
249
+ * @param {string=} opt_operator
250
+ */
251
+ assert.fail = function(actual, expected, opt_message, opt_operator) {};
252
+
253
+ /**
254
+ * @param {*} object
255
+ * @param {string=} opt_message
256
+ */
257
+ assert.isOk = function(object, opt_message) {};
258
+
259
+ /**
260
+ * @param {*} object
261
+ * @param {string=} opt_message
262
+ */
263
+ assert.isNotOk = function(object, opt_message) {};
264
+
265
+ /**
266
+ * @param {*} actual
267
+ * @param {*} expected
268
+ * @param {string=} opt_message
269
+ */
270
+ assert.equal = function(actual, expected, opt_message) {};
271
+
272
+ /**
273
+ * @param {*} actual
274
+ * @param {*} expected
275
+ * @param {string=} opt_message
276
+ */
277
+ assert.notEqual = function(actual, expected, opt_message) {};
278
+
279
+ /**
280
+ * @param {*} actual
281
+ * @param {*} expected
282
+ * @param {string=} opt_message
283
+ */
284
+ assert.deepEqual = function(actual, expected, opt_message) {};
285
+
286
+ /**
287
+ * @param {*} valueToCheck
288
+ * @param {*} valueToBeBelow
289
+ * @param {string=} opt_message
290
+ */
291
+ assert.isBelow = function(valueToCheck, valueToBeBelow, opt_message) {};
292
+
293
+ /**
294
+ * @param {*} value
295
+ * @param {string=} opt_message
296
+ */
297
+ assert.isTrue = function(value, opt_message) {};
298
+
299
+ /**
300
+ * @param {*} value
301
+ * @param {string=} opt_message
302
+ */
303
+ assert.isFalse = function(value, opt_message) {};
304
+
305
+ /**
306
+ * @param {*} value
307
+ * @param {string=} opt_message
308
+ */
309
+ assert.isUndefined = function(value, opt_message) {};
310
+
311
+ /**
312
+ * @param {*} value
313
+ * @param {string=} opt_message
314
+ */
315
+ assert.isDefined = function(value, opt_message) {};
316
+
317
+ /**
318
+ * @param {*} object
319
+ * @param {function(new: Object)} constructor
320
+ * @param {string=} opt_message
321
+ */
322
+ assert.instanceOf = function(object, constructor, opt_message) {};
323
+
324
+ /**
325
+ * @param {?Object|undefined} object
326
+ * @param {string} property
327
+ * @param {*} value
328
+ * @param {string=} opt_message
329
+ */
330
+ assert.propertyVal = function(object, property, value, opt_message) {};
331
+
332
+ /**
333
+ * @param {function()} fn
334
+ * @param {function(new: Object)|string|!RegExp} constructor
335
+ * @param {string|!RegExp=} opt_regexp
336
+ * @param {string=} opt_message
337
+ */
338
+ assert.throws = function(fn, constructor, opt_regexp, opt_message) {};
@@ -33,7 +33,7 @@
33
33
  * The best practices for each are described in more detail below. It
34
34
  * should be noted that, due to historical reasons, and the evolutionary
35
35
  * nature of this file, much this file currently violates the best practices
36
- * described below. As changed are made, the changes should adhere to the
36
+ * described below. As changes are made, the changes should adhere to the
37
37
  * best practices.
38
38
  *
39
39
  * A. When to Add Packages to this File?
@@ -110,7 +110,7 @@
110
110
  * Always qualify the type name to reduce top-level pollution in this file:
111
111
  *
112
112
  * Do:
113
- * chrome.extension.Port = function() {}
113
+ * chrome.runtime.Port = function() {}
114
114
  * Don't:
115
115
  * function Port() {}
116
116
  *
@@ -1818,6 +1818,36 @@ chrome.bluetoothLowEnergy.DescriptorEvent.prototype.hasListeners =
1818
1818
  chrome.bluetoothLowEnergy.onDescriptorValueChanged;
1819
1819
 
1820
1820
 
1821
+ /**
1822
+ * @typedef {?{
1823
+ * type: string,
1824
+ * serviceUuids: (!Array<string>|undefined),
1825
+ * manufacturerData: (!Array<{id: number, data: !Array<number>}>|undefined),
1826
+ * solicitUuids: (!Array<string>|undefined),
1827
+ * serviceData: (!Array<{uuid: string, data: !Array<number>}>|undefined)
1828
+ * }}
1829
+ */
1830
+ chrome.bluetoothLowEnergy.Advertisement;
1831
+
1832
+
1833
+ /**
1834
+ * @param {!chrome.bluetoothLowEnergy.Advertisement} advertisement
1835
+ * @param {function(number)} callback
1836
+ * @see https://developer.chrome.com/apps/bluetoothLowEnergy#method-registerAdvertisement
1837
+ */
1838
+ chrome.bluetoothLowEnergy.registerAdvertisement =
1839
+ function(advertisement, callback) {};
1840
+
1841
+
1842
+ /**
1843
+ * @param {number} advertisementId
1844
+ * @param {function()} callback
1845
+ * @see https://developer.chrome.com/apps/bluetoothLowEnergy#method-unregisterAdvertisement
1846
+ */
1847
+ chrome.bluetoothLowEnergy.unregisterAdvertisement =
1848
+ function(advertisementId, callback) {};
1849
+
1850
+
1821
1851
  /**
1822
1852
  * @see http://developer.chrome.com/extensions/commands.html
1823
1853
  * @const
@@ -2034,23 +2064,31 @@ chrome.enterprise.Token.prototype.subtleCrypto;
2034
2064
  /**
2035
2065
  * @param {!ArrayBuffer} challenge A challenge as emitted by the Verified Access
2036
2066
  * Web API.
2037
- * @param {function(!ArrayBuffer): void=} callback Called back with the
2038
- * challenge response.
2067
+ * @param {boolean|function(!ArrayBuffer): void} registerKeyOrCallback Either a
2068
+ * flag indicating whether to register the key, in which case the callback
2069
+ * is passed as the next arg, or the callback. If a flag is set, the current
2070
+ * Enterprise Machine Key is registered with the "system" token and
2071
+ * relinquishes the Enterprise Machine Key role. The key can then be
2072
+ * associated with a certificate and used like any other signing key. This
2073
+ * key is 2048-bit RSA. Subsequent calls to this function will then generate
2074
+ * a new Enterprise Machine Key.
2075
+ * @param {function(!ArrayBuffer=): void=} callback The callback (called back
2076
+ * with the challenge response), if arg2 was the registerKey flag.
2039
2077
  * @return {undefined}
2040
2078
  */
2041
2079
  chrome.enterprise.platformKeys.challengeMachineKey =
2042
- function(challenge, callback) {};
2080
+ function(challenge, registerKeyOrCallback, callback) {};
2043
2081
 
2044
2082
 
2045
2083
  /**
2046
2084
  * @param {!ArrayBuffer} challenge A challenge as emitted by the Verified Access
2047
2085
  * Web API.
2048
2086
  * @param {boolean} registerKey If set, the current Enterprise User Key is
2049
- * registered with the "user"> token and relinquishes the Enterprise User
2087
+ * registered with the "user" token and relinquishes the Enterprise User
2050
2088
  * Key role. The key can then be associated with a certificate and used like
2051
2089
  * any other signing key. This key is 2048-bit RSA. Subsequent calls to this
2052
2090
  * function will then generate a new Enterprise User Key.
2053
- * @param {function(!ArrayBuffer): void=} callback Called back with the
2091
+ * @param {function(!ArrayBuffer): void} callback Called back with the
2054
2092
  * challenge response.
2055
2093
  * @return {undefined}
2056
2094
  */
@@ -2355,6 +2393,16 @@ chrome.runtime.requestUpdateCheck = function(callback) {};
2355
2393
  chrome.runtime.restart = function() {};
2356
2394
 
2357
2395
 
2396
+ /**
2397
+ * @see https://developer.chrome.com/extensions/runtime#method-restartAfterDelay
2398
+ * @param {number} seconds Time to wait in seconds before rebooting the device,
2399
+ * or -1 to cancel a scheduled reboot.
2400
+ * @param {function():void=} opt_callback A callback to be invoked when a
2401
+ * restart request was successfully rescheduled.
2402
+ * @return {undefined}
2403
+ */
2404
+ chrome.runtime.restartAfterDelay = function(seconds, opt_callback) {};
2405
+
2358
2406
 
2359
2407
  /**
2360
2408
  * @see http://developer.chrome.com/extensions/runtime.html#method-connectNative
@@ -2513,7 +2561,7 @@ chrome.runtime.MessageSenderEvent.prototype.hasListeners = function() {};
2513
2561
 
2514
2562
  /**
2515
2563
  * @const
2516
- * @see https://developer.chrome.com/extensions/tabs.html
2564
+ * @see https://developer.chrome.com/extensions/tabs
2517
2565
  */
2518
2566
  chrome.tabs = {};
2519
2567
 
@@ -2724,7 +2772,11 @@ chrome.tabs.move = function(tabId, moveProperties, opt_callback) {};
2724
2772
  * @typedef {?{
2725
2773
  * active: (boolean|undefined),
2726
2774
  * pinned: (boolean|undefined),
2775
+ * audible: (boolean|undefined),
2776
+ * muted: (boolean|undefined),
2727
2777
  * highlighted: (boolean|undefined),
2778
+ * discarded: (boolean|undefined),
2779
+ * autoDiscardable: (boolean|undefined),
2728
2780
  * currentWindow: (boolean|undefined),
2729
2781
  * lastFocusedWindow: (boolean|undefined),
2730
2782
  * status: (!chrome.tabs.TabStatus|string|undefined),
@@ -4416,8 +4468,19 @@ chrome.history.onVisited;
4416
4468
  chrome.identity = {};
4417
4469
 
4418
4470
 
4471
+ /** @typedef {?{id: string}} */
4472
+ chrome.identity.AccountInfo;
4473
+
4474
+
4419
4475
  /**
4420
- * @param {(chrome.identity.TokenDetails|function(string=): void)}
4476
+ * @param {function(!Array<!chrome.identity.AccountInfo>): void} callback
4477
+ * @return {undefined}
4478
+ */
4479
+ chrome.identity.getAccounts = function(callback) {};
4480
+
4481
+
4482
+ /**
4483
+ * @param {(!chrome.identity.TokenDetails|function(string=): void)}
4421
4484
  * detailsOrCallback Token options or a callback function if no options are
4422
4485
  * specified.
4423
4486
  * @param {function(string=): void=} opt_callback A callback function if options
@@ -4427,31 +4490,37 @@ chrome.identity = {};
4427
4490
  chrome.identity.getAuthToken = function(detailsOrCallback, opt_callback) {};
4428
4491
 
4429
4492
 
4430
- /** @typedef {{interactive: (boolean|undefined)}} */
4493
+ /**
4494
+ * @typedef {?{
4495
+ * interactive: (boolean|undefined),
4496
+ * account: (!chrome.identity.AccountInfo|undefined),
4497
+ * scopes: (!Array<string>|undefined)
4498
+ * }}
4499
+ */
4431
4500
  chrome.identity.TokenDetails;
4432
4501
 
4433
4502
 
4434
4503
  /**
4435
- * @param {chrome.identity.InvalidTokenDetails} details
4436
- * @param {function(): void} callback
4504
+ * @param {!chrome.identity.InvalidTokenDetails} details
4505
+ * @param {function(): void=} opt_callback
4437
4506
  * @return {undefined}
4438
4507
  */
4439
- chrome.identity.removeCachedAuthToken = function(details, callback) {};
4508
+ chrome.identity.removeCachedAuthToken = function(details, opt_callback) {};
4440
4509
 
4441
4510
 
4442
- /** @typedef {{token: string}} */
4511
+ /** @typedef {?{token: string}} */
4443
4512
  chrome.identity.InvalidTokenDetails;
4444
4513
 
4445
4514
 
4446
4515
  /**
4447
- * @param {chrome.identity.WebAuthFlowDetails} details
4516
+ * @param {!chrome.identity.WebAuthFlowDetails} details
4448
4517
  * @param {function(string=): void} callback
4449
4518
  * @return {undefined}
4450
4519
  */
4451
4520
  chrome.identity.launchWebAuthFlow = function(details, callback) {};
4452
4521
 
4453
4522
 
4454
- /** @typedef {{url: string, interactive: (boolean|undefined)}} */
4523
+ /** @typedef {?{url: string, interactive: (boolean|undefined)}} */
4455
4524
  chrome.identity.WebAuthFlowDetails;
4456
4525
 
4457
4526
 
@@ -4462,10 +4531,51 @@ chrome.identity.WebAuthFlowDetails;
4462
4531
  chrome.identity.getProfileUserInfo = function(callback) {};
4463
4532
 
4464
4533
 
4465
- /** @type {!ChromeEvent} */
4534
+
4535
+ /** @constructor */
4536
+ chrome.identity.OnSignInChangedEvent = function() {}
4537
+
4538
+
4539
+ /**
4540
+ * @param {function(!chrome.identity.AccountInfo, boolean):void} callback
4541
+ * @return {undefined}
4542
+ */
4543
+ chrome.identity.OnSignInChangedEvent.prototype.addListener =
4544
+ function(callback) {};
4545
+
4546
+
4547
+ /**
4548
+ * @param {function(!chrome.identity.AccountInfo, boolean):void} callback
4549
+ * @return {undefined}
4550
+ */
4551
+ chrome.identity.OnSignInChangedEvent.prototype.removeListener =
4552
+ function(callback) {};
4553
+
4554
+
4555
+ /**
4556
+ * @param {function(!chrome.identity.AccountInfo, boolean):void} callback
4557
+ * @return {boolean}
4558
+ */
4559
+ chrome.identity.OnSignInChangedEvent.prototype.hasListener =
4560
+ function(callback) {};
4561
+
4562
+
4563
+ /** @return {boolean} */
4564
+ chrome.identity.OnSignInChangedEvent.prototype.hasListeners =
4565
+ function() {};
4566
+
4567
+
4568
+ /** @type {!chrome.identity.OnSignInChangedEvent} */
4466
4569
  chrome.identity.onSignInChanged;
4467
4570
 
4468
4571
 
4572
+ /**
4573
+ * @param {string=} opt_path
4574
+ * @return {string}
4575
+ */
4576
+ chrome.identity.getRedirectURL = function(opt_path) {};
4577
+
4578
+
4469
4579
  /**
4470
4580
  * @const
4471
4581
  * @see https://developer.chrome.com/extensions/input.ime.html
@@ -5982,18 +6092,17 @@ chrome.webNavigation.onHistoryStateUpdated;
5982
6092
 
5983
6093
  /**
5984
6094
  * Most event listeners for WebRequest take extra arguments.
5985
- * @see https://developer.chrome.com/extensions/webRequest.html.
6095
+ * @see https://developer.chrome.com/extensions/webRequest
5986
6096
  * @constructor
5987
6097
  */
5988
6098
  function WebRequestEvent() {}
5989
6099
 
5990
6100
 
5991
6101
  /**
5992
- * @param {function(!Object): (void|!BlockingResponse)} listener Listener
5993
- * function.
6102
+ * @param {function(!Object): void} listener Listener function.
5994
6103
  * @param {!RequestFilter} filter A set of filters that restrict
5995
6104
  * the events that will be sent to this listener.
5996
- * @param {Array<string>=} opt_extraInfoSpec Array of extra information
6105
+ * @param {!Array<string>=} opt_extraInfoSpec Array of extra information
5997
6106
  * that should be passed to the listener function.
5998
6107
  * @return {undefined}
5999
6108
  */
@@ -6002,33 +6111,123 @@ WebRequestEvent.prototype.addListener =
6002
6111
 
6003
6112
 
6004
6113
  /**
6005
- * @param {function(!Object): (void|!BlockingResponse)} listener Listener
6006
- * function.
6114
+ * @param {function(!Object): void} listener Listener function.
6007
6115
  * @return {undefined}
6008
6116
  */
6009
6117
  WebRequestEvent.prototype.removeListener = function(listener) {};
6010
6118
 
6011
6119
 
6012
6120
  /**
6013
- * @param {function(!Object): (void|!BlockingResponse)} listener Listener
6014
- * function.
6121
+ * @param {function(!Object): void} listener Listener function.
6015
6122
  * @return {undefined}
6016
6123
  */
6017
6124
  WebRequestEvent.prototype.hasListener = function(listener) {};
6018
6125
 
6019
6126
 
6020
6127
  /**
6021
- * @param {function(!Object): (void|!BlockingResponse)} listener Listener
6022
- * function.
6128
+ * @param {function(!Object): void} listener Listener function.
6023
6129
  * @return {undefined}
6024
6130
  */
6025
6131
  WebRequestEvent.prototype.hasListeners = function(listener) {};
6026
6132
 
6027
6133
 
6134
+ /**
6135
+ * Some event listeners can be optionally synchronous.
6136
+ * @see https://developer.chrome.com/extensions/webRequest
6137
+ * @constructor
6138
+ */
6139
+ function WebRequestOptionallySynchronousEvent() {}
6140
+
6141
+
6142
+ /**
6143
+ * @param {function(!Object): (undefined|!BlockingResponse)} listener Listener
6144
+ * function.
6145
+ * @param {!RequestFilter} filter A set of filters that restrict
6146
+ * the events that will be sent to this listener.
6147
+ * @param {!Array<string>=} opt_extraInfoSpec Array of extra information
6148
+ * that should be passed to the listener function.
6149
+ * @return {undefined}
6150
+ */
6151
+ WebRequestOptionallySynchronousEvent.prototype.addListener = function(
6152
+ listener, filter, opt_extraInfoSpec) {};
6153
+
6154
+
6155
+ /**
6156
+ * @param {function(!Object): (undefined|!BlockingResponse)} listener Listener
6157
+ * function.
6158
+ * @return {undefined}
6159
+ */
6160
+ WebRequestOptionallySynchronousEvent.prototype.removeListener = function(
6161
+ listener) {};
6162
+
6028
6163
 
6029
6164
  /**
6030
- * The onErrorOccurred event takes one less parameter than the others.
6031
- * @see https://developer.chrome.com/extensions/webRequest.html.
6165
+ * @param {function(!Object): (undefined|!BlockingResponse)} listener Listener
6166
+ * function.
6167
+ * @return {undefined}
6168
+ */
6169
+ WebRequestOptionallySynchronousEvent.prototype.hasListener = function(
6170
+ listener) {};
6171
+
6172
+
6173
+ /**
6174
+ * @param {function(!Object): (undefined|!BlockingResponse)} listener Listener
6175
+ * function.
6176
+ * @return {undefined}
6177
+ */
6178
+ WebRequestOptionallySynchronousEvent.prototype.hasListeners = function(
6179
+ listener) {};
6180
+
6181
+
6182
+ /**
6183
+ * The onAuthRequired event listener can be optionally synchronous, and can also
6184
+ * optionally take a callback.
6185
+ * @see https://developer.chrome.com/extensions/webRequest
6186
+ * @constructor
6187
+ */
6188
+ function WebRequestOnAuthRequiredEvent() {}
6189
+
6190
+
6191
+ /**
6192
+ * @param {function(!Object, function(!BlockingResponse)=):
6193
+ * (undefined|!BlockingResponse)} listener Listener function.
6194
+ * @param {!RequestFilter} filter A set of filters that restrict
6195
+ * the events that will be sent to this listener.
6196
+ * @param {!Array<string>=} opt_extraInfoSpec Array of extra information
6197
+ * that should be passed to the listener function.
6198
+ * @return {undefined}
6199
+ */
6200
+ WebRequestOnAuthRequiredEvent.prototype.addListener = function(
6201
+ listener, filter, opt_extraInfoSpec) {};
6202
+
6203
+
6204
+ /**
6205
+ * @param {function(!Object): (undefined|!BlockingResponse)} listener Listener
6206
+ * function.
6207
+ * @return {undefined}
6208
+ */
6209
+ WebRequestOnAuthRequiredEvent.prototype.removeListener = function(listener) {};
6210
+
6211
+
6212
+ /**
6213
+ * @param {function(!Object): (undefined|!BlockingResponse)} listener Listener
6214
+ * function.
6215
+ * @return {undefined}
6216
+ */
6217
+ WebRequestOnAuthRequiredEvent.prototype.hasListener = function(listener) {};
6218
+
6219
+
6220
+ /**
6221
+ * @param {function(!Object): (undefined|!BlockingResponse)} listener Listener
6222
+ * function.
6223
+ * @return {undefined}
6224
+ */
6225
+ WebRequestOnAuthRequiredEvent.prototype.hasListeners = function(listener) {};
6226
+
6227
+
6228
+ /**
6229
+ * The onErrorOccurred event takes one fewer parameter than the others.
6230
+ * @see https://developer.chrome.com/extensions/webRequest
6032
6231
  * @constructor
6033
6232
  */
6034
6233
  function WebRequestOnErrorOccurredEvent() {}
@@ -6067,7 +6266,7 @@ WebRequestOnErrorOccurredEvent.prototype.hasListeners = function(listener) {};
6067
6266
 
6068
6267
  /**
6069
6268
  * @const
6070
- * @see https://developer.chrome.com/extensions/webRequest.html
6269
+ * @see https://developer.chrome.com/extensions/webRequest
6071
6270
  */
6072
6271
  chrome.webRequest = {};
6073
6272
 
@@ -6079,7 +6278,7 @@ chrome.webRequest = {};
6079
6278
  chrome.webRequest.handlerBehaviorChanged = function(opt_callback) {};
6080
6279
 
6081
6280
 
6082
- /** @type {!WebRequestEvent} */
6281
+ /** @type {!WebRequestOnAuthRequiredEvent} */
6083
6282
  chrome.webRequest.onAuthRequired;
6084
6283
 
6085
6284
 
@@ -6087,11 +6286,11 @@ chrome.webRequest.onAuthRequired;
6087
6286
  chrome.webRequest.onBeforeRedirect;
6088
6287
 
6089
6288
 
6090
- /** @type {!WebRequestEvent} */
6289
+ /** @type {!WebRequestOptionallySynchronousEvent} */
6091
6290
  chrome.webRequest.onBeforeRequest;
6092
6291
 
6093
6292
 
6094
- /** @type {!WebRequestEvent} */
6293
+ /** @type {!WebRequestOptionallySynchronousEvent} */
6095
6294
  chrome.webRequest.onBeforeSendHeaders;
6096
6295
 
6097
6296
 
@@ -6103,7 +6302,7 @@ chrome.webRequest.onCompleted;
6103
6302
  chrome.webRequest.onErrorOccurred;
6104
6303
 
6105
6304
 
6106
- /** @type {!WebRequestEvent} */
6305
+ /** @type {!WebRequestOptionallySynchronousEvent} */
6107
6306
  chrome.webRequest.onHeadersReceived;
6108
6307
 
6109
6308
 
@@ -6543,7 +6742,6 @@ function Debuggee() {}
6543
6742
  Debuggee.prototype.tabId;
6544
6743
 
6545
6744
 
6546
-
6547
6745
  /**
6548
6746
  * @see https://developer.chrome.com/extensions/contentSettings.html#type-ResourceIdentifier
6549
6747
  * @constructor
@@ -6989,82 +7187,49 @@ ChromeSetting.prototype.onChange;
6989
7187
 
6990
7188
 
6991
7189
  /**
6992
- * @see https://developer.chrome.com/extensions/webRequest.html#type-RequestFilter
6993
- * @constructor
7190
+ * @see https://developer.chrome.com/extensions/webRequest#type-RequestFilter
7191
+ * @typedef {?{
7192
+ * urls: !Array<string>,
7193
+ * types: (!Array<string>|undefined),
7194
+ * tabId: (number|undefined),
7195
+ * windowId: (number|undefined),
7196
+ * }}
6994
7197
  */
6995
- function RequestFilter() {}
6996
-
6997
-
6998
- /** @type {!Array<string>} */
6999
- RequestFilter.prototype.urls;
7000
-
7001
-
7002
- /** @type {!Array<string>} */
7003
- RequestFilter.prototype.types;
7004
-
7005
-
7006
- /** @type {number} */
7007
- RequestFilter.prototype.tabId;
7008
-
7009
-
7010
- /** @type {number} */
7011
- RequestFilter.prototype.windowId;
7198
+ var RequestFilter;
7012
7199
 
7013
7200
 
7014
7201
 
7015
7202
  /**
7016
- * @see https://developer.chrome.com/extensions/webRequest.html#type-HttpHeaders
7017
- * @constructor
7203
+ * @see https://developer.chrome.com/extensions/webRequest#type-HttpHeaders
7204
+ * @typedef {?{
7205
+ * name: string,
7206
+ * value: (string|undefined),
7207
+ * binaryValue: (!Array<number>|undefined),
7208
+ * }}
7018
7209
  */
7019
- function HttpHeader() {}
7020
-
7021
-
7022
- /** @type {string} */
7023
- HttpHeader.prototype.name;
7024
-
7210
+ var HttpHeader;
7025
7211
 
7026
- /** @type {string} */
7027
- HttpHeader.prototype.value;
7028
-
7029
-
7030
- /** @type {!Array<number>} */
7031
- HttpHeader.prototype.binaryValue;
7032
7212
 
7033
7213
 
7034
7214
  /**
7035
- * @see https://developer.chrome.com/extensions/webRequest.html#type-HttpHeaders
7036
- * @typedef {Array<!HttpHeader>}
7037
- * @private
7215
+ * @see https://developer.chrome.com/extensions/webRequest#type-HttpHeaders
7216
+ * @typedef {?Array<!HttpHeader>}
7038
7217
  */
7039
- var HttpHeaders_;
7218
+ chrome.webRequest.HttpHeaders;
7040
7219
 
7041
7220
 
7042
7221
 
7043
7222
  /**
7044
- * @see https://developer.chrome.com/extensions/webRequest.html#type-BlockingResponse
7045
- * @constructor
7223
+ * @see https://developer.chrome.com/extensions/webRequest#type-BlockingResponse
7224
+ * @typedef {?{
7225
+ * cancel: (boolean|undefined),
7226
+ * redirectUrl: (string|undefined),
7227
+ * requestHeaders: (!chrome.webRequest.HttpHeaders|undefined),
7228
+ * responseHeaders: (!chrome.webRequest.HttpHeaders|undefined),
7229
+ * authCredentials: (!{username: string, password: string}|undefined),
7230
+ * }}
7046
7231
  */
7047
- function BlockingResponse() {}
7048
-
7049
-
7050
- /** @type {boolean} */
7051
- BlockingResponse.prototype.cancel;
7052
-
7053
-
7054
- /** @type {string} */
7055
- BlockingResponse.prototype.redirectUrl;
7056
-
7057
-
7058
- /** @type {!HttpHeaders_} */
7059
- BlockingResponse.prototype.requestHeaders;
7060
-
7061
-
7062
- /** @type {!HttpHeaders_} */
7063
- BlockingResponse.prototype.responseHeaders;
7064
-
7065
-
7066
- /** @type {Object<string,string>} */
7067
- BlockingResponse.prototype.authCredentials;
7232
+ var BlockingResponse;
7068
7233
 
7069
7234
 
7070
7235
 
@@ -9932,6 +10097,13 @@ chrome.bluetoothPrivate.setAdapterState = function(adapterState, callback) {};
9932
10097
  chrome.bluetoothPrivate.setPairingResponse = function(options, callback) {};
9933
10098
 
9934
10099
 
10100
+ /**
10101
+ * @param {string} deviceAddress
10102
+ * @param {function():void=} callback
10103
+ */
10104
+ chrome.bluetoothPrivate.disconnectAll = function(deviceAddress, callback) {};
10105
+
10106
+
9935
10107
  /**
9936
10108
  * @param {string} deviceAddress
9937
10109
  * @param {function():void=} callback