google-closure-compiler 20170218.0.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.
package/compiler.jar CHANGED
Binary file
@@ -442,13 +442,16 @@ angular.Directive;
442
442
 
443
443
 
444
444
 
445
- /** @interface */
445
+ /**
446
+ * @interface
447
+ * @template T
448
+ */
446
449
  angular.Change;
447
450
 
448
- /** @type {*} */
451
+ /** @type {T} */
449
452
  angular.Change.prototype.currentValue;
450
453
 
451
- /** @type {*} */
454
+ /** @type {T} */
452
455
  angular.Change.prototype.previousValue;
453
456
 
454
457
  /** @return {boolean} */
@@ -970,9 +973,10 @@ angular.Scope.prototype.$emit = function(name, args) {};
970
973
  angular.Scope.prototype.$eval = function(opt_exp, opt_locals) {};
971
974
 
972
975
  /**
973
- * @param {(string|function())=} opt_exp
976
+ * @param {(string|function(angular.Scope, ?))=} opt_exp
977
+ * @param {!Object=} opt_locals
974
978
  */
975
- angular.Scope.prototype.$evalAsync = function(opt_exp) {};
979
+ angular.Scope.prototype.$evalAsync = function(opt_exp, opt_locals) {};
976
980
 
977
981
  /** @type {string} */
978
982
  angular.Scope.prototype.$id;
@@ -393,13 +393,16 @@ angular.Directive;
393
393
 
394
394
 
395
395
 
396
- /** @interface */
396
+ /**
397
+ * @interface
398
+ * @template T
399
+ */
397
400
  angular.Change = function() {};
398
401
 
399
- /** @type {*} */
402
+ /** @type {T} */
400
403
  angular.Change.prototype.currentValue;
401
404
 
402
- /** @type {*} */
405
+ /** @type {T} */
403
406
  angular.Change.prototype.previousValue;
404
407
 
405
408
  /** @return {boolean} */
@@ -918,9 +921,10 @@ angular.Scope.prototype.$emit = function(name, args) {};
918
921
  angular.Scope.prototype.$eval = function(opt_exp, opt_locals) {};
919
922
 
920
923
  /**
921
- * @param {(string|function())=} opt_exp
924
+ * @param {(string|function(angular.Scope, ?))=} opt_exp
925
+ * @param {!Object=} opt_locals
922
926
  */
923
- angular.Scope.prototype.$evalAsync = function(opt_exp) {};
927
+ angular.Scope.prototype.$evalAsync = function(opt_exp, opt_locals) {};
924
928
 
925
929
  /** @type {string} */
926
930
  angular.Scope.prototype.$id;
@@ -1560,6 +1564,9 @@ angular.$http.Config.prototype.data
1560
1564
  /** @type {(Object<?string|undefined>|undefined)} */
1561
1565
  angular.$http.Config.prototype.headers;
1562
1566
 
1567
+ /** @type {(string|undefined)} */
1568
+ angular.$http.Config.prototype.jsonpCallbackParam;
1569
+
1563
1570
  /** @type {(string|undefined)} */
1564
1571
  angular.$http.Config.prototype.method;
1565
1572
 
@@ -548,7 +548,8 @@ md.$toast.prototype.simple = function() {};
548
548
  * isOpen: function():boolean,
549
549
  * toggle: function(),
550
550
  * open: function(),
551
- * close: function()
551
+ * close: function(),
552
+ * onClose: function(function()),
552
553
  * }}
553
554
  */
554
555
  md._sidenavService;
@@ -896,7 +896,8 @@ md.$panel = function() {};
896
896
  * onOpenComplete: (Function|undefined),
897
897
  * onRemoving: (Function|undefined),
898
898
  * onDomRemoved: (Function|undefined),
899
- * origin: (!angular.JQLite|!Element|undefined)
899
+ * origin: (!angular.JQLite|!Element|undefined),
900
+ * onCloseSuccess: (function(md.$panel.MdPanelRef, string)|undefined)
900
901
  * }}
901
902
  */
902
903
  md.$panel.config;
