Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
App layout externs (#63)
Browse files Browse the repository at this point in the history
* Add app-layout externs
  • Loading branch information
garlicnation committed Apr 20, 2016
1 parent 014b525 commit b07a5e0
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion polymer.externs.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ PolymerElement.prototype.notifyPath = function(path, value, fromAbove) {};
/**
* @param {string} path Path that should be notified.
* @param {!Array<!PolymerSplice>} splices Array of splice records indicating
* ordered changes that occurred to the array.
* ordered changes that occurred to the array.
*/
PolymerElement.prototype.notifySplices = function(path, splices) {};

Expand Down Expand Up @@ -1207,3 +1207,34 @@ Polymer.RenderStatus.whenReady = function(cb) {}
* @param {...*} args The function arguments.
*/
Polymer.RenderStatus.afterNextRender = function(element, fn, args) {}

Polymer.AppLayout;

/** @constructor */
Polymer.AppLayout.LocalDomWithBackground = function(){};
/** @type {!HTMLElement} */
Polymer.AppLayout.LocalDomWithBackground.prototype.backgroundFrontLayer;
/** @type {!HTMLElement} */
Polymer.AppLayout.LocalDomWithBackground.prototype.backgroundRearLayer;
/** @type {!HTMLElement} */
Polymer.AppLayout.LocalDomWithBackground.prototype.background;

/**
* @constructor
* @extends {PolymerElement}
*/
Polymer.AppLayout.ElementWithBackground = function(){};

// TODO(garlicnation): Follow up with app-layout team and remove private api from this prototype
Polymer.AppLayout.ElementWithBackground.prototype = {
/** @type {!Polymer.AppLayout.LocalDomWithBackground} */
$: null,
/** @return {boolean} True if there's content below the current element */
isContentBelow: function(){},
/** Updates the elements scroll state */
_updateScrollState: function(){},
/** @return {boolean} true if the element is on screen */
isOnScreen: function(){},
/** @type {number} Internal bookkeeping to track screen position */
_deltaHeight: 0,
}

0 comments on commit b07a5e0

Please sign in to comment.