| OLD | NEW |
| 1 // SSSSSSSSSSSSSSS TTTTTTTTTTTTTTTTTTTTTTT OOOOOOOOO PPPPPPPPPPPPPPPP
P | 1 // SSSSSSSSSSSSSSS TTTTTTTTTTTTTTTTTTTTTTT OOOOOOOOO PPPPPPPPPPPPPPPP
P |
| 2 // SS:::::::::::::::ST:::::::::::::::::::::T OO:::::::::OO P:::::::::::::::
:P | 2 // SS:::::::::::::::ST:::::::::::::::::::::T OO:::::::::OO P:::::::::::::::
:P |
| 3 // S:::::SSSSSS::::::ST:::::::::::::::::::::T OO:::::::::::::OO P::::::PPPPPP:::
::P | 3 // S:::::SSSSSS::::::ST:::::::::::::::::::::T OO:::::::::::::OO P::::::PPPPPP:::
::P |
| 4 // S:::::S SSSSSSST:::::TT:::::::TT:::::TO:::::::OOO:::::::OPP:::::P P::
:::P | 4 // S:::::S SSSSSSST:::::TT:::::::TT:::::TO:::::::OOO:::::::OPP:::::P P::
:::P |
| 5 // S:::::S TTTTTT T:::::T TTTTTTO::::::O O::::::O P::::P P::
:::P | 5 // S:::::S TTTTTT T:::::T TTTTTTO::::::O O::::::O P::::P P::
:::P |
| 6 // S:::::S T:::::T O:::::O O:::::O P::::P P::
:::P | 6 // S:::::S T:::::T O:::::O O:::::O P::::P P::
:::P |
| 7 // S::::SSSS P::::PPPPPP:::
::P | 7 // S::::SSSS P::::PPPPPP:::
::P |
| 8 // SS::::::SSSSS This file is generated. To update it, P:::::::::::::
PP | 8 // SS::::::SSSSS This file is generated. To update it, P:::::::::::::
PP |
| 9 // SSS::::::::SS run roll_closure_compiler. P::::PPPPPPPPP | 9 // SSS::::::::SS run roll_closure_compiler. P::::PPPPPPPPP |
| 10 // SSSSSS::::S P::::P | 10 // SSSSSS::::S P::::P |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 177 |
| 178 /** | 178 /** |
| 179 * Return the element whose local dom within which this element is contained. | 179 * Return the element whose local dom within which this element is contained. |
| 180 * @type {?Element} | 180 * @type {?Element} |
| 181 */ | 181 */ |
| 182 PolymerElement.prototype.domHost; | 182 PolymerElement.prototype.domHost; |
| 183 | 183 |
| 184 /** | 184 /** |
| 185 * Notifies the event binding system of a change to a property. | 185 * Notifies the event binding system of a change to a property. |
| 186 * @param {string} path The path to set. | 186 * @param {string} path The path to set. |
| 187 * @param {*} value The value to send in the update notification. | 187 * @param {*=} value The value to send in the update notification. |
| 188 * @param {boolean=} fromAbove When true, specifies that the change came from | 188 * @param {boolean=} fromAbove When true, specifies that the change came from |
| 189 * above this element and thus upward notification is not necessary. | 189 * above this element and thus upward notification is not necessary. |
| 190 * @return {boolean} True if notification actually took place, based on a dirty | 190 * @return {boolean} True if notification actually took place, based on a dirty |
| 191 * check of whether the new value was already known. | 191 * check of whether the new value was already known. |
| 192 */ | 192 */ |
| 193 PolymerElement.prototype.notifyPath = function(path, value, fromAbove) {}; | 193 PolymerElement.prototype.notifyPath = function(path, value, fromAbove) {}; |
| 194 | 194 |
| 195 /** | 195 /** |
| 196 * @param {string} path Path that should be notified. | 196 * @param {string} path Path that should be notified. |
| 197 * @param {!Array<!PolymerSplice>} splices Array of splice records indicating | 197 * @param {!Array<!PolymerSplice>} splices Array of splice records indicating |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 * Gets the original target of the given event. | 543 * Gets the original target of the given event. |
| 544 * | 544 * |
| 545 * Cheaper than Polymer.dom(ev).path[0]; | 545 * Cheaper than Polymer.dom(ev).path[0]; |
| 546 * See https://github.com/Polymer/polymer/blob/master/src/standard/gestures.html
#L191 | 546 * See https://github.com/Polymer/polymer/blob/master/src/standard/gestures.html
#L191 |
| 547 * | 547 * |
| 548 * @param {Event} ev . | 548 * @param {Event} ev . |
| 549 * @return {Element} The original target of the event. | 549 * @return {Element} The original target of the event. |
| 550 */ | 550 */ |
| 551 Polymer.Gestures.findOriginalTarget = function(ev) {}; | 551 Polymer.Gestures.findOriginalTarget = function(ev) {}; |
| 552 | 552 |
| 553 /** |
| 554 * @type {!Object} |
| 555 */ |
| 556 Polymer.Gestures.gestures = {}; |
| 557 |
| 558 /** |
| 559 * @type {!Object} |
| 560 */ |
| 561 Polymer.Gestures.gestures.tap = {}; |
| 562 |
| 563 /** |
| 564 * Reset the tap gesture's state manually |
| 565 * @type {function()} |
| 566 */ |
| 567 Polymer.Gestures.gestures.tap.reset = function() {}; |
| 553 | 568 |
| 554 /** | 569 /** |
| 555 * @param {number} handle | 570 * @param {number} handle |
| 556 */ | 571 */ |
| 557 PolymerElement.prototype.cancelAsync = function(handle) {}; | 572 PolymerElement.prototype.cancelAsync = function(handle) {}; |
| 558 | 573 |
| 559 /** | 574 /** |
| 560 * Call debounce to collapse multiple requests for a named task into one | 575 * Call debounce to collapse multiple requests for a named task into one |
| 561 * invocation, which is made after the wait time has elapsed with no new | 576 * invocation, which is made after the wait time has elapsed with no new |
| 562 * request. If no wait time is given, the callback is called at microtask timing | 577 * request. If no wait time is given, the callback is called at microtask timing |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 * shortcut for setting `customStyle` and then calling `updateStyles`. | 670 * shortcut for setting `customStyle` and then calling `updateStyles`. |
| 656 */ | 671 */ |
| 657 PolymerElement.prototype.updateStyles = function(properties) {}; | 672 PolymerElement.prototype.updateStyles = function(properties) {}; |
| 658 | 673 |
| 659 /** | 674 /** |
| 660 * @type {!Object<string, string|undefined>} | 675 * @type {!Object<string, string|undefined>} |
| 661 */ | 676 */ |
| 662 PolymerElement.prototype.customStyle; | 677 PolymerElement.prototype.customStyle; |
| 663 | 678 |
| 664 /** | 679 /** |
| 680 * Convenience method for creating an element and configuring it. |
| 681 * @param {string} tagName HTML tag name |
| 682 * @param {IObject<string, *>=} properties Object of properties to configure on
the instance |
| 683 * @return {!Element} |
| 684 */ |
| 685 PolymerElement.prototype.create = function(tagName, properties) {}; |
| 686 |
| 687 /** |
| 665 * Returns the computed style value for the given property. | 688 * Returns the computed style value for the given property. |
| 666 * @param {string} property | 689 * @param {string} property |
| 667 * @return {string} the computed value | 690 * @return {string} the computed value |
| 668 */ | 691 */ |
| 669 PolymerElement.prototype.getComputedStyleValue = function(property) {}; | 692 PolymerElement.prototype.getComputedStyleValue = function(property) {}; |
| 670 | 693 |
| 671 /** | 694 /** |
| 672 * Logs a message to the console. | 695 * Logs a message to the console. |
| 673 * | 696 * |
| 674 * @param {...*} var_args | 697 * @param {...*} var_args |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 PolymerElement.prototype._pathEffector = function(path, value) {}; | 744 PolymerElement.prototype._pathEffector = function(path, value) {}; |
| 722 | 745 |
| 723 /** | 746 /** |
| 724 * Do not call this function. | 747 * Do not call this function. |
| 725 * | 748 * |
| 726 * @param {string} path . | 749 * @param {string} path . |
| 727 * @param {*} value . | 750 * @param {*} value . |
| 728 */ | 751 */ |
| 729 PolymerElement.prototype._propertySetter = function(path, value) {}; | 752 PolymerElement.prototype._propertySetter = function(path, value) {}; |
| 730 | 753 |
| 754 /** |
| 755 * Do not call this function. |
| 756 * |
| 757 * @param {string} path . |
| 758 */ |
| 759 PolymerElement.prototype._notifyChange = function(path) {}; |
| 731 | 760 |
| 732 /** | 761 /** |
| 733 * A Polymer DOM API for manipulating DOM such that local DOM and light DOM | 762 * A Polymer DOM API for manipulating DOM such that local DOM and light DOM |
| 734 * trees are properly maintained. | 763 * trees are properly maintained. |
| 735 * | 764 * |
| 736 * @constructor | 765 * @constructor |
| 737 */ | 766 */ |
| 738 var PolymerDomApi = function() {}; | 767 var PolymerDomApi = function() {}; |
| 739 | 768 |
| 740 /** | 769 /** |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1088 | 1117 |
| 1089 | 1118 |
| 1090 /** | 1119 /** |
| 1091 * @see https://github.com/Polymer/polymer/blob/master/src/lib/template/templati
zer.html | 1120 * @see https://github.com/Polymer/polymer/blob/master/src/lib/template/templati
zer.html |
| 1092 * @polymerBehavior | 1121 * @polymerBehavior |
| 1093 */ | 1122 */ |
| 1094 Polymer.Templatizer = { | 1123 Polymer.Templatizer = { |
| 1095 ctor: function() {}, | 1124 ctor: function() {}, |
| 1096 | 1125 |
| 1097 /** | 1126 /** |
| 1098 * @param {?Object} model | 1127 * @param {?Object=} model |
| 1099 * @return {?Element} | 1128 * @return {?Element} |
| 1100 */ | 1129 */ |
| 1101 stamp: function(model) {}, | 1130 stamp: function(model) {}, |
| 1102 | 1131 |
| 1103 /** | 1132 /** |
| 1104 * @param {?Element} template | 1133 * @param {?Element} template |
| 1105 */ | 1134 */ |
| 1106 templatize: function(template) {}, | 1135 templatize: function(template) {}, |
| 1107 | 1136 |
| 1108 /** | 1137 /** |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1474 isContentBelow: function(){}, | 1503 isContentBelow: function(){}, |
| 1475 /** Updates the elements scroll state */ | 1504 /** Updates the elements scroll state */ |
| 1476 _updateScrollState: function(){}, | 1505 _updateScrollState: function(){}, |
| 1477 /** @return {boolean} true if the element is on screen */ | 1506 /** @return {boolean} true if the element is on screen */ |
| 1478 isOnScreen: function(){}, | 1507 isOnScreen: function(){}, |
| 1479 /** @type {number} Internal bookkeeping to track screen position */ | 1508 /** @type {number} Internal bookkeeping to track screen position */ |
| 1480 _deltaHeight: 0, | 1509 _deltaHeight: 0, |
| 1481 /** @return {?Element} Element in local dom by id. */ | 1510 /** @return {?Element} Element in local dom by id. */ |
| 1482 _getDOMRef: function(title){} | 1511 _getDOMRef: function(title){} |
| 1483 } | 1512 } |
| 1513 |
| 1514 /** @const */ |
| 1515 Polymer.ArraySplice = {}; |
| 1516 |
| 1517 /** |
| 1518 * Returns an array of splice records indicating the minimum edits required |
| 1519 * to transform the `previous` array into the `current` array. |
| 1520 * |
| 1521 * Splice records are ordered by index and contain the following fields: |
| 1522 * - `index`: index where edit started |
| 1523 * - `removed`: array of removed items from this index |
| 1524 * - `addedCount`: number of items added at this index |
| 1525 * |
| 1526 * This function is based on the Levenshtein "minimum edit distance" |
| 1527 * algorithm. Note that updates are treated as removal followed by addition. |
| 1528 * |
| 1529 * The worst-case time complexity of this algorithm is `O(l * p)` |
| 1530 * l: The length of the current array |
| 1531 * p: The length of the previous array |
| 1532 * |
| 1533 * However, the worst-case complexity is reduced by an `O(n)` optimization |
| 1534 * to detect any shared prefix & suffix between the two arrays and only |
| 1535 * perform the more expensive minimum edit distance calculation over the |
| 1536 * non-shared portions of the arrays. |
| 1537 * |
| 1538 * @param {!Array} current The "changed" array for which splices will be |
| 1539 * calculated. |
| 1540 * @param {!Array} previous The "unchanged" original array to compare |
| 1541 * `current` against to determine the splices. |
| 1542 * @return {!Array} Returns an array of splice record objects. Each of these |
| 1543 * contains: `index` the location where the splice occurred; `removed` |
| 1544 * the array of removed items from this location; `addedCount` the number |
| 1545 * of items added at this location. |
| 1546 */ |
| 1547 Polymer.ArraySplice.calculateSplices = function(current, previous) {}; |
| 1548 |
| 1549 /** |
| 1550 * @constructor @extends {PolymerElement} |
| 1551 */ |
| 1552 Polymer.DomModule = function() {}; |
| 1553 |
| 1554 /** |
| 1555 * Retrieves the dom specified by `selector` in the module specified by |
| 1556 * `id`. For example, this.import('foo', 'img'); |
| 1557 * @param {string} id |
| 1558 * @param {string=} opt_selector |
| 1559 * @return {?HTMLElement} Returns the dom which matches `selector` in the module |
| 1560 * at the specified `id`. |
| 1561 */ |
| 1562 Polymer.DomModule.import = function(id, opt_selector) {}; |
| 1563 |
| 1564 /** |
| 1565 * For compatibility with both Polymer 1.0 and 2.0, code may check for certain |
| 1566 * objects and properties which don't exist in Polymer 1.0. |
| 1567 * |
| 1568 * We give those objects and properties the `undefined` type here, because |
| 1569 * the dependency tree will either contain these externs and Polymer 1.0 or |
| 1570 * it will contain Polymer 2.0 which defines the full types. |
| 1571 */ |
| 1572 |
| 1573 /** @type {undefined} */ |
| 1574 var ShadyDOM; |
| OLD | NEW |