From 74ab6f00cf7f0e18314503c33cf93e4e696f32a0 Mon Sep 17 00:00:00 2001 From: AJ Ortega Date: Thu, 14 Apr 2016 15:30:04 -0700 Subject: [PATCH] Add overlay externs This is a workaround until the circular dependency is removed from iron-overlay-behavior. --- polymer.externs.js | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/polymer.externs.js b/polymer.externs.js index 4d4b743..1f23bc8 100644 --- a/polymer.externs.js +++ b/polymer.externs.js @@ -1207,3 +1207,38 @@ Polymer.RenderStatus.whenReady = function(cb) {} * @param {...*} args The function arguments. */ Polymer.RenderStatus.afterNextRender = function(element, fn, args) {} + + +Polymer.IronOverlay; + +/** + * @extends HTMLElement + * @constructor + */ +Polymer.IronOverlay.OverlayElement = function(){}; + +// TODO(garlicnation): follow up with iron-overlay maintainers and clean up +Polymer.IronOverlay.OverlayElement.prototype = { + /** @type {function()} */ + _applyFocus: null, + /** @type {boolean} */ + transitioning: null, + /** @type {boolean} */ + alwaysOnTop: null, + /** @type {function()} */ + _prepareRenderOpened: null, + /** @type {function()} */ + _renderOpened: null, + /** @type {function()} */ + _renderClosed: null, + /** @type {{prepare: function()}} */ + backdropElement: null, + /** @type {function(Event)} */ + _onCaptureClick: null, + /** @type {function(Event)} */ + _onCaptureFocus: null, + /** @type {function(Event)} */ + _onCaptureEsc: null, + /** @type {function(Event)} */ + _onCaptureTab: null +}