| 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 |
| 11 * distributed by Google as part of the polymer project is also subject to an | 11 * distributed by Google as part of the polymer project is also subject to an |
| 12 * additional IP rights grant found at http://polymer.github.io/PATENTS.txt. | 12 * additional IP rights grant found at http://polymer.github.io/PATENTS.txt. |
| 13 */ | 13 */ |
| 14 | 14 |
| 15 /** | 15 /** |
| 16 * @param {!{is: string}} descriptor The Polymer descriptor of the element. | 16 * @param {!{is: string}} descriptor The Polymer descriptor of the element. |
| 17 * @see https://github.com/Polymer/polymer/blob/0.8-preview/PRIMER.md#custom-ele
ment-registration | 17 * @see https://github.com/Polymer/polymer/blob/0.8-preview/PRIMER.md#custom-ele
ment-registration |
| 18 */ | 18 */ |
| 19 var Polymer = function(descriptor) {}; | 19 var Polymer = function(descriptor) {}; |
| 20 | 20 |
| 21 | 21 |
| 22 /** @constructor @extends {HTMLElement} */ | 22 /** @constructor @extends {HTMLElement} */ |
| 23 var PolymerElement = function() { | 23 var PolymerElement = function() {}; |
| 24 /** @type {!Object<string,!HTMLElement>} */ | 24 |
| 25 this.$; | 25 /** |
| 26 }; | 26 * A mapping from ID to element in this Polymer Element's local DOM. |
| 27 * @type {!Object} |
| 28 */ |
| 29 PolymerElement.prototype.$; |
| 27 | 30 |
| 28 /** @type {string} The Custom element tag name. */ | 31 /** @type {string} The Custom element tag name. */ |
| 29 PolymerElement.prototype.is; | 32 PolymerElement.prototype.is; |
| 30 | 33 |
| 31 /** @type {string} The native element this element extends. */ | 34 /** @type {string} The native element this element extends. */ |
| 32 PolymerElement.prototype.extends; | 35 PolymerElement.prototype.extends; |
| 33 | 36 |
| 34 /** | 37 /** |
| 35 * An array of objects whose properties get mixed in to this element. | 38 * An array of objects whose properties get mixed in to this element. |
| 36 * | 39 * |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 * @param {string} type An event name. | 112 * @param {string} type An event name. |
| 110 * @param {Object=} detail | 113 * @param {Object=} detail |
| 111 * @param {{ | 114 * @param {{ |
| 112 * bubbles: (boolean|undefined), | 115 * bubbles: (boolean|undefined), |
| 113 * cancelable: (boolean|undefined), | 116 * cancelable: (boolean|undefined), |
| 114 * node: (!HTMLElement|undefined)}=} options | 117 * node: (!HTMLElement|undefined)}=} options |
| 115 * @return {Object} event | 118 * @return {Object} event |
| 116 */ | 119 */ |
| 117 PolymerElement.prototype.fire = function(type, detail, options) {}; | 120 PolymerElement.prototype.fire = function(type, detail, options) {}; |
| 118 | 121 |
| OLD | NEW |