Files
polymer/externs/webcomponents-externs.js

69 lines
1.7 KiB
JavaScript
Raw Normal View History

2017-01-18 15:26:59 -08:00
/**
* @fileoverview Externs for webcomponents polyfills
* @externs
*
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2017-01-18 15:26:59 -08:00
*/
/* eslint-disable */
2017-01-18 15:26:59 -08:00
2018-08-28 14:48:13 -04:00
var HTMLImports = {
2017-01-18 15:26:59 -08:00
/**
* @param {function()} callback
*/
2018-08-28 14:48:13 -04:00
whenReady(callback) {},
2017-05-24 18:00:01 -07:00
/**
2019-02-07 11:45:13 -08:00
* @param {!Node} element
* @return {?HTMLLinkElement|?Document|undefined}
2017-05-24 18:00:01 -07:00
*/
2018-08-28 14:48:13 -04:00
importForElement(element) {}
2017-01-18 15:26:59 -08:00
};
window.HTMLImports = HTMLImports;
2018-08-28 14:48:13 -04:00
var ShadyDOM = {
2017-01-18 15:26:59 -08:00
inUse: false,
2018-08-28 14:48:13 -04:00
flush() {},
2017-01-18 15:26:59 -08:00
/**
* @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}
*/
2018-08-28 14:48:13 -04:00
observeChildren(target, callback) {},
2017-01-18 15:26:59 -08:00
/**
* @param {MutationObserver} observer
*/
2018-08-28 14:48:13 -04:00
unobserveChildren(observer) {},
2017-01-18 15:26:59 -08:00
/**
* @param {Node} node
*/
2019-02-07 11:45:13 -08:00
patch(node) {},
/**
* @param {!ShadowRoot} shadowroot
*/
flushInitial(shadowroot) {}
2017-01-18 15:26:59 -08:00
};
window.ShadyDOM = ShadyDOM;
var WebComponents = {};
2017-01-18 15:26:59 -08:00
window.WebComponents = WebComponents;
/** @type {Element} */
HTMLElement.prototype._activeElement;
/**
* @param {HTMLTemplateElement} template
*/
HTMLTemplateElement.decorate = function(template){};
/**
* @param {function(function())} cb callback
*/
CustomElementRegistry.prototype.polyfillWrapFlushCallback = function(cb){};