| Index: third_party/polymer/v1_0/components/polymer-externs/polymer.externs.js
|
| diff --git a/third_party/polymer/v1_0/components/polymer-externs/polymer.externs.js b/third_party/polymer/v1_0/components/polymer-externs/polymer.externs.js
|
| index 41008e3bdf1fbadbfaf97df69e202fdc42615a5b..c495e208140692a86c3d08c15ce12bf9f9225893 100644
|
| --- a/third_party/polymer/v1_0/components/polymer-externs/polymer.externs.js
|
| +++ b/third_party/polymer/v1_0/components/polymer-externs/polymer.externs.js
|
| @@ -72,6 +72,8 @@ PolymerElement.prototype.observers;
|
| PolymerElement.prototype.created = function() {};
|
| /** On ready callback. */
|
| PolymerElement.prototype.ready = function() {};
|
| +/** On registered callback. */
|
| +PolymerElement.prototype.registered = function() {};
|
| /** On attached to the DOM callback. */
|
| PolymerElement.prototype.attached = function() {};
|
| /** On detached from the DOM callback. */
|
| @@ -164,6 +166,82 @@ PolymerElement.prototype.set = function(path, value, root) {};
|
| PolymerElement.prototype.get = function(path, root) {};
|
|
|
| /**
|
| + * Adds items onto the end of the array at the path specified.
|
| + *
|
| + * The arguments after `path` and return value match that of
|
| + * `Array.prototype.push`.
|
| + *
|
| + * This method notifies other paths to the same array that a
|
| + * splice occurred to the array.
|
| + *
|
| + * @param {string} path Path to array.
|
| + * @param {...*} var_args Items to push onto array
|
| + * @return {number} New length of the array.
|
| + */
|
| +PolymerElement.prototype.push = function(path, var_args) {};
|
| +
|
| +/**
|
| + * Removes an item from the end of array at the path specified.
|
| + *
|
| + * The arguments after `path` and return value match that of
|
| + * `Array.prototype.pop`.
|
| + *
|
| + * This method notifies other paths to the same array that a
|
| + * splice occurred to the array.
|
| + *
|
| + * @param {string} path Path to array.
|
| + * @return {*} Item that was removed.
|
| + */
|
| +PolymerElement.prototype.pop = function(path) {};
|
| +
|
| +/**
|
| + * Starting from the start index specified, removes 0 or more items
|
| + * from the array and inserts 0 or more new itms in their place.
|
| + *
|
| + * The arguments after `path` and return value match that of
|
| + * `Array.prototype.splice`.
|
| + *
|
| + * This method notifies other paths to the same array that a
|
| + * splice occurred to the array.
|
| + *
|
| + * @param {string} path Path to array.
|
| + * @param {number} start Index from which to start removing/inserting.
|
| + * @param {number} deleteCount Number of items to remove.
|
| + * @param {...*} var_args Items to insert into array.
|
| + * @return {!Array} Array of removed items.
|
| + */
|
| +PolymerElement.prototype.splice = function(path, start, deleteCount, var_args) {};
|
| +
|
| +/**
|
| + * Removes an item from the beginning of array at the path specified.
|
| + *
|
| + * The arguments after `path` and return value match that of
|
| + * `Array.prototype.pop`.
|
| + *
|
| + * This method notifies other paths to the same array that a
|
| + * splice occurred to the array.
|
| + *
|
| + * @param {string} path Path to array.
|
| + * @return {*} Item that was removed.
|
| + */
|
| +PolymerElement.prototype.shift = function(path) {};
|
| +
|
| +/**
|
| + * Adds items onto the beginning of the array at the path specified.
|
| + *
|
| + * The arguments after `path` and return value match that of
|
| + * `Array.prototype.push`.
|
| + *
|
| + * This method notifies other paths to the same array that a
|
| + * splice occurred to the array.
|
| + *
|
| + * @param {string} path Path to array.
|
| + * @param {...*} var_args Items to insert info array
|
| + * @return {number} New length of the array.
|
| + */
|
| +PolymerElement.prototype.unshift = function(path, var_args) {};
|
| +
|
| +/**
|
| * Fire an event.
|
| *
|
| * @param {string} type An event name.
|
| @@ -215,6 +293,14 @@ PolymerElement.prototype.attributeFollows = function(name, newNode, oldNode) {};
|
| 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 {string} eventName Name of event to stop listening for.
|
| + * @param {string} methodName Name of handler method on this to remove.
|
| + */
|
| +PolymerElement.prototype.unlisten = function(node, eventName, methodName) {};
|
| +
|
| +/**
|
| * Override scrolling behavior to all direction, one direction, or none.
|
| *
|
| * Valid scroll directions:
|
| @@ -236,6 +322,11 @@ PolymerElement.prototype.setScrollDirection = function(direction, node) {};
|
| */
|
| PolymerElement.prototype.async = function(method, wait) {};
|
|
|
| +/**
|
| + * @param {...*} var_args
|
| + */
|
| +PolymerElement.prototype.factoryImpl = function(var_args) {};
|
| +
|
| Polymer.Base;
|
|
|
| /**
|
| @@ -248,6 +339,18 @@ Polymer.Base;
|
| Polymer.Base.async = function(method, wait) {};
|
|
|
| /**
|
| + * Returns a property descriptor object for the property specified.
|
| + *
|
| + * This method allows introspecting the configuration of a Polymer element's
|
| + * properties as configured in its `properties` object. Note, this method
|
| + * normalizes shorthand forms of the `properties` object into longhand form.
|
| + *
|
| + * @param {string} property Name of property to introspect.
|
| + * @return {Object} Property descriptor for specified property.
|
| +*/
|
| +Polymer.Base.getPropertyInfo = function(property) {};
|
| +
|
| +/**
|
| * @param {number} handle
|
| */
|
| PolymerElement.prototype.cancelAsync = function(handle) {};
|
| @@ -413,7 +516,7 @@ PolymerDomApi.prototype.querySelector = function(selector) {};
|
|
|
| /**
|
| * @param {string} selector
|
| - * @return {!Array<?HTMLElement>}
|
| + * @return {!Array<!HTMLElement>}
|
| */
|
| PolymerDomApi.prototype.querySelectorAll = function(selector) {};
|
|
|
| @@ -441,6 +544,12 @@ PolymerDomApi.prototype.removeAttribute = function(attribute) {};
|
| PolymerDomApi.prototype.classList;
|
|
|
| /**
|
| + * @param {string} selector
|
| + * @return {!Array<!HTMLElement>}
|
| + */
|
| +PolymerDomApi.prototype.queryDistributedElements = function(selector) {};
|
| +
|
| +/**
|
| * A Polymer Event API.
|
| *
|
| * @constructor
|
| @@ -485,6 +594,52 @@ Polymer.CaseMap.camelToDashCase = function(camel) {};
|
|
|
|
|
| /**
|
| + * Settings pulled from
|
| + * https://github.com/Polymer/polymer/blob/master/src/lib/settings.html
|
| + */
|
| +Polymer.Settings;
|
| +
|
| +/** @type {boolean} */
|
| +Polymer.Settings.wantShadow;
|
| +
|
| +/** @type {boolean} */
|
| +Polymer.Settings.hasShadow;
|
| +
|
| +/** @type {boolean} */
|
| +Polymer.Settings.nativeShadow;
|
| +
|
| +/** @type {boolean} */
|
| +Polymer.Settings.useShadow;
|
| +
|
| +/** @type {boolean} */
|
| +Polymer.Settings.useNativeShadow;
|
| +
|
| +/** @type {boolean} */
|
| +Polymer.Settings.useNativeImports;
|
| +
|
| +/** @type {boolean} */
|
| +Polymer.Settings.useNativeCustomElements;
|
| +
|
| +
|
| +/**
|
| + * @see https://github.com/Polymer/polymer/blob/master/src/lib/template/templatizer.html
|
| + * @polymerBehavior
|
| + */
|
| +Polymer.Templatizer = {
|
| + /**
|
| + * @param {?Object} model
|
| + * @return {?Element}
|
| + */
|
| + stamp: function(model) {},
|
| +
|
| + /**
|
| + * @param {?Element} template
|
| + */
|
| + templatize: function(template) {},
|
| +};
|
| +
|
| +
|
| +/**
|
| * An Event type fired when moving while finger/button is down.
|
| * state - a string indicating the tracking state:
|
| * + start: fired when tracking is first detected (finger/button down and
|
|
|