UNPKG

2.02 kBJavaScriptView Raw
1/**
2 * @fileoverview Externs for webcomponents polyfills
3 * @externs
4 * @suppress {duplicate}
5 *
6 * @license
7 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
8 * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
9 * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
10 * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
11 * Code distributed by Google as part of the polymer project is also
12 * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
13 */
14/* eslint-disable */
15
16var HTMLImports = {};
17
18/**
19 * @param {function()=} callback
20 */
21HTMLImports.whenReady = function(callback) {};
22
23/**
24 * Returns the import document containing the element.
25 * @param {!Node} element
26 * @return {?HTMLLinkElement|?Document|undefined}
27 */
28HTMLImports.importForElement = function(element) {};
29
30window.HTMLImports = HTMLImports;
31
32var ShadyDOM = {};
33
34ShadyDOM.inUse;
35ShadyDOM.composedPath;
36
37ShadyDOM.flush = function() {};
38
39/**
40 * @param {!Node} target
41 * @param {function(Array<MutationRecord>, MutationObserver)} callback
42 * @return {MutationObserver}
43 */
44ShadyDOM.observeChildren = function(target, callback) {};
45
46/**
47 * @param {MutationObserver} observer
48 */
49ShadyDOM.unobserveChildren = function(observer) {};
50
51/**
52 * @param {Node} node
53 */
54ShadyDOM.patch = function(node) {};
55
56/**
57 * @param {!ShadowRoot} shadowroot
58 */
59ShadyDOM.flushInitial = function(shadowroot) {};
60
61window.ShadyDOM = ShadyDOM;
62
63var WebComponents = {};
64window.WebComponents = WebComponents;
65
66/** @type {Element} */
67HTMLElement.prototype._activeElement;
68
69/**
70 * @param {HTMLTemplateElement} template
71 */
72HTMLTemplateElement.decorate = function(template){};
73
74/**
75 * @param {function(function())} cb callback
76 */
77CustomElementRegistry.prototype.polyfillWrapFlushCallback = function(cb){};
78
79/**
80 * @param {string} cssText
81 */
82CSSStyleSheet.prototype.replaceSync = function(cssText) {};