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 CustomElement_h | 5 #ifndef CustomElement_h |
6 #define CustomElement_h | 6 #define CustomElement_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/HTMLNames.h" | 9 #include "core/HTMLNames.h" |
10 #include "core/dom/Element.h" | 10 #include "core/dom/Element.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 static HTMLElement* createCustomElementSync(Document&, const AtomicString& l
ocalName, ExceptionState&); | 40 static HTMLElement* createCustomElementSync(Document&, const AtomicString& l
ocalName, ExceptionState&); |
41 static HTMLElement* createCustomElementSync(Document&, const QualifiedName&,
ExceptionState&); | 41 static HTMLElement* createCustomElementSync(Document&, const QualifiedName&,
ExceptionState&); |
42 static HTMLElement* createCustomElementSync(Document&, const QualifiedName&)
; | 42 static HTMLElement* createCustomElementSync(Document&, const QualifiedName&)
; |
43 static HTMLElement* createCustomElementAsync(Document&, const QualifiedName&
); | 43 static HTMLElement* createCustomElementAsync(Document&, const QualifiedName&
); |
44 | 44 |
45 static void enqueueConnectedCallback(Element*); | 45 static void enqueueConnectedCallback(Element*); |
46 static void enqueueDisconnectedCallback(Element*); | 46 static void enqueueDisconnectedCallback(Element*); |
47 static void enqueueAttributeChangedCallback(Element*, const QualifiedName&, | 47 static void enqueueAttributeChangedCallback(Element*, const QualifiedName&, |
48 const AtomicString& oldValue, const AtomicString& newValue); | 48 const AtomicString& oldValue, const AtomicString& newValue); |
49 | 49 |
| 50 static void tryToUpgrade(Element*); |
| 51 |
50 private: | 52 private: |
51 static HTMLElement* createUndefinedElement(Document&, const QualifiedName&); | 53 static HTMLElement* createUndefinedElement(Document&, const QualifiedName&); |
52 }; | 54 }; |
53 | 55 |
54 } // namespace blink | 56 } // namespace blink |
55 | 57 |
56 #endif // CustomElement_h | 58 #endif // CustomElement_h |
OLD | NEW |