OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CustomElementRegistry_h | 5 #ifndef CustomElementRegistry_h |
6 #define CustomElementRegistry_h | 6 #define CustomElementRegistry_h |
7 | 7 |
8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
9 #include "bindings/core/v8/ScriptPromise.h" | 9 #include "bindings/core/v8/ScriptPromise.h" |
10 #include "bindings/core/v8/ScriptWrappable.h" | 10 #include "bindings/core/v8/ScriptWrappable.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // TODO(dominicc): Consider broadening this API when type extensions are | 61 // TODO(dominicc): Consider broadening this API when type extensions are |
62 // implemented. | 62 // implemented. |
63 void addCandidate(Element*); | 63 void addCandidate(Element*); |
64 ScriptPromise whenDefined(ScriptState*, | 64 ScriptPromise whenDefined(ScriptState*, |
65 const AtomicString& name, | 65 const AtomicString& name, |
66 ExceptionState&); | 66 ExceptionState&); |
67 | 67 |
68 void entangle(V0CustomElementRegistrationContext*); | 68 void entangle(V0CustomElementRegistrationContext*); |
69 | 69 |
70 DECLARE_TRACE(); | 70 DECLARE_TRACE(); |
| 71 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
71 | 72 |
72 private: | 73 private: |
73 friend class CustomElementRegistryTest; | 74 friend class CustomElementRegistryTest; |
74 | 75 |
75 CustomElementRegistry(const LocalDOMWindow*); | 76 CustomElementRegistry(const LocalDOMWindow*); |
76 | 77 |
77 bool v0NameIsDefined(const AtomicString& name); | 78 bool v0NameIsDefined(const AtomicString& name); |
78 | 79 |
79 void collectCandidates(const CustomElementDescriptor&, | 80 void collectCandidates(const CustomElementDescriptor&, |
80 HeapVector<Member<Element>>*); | 81 HeapVector<Member<Element>>*); |
(...skipping 17 matching lines...) Expand all Loading... |
98 Member<UpgradeCandidateMap> m_upgradeCandidates; | 99 Member<UpgradeCandidateMap> m_upgradeCandidates; |
99 | 100 |
100 using WhenDefinedPromiseMap = | 101 using WhenDefinedPromiseMap = |
101 HeapHashMap<AtomicString, Member<ScriptPromiseResolver>>; | 102 HeapHashMap<AtomicString, Member<ScriptPromiseResolver>>; |
102 WhenDefinedPromiseMap m_whenDefinedPromiseMap; | 103 WhenDefinedPromiseMap m_whenDefinedPromiseMap; |
103 }; | 104 }; |
104 | 105 |
105 } // namespace blink | 106 } // namespace blink |
106 | 107 |
107 #endif // CustomElementRegistry_h | 108 #endif // CustomElementRegistry_h |
OLD | NEW |