@@ -953,6 +954,15 @@ md.$panel.prototype.animation = {
953
954
  FADE: 'md-panel-animate-fade'
954
955
  };
955
956
 
957
+ /**
958
+ * Possible default closeReasons for the close function.
959
+ * @enum {string}
960
+ */
961
+ md.$panel.prototype.closeReasons = {
962
+ CLICK_OUTSIDE: 'clickOutsideToClose',
963
+ ESCAPE: 'escapeToClose',
964
+ };
965
+
956
966
 
957
967
  /**
958
968
  * @param {!md.$panel.config} config
@@ -970,8 +980,11 @@ md.$panel.MdPanelRef.prototype.isAttached;
970
980
  /** @return {!angular.$q.Promise<!md.$panel.MdPanelRef>} */
971
981
  md.$panel.MdPanelRef.prototype.open = function() {};
972
982
 
973
- /** @return {!angular.$q.Promise<!md.$panel.MdPanelRef>} */
974
- md.$panel.MdPanelRef.prototype.close = function() {};
983
+ /**
984
+ * @param {string=} opt_closeReason
985
+ * @return {!angular.$q.Promise<!md.$panel.MdPanelRef>}
986
+ */
987
+ md.$panel.MdPanelRef.prototype.close = function(opt_closeReason) {};
975
988
 
976
989
  /** @return {!angular.$q.Promise<!md.$panel.MdPanelRef>} */
977
990
  md.$panel.MdPanelRef.prototype.attach = function() {};
@@ -985,6 +998,7 @@ md.$panel.MdPanelRef.prototype.show = function() {};
985
998
  /** @return {!angular.$q.Promise<!md.$panel.MdPanelRef>} */
986
999
  md.$panel.MdPanelRef.prototype.hide = function() {};
987
1000
 
1001
+ /** @return {void} */
988
1002
  md.$panel.MdPanelRef.prototype.destroy = function() {};
989
1003
 
990
1004
  /** @param {string} classToAdd */
@@ -242,6 +242,14 @@ ExpectChain.prototype.decrease = function(value, name, opt_message) {};
242
242
  /** @const */
243
243
  var assert = {};
244
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
+
245
253
  /**
246
254
  * @param {*} object
247
255
  * @param {string=} opt_message
@@ -2064,23 +2064,31 @@ chrome.enterprise.Token.prototype.subtleCrypto;
2064
2064
  /**
2065
2065
  * @param {!ArrayBuffer} challenge A challenge as emitted by the Verified Access
2066
2066
  * Web API.
2067
- * @param {function(!ArrayBuffer): void=} callback Called back with the
2068
- * 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.
2069
2077
  * @return {undefined}
2070
2078
  */
2071
2079
  chrome.enterprise.platformKeys.challengeMachineKey =
2072
- function(challenge, callback) {};
2080
+ function(challenge, registerKeyOrCallback, callback) {};
2073
2081
 
2074
2082
 
2075
2083
  /**
2076
2084
  * @param {!ArrayBuffer} challenge A challenge as emitted by the Verified Access
2077
2085
  * Web API.
2078
2086
  * @param {boolean} registerKey If set, the current Enterprise User Key is
2079
- * registered with the "user"> token and relinquishes the Enterprise User
2087
+ * registered with the "user" token and relinquishes the Enterprise User
2080
2088
  * Key role. The key can then be associated with a certificate and used like
2081
2089
  * any other signing key. This key is 2048-bit RSA. Subsequent calls to this
2082
2090
  * function will then generate a new Enterprise User Key.
2083
- * @param {function(!ArrayBuffer): void=} callback Called back with the
2091
+ * @param {function(!ArrayBuffer): void} callback Called back with the
2084
2092
  * challenge response.
2085
2093
  * @return {undefined}
2086
2094
  */
@@ -2385,6 +2393,16 @@ chrome.runtime.requestUpdateCheck = function(callback) {};
2385
2393
  chrome.runtime.restart = function() {};
2386
2394
 
2387
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
+
2388
2406
 
