OLD | NEW |
1 /** | 1 /** |
2 * @fileoverview Closure compiler externs for the Polymer library. | 2 * @fileoverview Closure compiler externs for the Polymer library. |
3 * | 3 * |
4 * @externs | 4 * @externs |
5 * @license | 5 * @license |
6 * Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 6 * Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
7 * This code may only be used under the BSD style license found at | 7 * This code may only be used under the BSD style license found at |
8 * http://polymer.github.io/LICENSE.txt. The complete set of authors may be | 8 * http://polymer.github.io/LICENSE.txt. The complete set of authors may be |
9 * found at http://polymer.github.io/AUTHORS.txt. The complete set of | 9 * found at http://polymer.github.io/AUTHORS.txt. The complete set of |
10 * contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt. Code | 10 * contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt. Code |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 * | 343 * |
344 * This method allows introspecting the configuration of a Polymer element's | 344 * This method allows introspecting the configuration of a Polymer element's |
345 * properties as configured in its `properties` object. Note, this method | 345 * properties as configured in its `properties` object. Note, this method |
346 * normalizes shorthand forms of the `properties` object into longhand form. | 346 * normalizes shorthand forms of the `properties` object into longhand form. |
347 * | 347 * |
348 * @param {string} property Name of property to introspect. | 348 * @param {string} property Name of property to introspect. |
349 * @return {Object} Property descriptor for specified property. | 349 * @return {Object} Property descriptor for specified property. |
350 */ | 350 */ |
351 Polymer.Base.getPropertyInfo = function(property) {}; | 351 Polymer.Base.getPropertyInfo = function(property) {}; |
352 | 352 |
| 353 Polymer.Gestures; |
| 354 |
| 355 /** |
| 356 * Gets the original target of the given event. |
| 357 * |
| 358 * Cheaper than Polymer.dom(ev).path[0]; |
| 359 * See https://github.com/Polymer/polymer/blob/master/src/standard/gestures.html
#L191 |
| 360 * |
| 361 * @param {Event} ev . |
| 362 * @return {Element} The original target of the event. |
| 363 */ |
| 364 Polymer.Gestures.findOriginalTarget = function(ev) {}; |
| 365 |
| 366 |
353 /** | 367 /** |
354 * @param {number} handle | 368 * @param {number} handle |
355 */ | 369 */ |
356 PolymerElement.prototype.cancelAsync = function(handle) {}; | 370 PolymerElement.prototype.cancelAsync = function(handle) {}; |
357 | 371 |
358 /** | 372 /** |
359 * Call debounce to collapse multiple requests for a named task into one | 373 * Call debounce to collapse multiple requests for a named task into one |
360 * invocation, which is made after the wait time has elapsed with no new | 374 * invocation, which is made after the wait time has elapsed with no new |
361 * request. If no wait time is given, the callback is called at microtask timing | 375 * request. If no wait time is given, the callback is called at microtask timing |
362 * (guaranteed to be before paint). | 376 * (guaranteed to be before paint). |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 PolymerElement.prototype.arrayDelete = function(array, item) {}; | 432 PolymerElement.prototype.arrayDelete = function(array, item) {}; |
419 | 433 |
420 /** | 434 /** |
421 * Resolve a url to make it relative to the current doc. | 435 * Resolve a url to make it relative to the current doc. |
422 * @param {string} url | 436 * @param {string} url |
423 * @return {string} | 437 * @return {string} |
424 */ | 438 */ |
425 PolymerElement.prototype.resolveUrl = function(url) {}; | 439 PolymerElement.prototype.resolveUrl = function(url) {}; |
426 | 440 |
427 /** | 441 /** |
| 442 * Re-evaluates and applies custom CSS properties based on dynamic |
| 443 * changes to this element's scope, such as adding or removing classes |
| 444 * in this element's local DOM. |
| 445 * |
| 446 * For performance reasons, Polymer's custom CSS property shim relies |
| 447 * on this explicit signal from the user to indicate when changes have |
| 448 * been made that affect the values of custom properties. |
| 449 * |
| 450 * @param {Object=} properties Properties object which, if provided is mixed |
| 451 * into the element's `customStyle` property. This argument provides a |
| 452 * shortcut for setting `customStyle` and then calling `updateStyles`. |
| 453 */ |
| 454 PolymerElement.prototype.updateStyles = function(properties) {}; |
| 455 |
| 456 /** |
428 * Logs a message to the console. | 457 * Logs a message to the console. |
429 * | 458 * |
430 * @param {!Array} var_args | 459 * @param {!Array} var_args |
431 * @protected | 460 * @protected |
432 */ | 461 */ |
433 PolymerElement.prototype._log = function(var_args) {}; | 462 PolymerElement.prototype._log = function(var_args) {}; |
434 | 463 |
435 /** | 464 /** |
436 * Logs a message to the console with a 'warn' level. | 465 * Logs a message to the console with a 'warn' level. |
437 * | 466 * |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 * y - clientY coordinate for event | 703 * y - clientY coordinate for event |
675 * sourceEvent - the original DOM event that caused the down action | 704 * sourceEvent - the original DOM event that caused the down action |
676 * | 705 * |
677 * @typedef {{ | 706 * @typedef {{ |
678 * x: number, | 707 * x: number, |
679 * y: number, | 708 * y: number, |
680 * sourceEvent: Event | 709 * sourceEvent: Event |
681 * }} | 710 * }} |
682 */ | 711 */ |
683 var PolymerTouchEvent; | 712 var PolymerTouchEvent; |
OLD | NEW |