2017-01-18 15:26:59 -08:00
|
|
|
/**
|
|
|
|
|
* @fileoverview Externs for webcomponents polyfills
|
|
|
|
|
* @externs
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
let HTMLImports = {
|
|
|
|
|
/**
|
|
|
|
|
* @param {function()} callback
|
|
|
|
|
*/
|
2017-05-24 18:00:01 -07:00
|
|
|
whenReady(callback){},
|
|
|
|
|
/**
|
|
|
|
|
* @param {Element} element
|
|
|
|
|
* @returns {Document} document
|
|
|
|
|
*/
|
|
|
|
|
importForElement(element){}
|
2017-01-18 15:26:59 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
window.HTMLImports = HTMLImports;
|
|
|
|
|
|
|
|
|
|
let ShadyDOM = {
|
|
|
|
|
inUse: false,
|
|
|
|
|
flush(){},
|
|
|
|
|
/**
|
|
|
|
|
* @param {!Node} target
|
2017-01-19 11:16:44 -08:00
|
|
|
* @param {function(Array<MutationRecord>, MutationObserver)} callback
|
2017-01-18 15:26:59 -08:00
|
|
|
* @return {MutationObserver}
|
|
|
|
|
*/
|
|
|
|
|
observeChildren(target, callback){},
|
|
|
|
|
/**
|
|
|
|
|
* @param {MutationObserver} observer
|
|
|
|
|
*/
|
|
|
|
|
unobserveChildren(observer){},
|
|
|
|
|
/**
|
|
|
|
|
* @param {Node} node
|
|
|
|
|
*/
|
|
|
|
|
patch(node){}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
window.ShadyDOM = ShadyDOM;
|
|
|
|
|
|
|
|
|
|
let WebComponents = {};
|
|
|
|
|
window.WebComponents = WebComponents;
|
|
|
|
|
|
|
|
|
|
/** @type {Element} */
|
|
|
|
|
HTMLElement.prototype._activeElement;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param {HTMLTemplateElement} template
|
|
|
|
|
*/
|
2017-05-02 16:19:31 -07:00
|
|
|
HTMLTemplateElement.decorate = function(template){};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param {function(function())} cb callback
|
|
|
|
|
*/
|
|
|
|
|
CustomElementRegistry.prototype.polyfillWrapFlushCallback = function(cb){};
|