2389
2407
  /**
2390
2408
  * @see http://developer.chrome.com/extensions/runtime.html#method-connectNative
@@ -4450,8 +4468,19 @@ chrome.history.onVisited;
4450
4468
  chrome.identity = {};
4451
4469
 
4452
4470
 
4471
+ /** @typedef {?{id: string}} */
4472
+ chrome.identity.AccountInfo;
4473
+
4474
+
4453
4475
  /**
4454
- * @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)}
4455
4484
  * detailsOrCallback Token options or a callback function if no options are
4456
4485
  * specified.
4457
4486
  * @param {function(string=): void=} opt_callback A callback function if options
@@ -4461,31 +4490,37 @@ chrome.identity = {};
4461
4490
  chrome.identity.getAuthToken = function(detailsOrCallback, opt_callback) {};
4462
4491
 
4463
4492
 
4464
- /** @typedef {{interactive: (boolean|undefined)}} */
4493
+ /**
4494
+ * @typedef {?{
4495
+ * interactive: (boolean|undefined),
4496
+ * account: (!chrome.identity.AccountInfo|undefined),
4497
+ * scopes: (!Array<string>|undefined)
4498
+ * }}
4499
+ */
4465
4500
  chrome.identity.TokenDetails;
4466
4501
 
4467
4502
 
4468
4503
  /**
4469
- * @param {chrome.identity.InvalidTokenDetails} details
4470
- * @param {function(): void} callback
4504
+ * @param {!chrome.identity.InvalidTokenDetails} details
4505
+ * @param {function(): void=} opt_callback
4471
4506
  * @return {undefined}
4472
4507
  */
4473
- chrome.identity.removeCachedAuthToken = function(details, callback) {};
4508
+ chrome.identity.removeCachedAuthToken = function(details, opt_callback) {};
4474
4509
 
4475
4510
 
4476
- /** @typedef {{token: string}} */
4511
+ /** @typedef {?{token: string}} */
4477
4512
  chrome.identity.InvalidTokenDetails;
4478
4513
 
4479
4514
 
4480
4515
  /**
4481
- * @param {chrome.identity.WebAuthFlowDetails} details
4516
+ * @param {!chrome.identity.WebAuthFlowDetails} details
4482
4517
  * @param {function(string=): void} callback
4483
4518
  * @return {undefined}
4484
4519
  */
4485
4520
  chrome.identity.launchWebAuthFlow = function(details, callback) {};
4486
4521
 
4487
4522
 
4488
- /** @typedef {{url: string, interactive: (boolean|undefined)}} */
4523
+ /** @typedef {?{url: string, interactive: (boolean|undefined)}} */
4489
4524
  chrome.identity.WebAuthFlowDetails;
4490
4525
 
4491
4526
 
@@ -4496,10 +4531,51 @@ chrome.identity.WebAuthFlowDetails;
4496
4531
  chrome.identity.getProfileUserInfo = function(callback) {};
4497
4532
 
4498
4533
 
4499
- /** @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} */
4500
4569
  chrome.identity.onSignInChanged;
4501
4570
 
4502
4571
 
4572
+ /**
4573
+ * @param {string=} opt_path
4574
+ * @return {string}
4575
+ */
4576
+ chrome.identity.getRedirectURL = function(opt_path) {};
4577
+
4578
+
4503
4579
  /**
4504
4580
  * @const
4505
4581
  * @see https://developer.chrome.com/extensions/input.ime.html
@@ -431,17 +431,24 @@ function fdescribe(description, handler) {}
431
431
  */
432
432
  function expect(expectedValue) {}
433
433
 
434
+ /** @typedef {function()} */
435
+ var DoneFunc;
436
+
437
+ /** @type {DoneFunc} */
438
+ var doneFuncInst_;
439
+ /** @type {function(?=)} */
440
+ doneFuncInst_.fail;
434
441
 
435
442
  /**
436
443
  * @param {string} description
437
- * @param {function(this:jasmine.Spec, function())} handler
444
+ * @param {function(this:jasmine.Spec, DoneFunc)} handler
438
445
  */
439
446
  function it(description, handler) {}
440
447
 
441
448
 
