Files
polymer/externs/webcomponents-externs.js

83 lines
2.0 KiB
JavaScript
Raw Normal View History

2017-01-18 15:26:59 -08:00
/**
* @fileoverview Externs for webcomponents polyfills
* @externs
2019-12-19 16:55:05 -08:00
* @suppress {duplicate}
*
* @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
2019-12-19 16:25:44 -08:00
var HTMLImports = {};
/**
2019-12-19 16:55:05 -08:00
* @param {function()=} callback
2019-12-19 16:25:44 -08:00
*/
HTMLImports.whenReady = function(callback) {};
/**
2019-12-19 16:55:05 -08:00
* Returns the import document containing the element.
2019-12-19 16:25:44 -08:00
* @param {!Node} element
* @return {?HTMLLinkElement|?Document|undefined}
*/
HTMLImports.importForElement = function(element) {};
2017-01-18 15:26:59 -08:00
window.HTMLImports = HTMLImports;
2019-12-19 16:25:44 -08:00
var ShadyDOM = {};
ShadyDOM.inUse;
ShadyDOM.composedPath;
2019-12-19 16:25:44 -08:00
ShadyDOM.flush = function() {};
/**
* @param {!Node} target
* @param {function(Array<MutationRecord>, MutationObserver)} callback
* @return {MutationObserver}
*/
ShadyDOM.observeChildren = function(target, callback) {};
/**
* @param {MutationObserver} observer
*/
ShadyDOM.unobserveChildren = function(observer) {};
/**
* @param {Node} node
*/
ShadyDOM.patch = function(node) {};
/**
* @param {!ShadowRoot} shadowroot
*/
ShadyDOM.flushInitial = function(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){};
2019-12-19 15:32:40 -08:00
/**
* @param {string} cssText
*/
2019-12-19 16:25:44 -08:00
CSSStyleSheet.prototype.replaceSync = function(cssText) {};