Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: third_party/polymer/v0_8/components-chromium/polymer-externs/polymer.externs.js

Issue 1124053009: Pull latest Polymer elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698