442
449
  /**
443
450
  * @param {string} description
444
- * @param {function(this:jasmine.Spec, function())} handler
451
+ * @param {function(this:jasmine.Spec, DoneFunc)} handler
445
452
  */
446
453
  function fit(description, handler) {}
447
454
 
@@ -471,7 +478,7 @@ function xdescribe(description, handler) {}
471
478
 
472
479
  /**
473
480
  * @param {string} description
474
- * @param {function(this:jasmine.Spec, function()=)} handler
481
+ * @param {function(this:jasmine.Spec, DoneFunc)} handler
475
482
  */
476
483
  function xit(description, handler) {}
477
484
 
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  /**
18
- * @fileoverview Externs for the Google Maps v3.26 API.
18
+ * @fileoverview Externs for the Google Maps v3.27 API.
19
19
  * @see http://code.google.com/apis/maps/documentation/javascript/reference.html
20
20
  * @externs
21
21
  */
@@ -1249,6 +1249,11 @@ google.maps.DirectionsRequest.prototype.destination;
1249
1249
  */
1250
1250
  google.maps.DirectionsRequest.prototype.drivingOptions;
1251
1251
 
1252
+ /**
1253
+ * @type {boolean|undefined}
1254
+ */
1255
+ google.maps.DirectionsRequest.prototype.newForwardGeocoder;
1256
+
1252
1257
  /**
1253
1258
  * @type {boolean|undefined}
1254
1259
  */
@@ -1494,6 +1499,11 @@ google.maps.DistanceMatrixRequest.prototype.destinations;
1494
1499
  */
1495
1500
  google.maps.DistanceMatrixRequest.prototype.drivingOptions;
1496
1501
 
1502
+ /**
1503
+ * @type {boolean|undefined}
1504
+ */
1505
+ google.maps.DistanceMatrixRequest.prototype.newForwardGeocoder;
1506
+
1497
1507
  /**
1498
1508
  * @type {Array<(string|google.maps.LatLng|google.maps.Place)>}
1499
1509
  */
@@ -2046,6 +2056,11 @@ google.maps.GeocoderRequest.prototype.componentRestrictions;
2046
2056
  */
2047
2057
  google.maps.GeocoderRequest.prototype.location;
2048
2058
 
2059
+ /**
2060
+ * @type {boolean}
2061
+ */
2062
+ google.maps.GeocoderRequest.prototype.newForwardGeocoder;
2063
+
2049
2064
  /**
2050
2065
  * @type {string}
2051
2066
  */
@@ -3238,6 +3253,11 @@ google.maps.MapOptions.prototype.fullscreenControl;
3238
3253
  */
3239
3254
  google.maps.MapOptions.prototype.fullscreenControlOptions;
3240
3255
 
3256
+ /**
3257
+ * @type {string}
3258
+ */
3259
+ google.maps.MapOptions.prototype.gestureHandling;
3260
+
3241
3261
  /**
3242
3262
  * @type {number}
3243
3263
  */
@@ -5973,6 +5993,16 @@ google.maps.places.AutocompleteOptions.prototype.bounds;
5973
5993
  */
5974
5994
  google.maps.places.AutocompleteOptions.prototype.componentRestrictions;
5975
5995
 
5996
+ /**
5997
+ * @type {boolean|undefined}
5998
+ */
5999
+ google.maps.places.AutocompleteOptions.prototype.placeIdOnly;
6000
+
6001
+ /**
6002
+ * @type {boolean|undefined}
6003
+ */
6004
+ google.maps.places.AutocompleteOptions.prototype.strictBounds;
6005
+
5976
6006
  /**
5977
6007
  * @type {Array<string>|undefined}
5978
6008
  */
@@ -6073,7 +6103,7 @@ google.maps.places.AutocompletionRequest.prototype.types;
6073
6103
  google.maps.places.ComponentRestrictions = function() {};
6074
6104
 
6075
6105
  /**
6076
- * @type {string}
6106
+ * @type {string|Array<string>}
6077
6107
  */
6078
6108
  google.maps.places.ComponentRestrictions.prototype.country;
6079
6109