| Index: third_party/polymer/v1_0/components-chromium/polymer-externs/polymer.externs.js
|
| diff --git a/third_party/polymer/v1_0/components-chromium/polymer-externs/polymer.externs.js b/third_party/polymer/v1_0/components-chromium/polymer-externs/polymer.externs.js
|
| index 4c3b2da7ec9f6c21ba4301614ee08e4ee7883b94..e7d685d14cfd09e83a8ff5da607daf35681748ed 100644
|
| --- a/third_party/polymer/v1_0/components-chromium/polymer-externs/polymer.externs.js
|
| +++ b/third_party/polymer/v1_0/components-chromium/polymer-externs/polymer.externs.js
|
| @@ -290,7 +290,7 @@ PolymerElement.prototype.attributeFollows = function(name, newNode, oldNode) {};
|
| /**
|
| * Convenience method to add an event listener on a given element, late bound to
|
| * a named method on this element.
|
| - * @param {!Element} node Element to add event listener to.
|
| + * @param {!EventTarget} node Element to add event listener to.
|
| * @param {string} eventName Name of event to listen for.
|
| * @param {string} methodName Name of handler method on this to call.
|
| */
|
| @@ -298,7 +298,7 @@ PolymerElement.prototype.listen = function(node, eventName, methodName) {};
|
|
|
| /**
|
| * Convenience method to remove an event listener from a given element.
|
| - * @param {!Element} node Element to remove event listener from.
|
| + * @param {!EventTarget} node Element to remove event listener from.
|
| * @param {string} eventName Name of event to stop listening for.
|
| * @param {string} methodName Name of handler method on this to remove.
|
| */
|
| @@ -460,6 +460,11 @@ PolymerElement.prototype.resolveUrl = function(url) {};
|
| PolymerElement.prototype.updateStyles = function(properties) {};
|
|
|
| /**
|
| + * @type {!Object<string, string|undefined>}
|
| + */
|
| +PolymerElement.prototype.customStyle;
|
| +
|
| +/**
|
| * Logs a message to the console.
|
| *
|
| * @param {!Array} var_args
|
| @@ -505,6 +510,12 @@ var PolymerDomApi = function() {};
|
| PolymerDomApi.prototype.appendChild = function(node) {};
|
|
|
| /**
|
| + * @param {!Node} oldNode
|
| + * @param {!Node} newNode
|
| + */
|
| +PolymerDomApi.prototype.replaceChild = function(oldNode, newNode) {};
|
| +
|
| +/**
|
| * @param {!Node} node
|
| * @param {!Node} beforeNode
|
| */
|
| @@ -884,3 +895,27 @@ var PolymerKeySplice;
|
| * }}
|
| */
|
| var PolymerSpliceChange;
|
| +
|
| +/**
|
| + * The interface that iconsets should obey. Iconsets are registered by setting
|
| + * their name in the IronMeta 'iconset' db, and a value of type Polymer.Iconset.
|
| + *
|
| + * Used by iron-icon but needs to live here since iron-icon, iron-iconset, etc don't
|
| + * depend on each other at all and talk only through iron-meta.
|
| + *
|
| + * @interface
|
| + */
|
| +Polymer.Iconset = function() {};
|
| +
|
| +/**
|
| + * Applies an icon to the given element as a css background image. This
|
| + * method does not size the element, and it's usually necessary to set
|
| + * the element's height and width so that the background image is visible.
|
| + *
|
| + * @param {Element} element The element to which the icon is applied.
|
| + * @param {string} icon The name of the icon to apply.
|
| + * @param {string=} theme (optional) The name or index of the icon to apply.
|
| + * @param {number=} scale (optional, defaults to 1) Icon scaling factor.
|
| + */
|
| +Polymer.Iconset.prototype.applyIcon = function(
|
| + element, icon, theme, scale) {};
|
|
|