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 |
|
16 | var HTMLImports = {};
|
17 |
|
18 | /**
|
19 | * @param {function()=} callback
|
20 | */
|
21 | HTMLImports.whenReady = function(callback) {};
|
22 |
|
23 | /**
|
24 | * Returns the import document containing the element.
|
25 | * @param {!Node} element
|
26 | * @return {?HTMLLinkElement|?Document|undefined}
|
27 | */
|
28 | HTMLImports.importForElement = function(element) {};
|
29 |
|
30 | window.HTMLImports = HTMLImports;
|
31 |
|
32 | var ShadyDOM = {};
|
33 |
|
34 | ShadyDOM.inUse;
|
35 | ShadyDOM.composedPath;
|
36 |
|
37 | ShadyDOM.flush = function() {};
|
38 |
|
39 | /**
|
40 | * @param {!Node} target
|
41 | * @param {function(Array<MutationRecord>, MutationObserver)} callback
|
42 | * @return {MutationObserver}
|
43 | */
|
44 | ShadyDOM.observeChildren = function(target, callback) {};
|
45 |
|
46 | /**
|
47 | * @param {MutationObserver} observer
|
48 | */
|
49 | ShadyDOM.unobserveChildren = function(observer) {};
|
50 |
|
51 | /**
|
52 | * @param {Node} node
|
53 | */
|
54 | ShadyDOM.patch = function(node) {};
|
55 |
|
56 | /**
|
57 | * @param {!ShadowRoot} shadowroot
|
58 | */
|
59 | ShadyDOM.flushInitial = function(shadowroot) {};
|
60 |
|
61 | window.ShadyDOM = ShadyDOM;
|
62 |
|
63 | var WebComponents = {};
|
64 | window.WebComponents = WebComponents;
|
65 |
|
66 | /** @type {Element} */
|
67 | HTMLElement.prototype._activeElement;
|
68 |
|
69 | /**
|
70 | * @param {HTMLTemplateElement} template
|
71 | */
|
72 | HTMLTemplateElement.decorate = function(template){};
|
73 |
|
74 | /**
|
75 | * @param {function(function())} cb callback
|
76 | */
|
77 | CustomElementRegistry.prototype.polyfillWrapFlushCallback = function(cb){};
|
78 |
|
79 | /**
|
80 | * @param {string} cssText
|
81 | */
|
82 | CSSStyleSheet.prototype.replaceSync = function(cssText) {};
|