| 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 16 matching lines...) Expand all Loading... |
| 27 // Retrieves the CustomElementsRegistry for Element, if any. This | 27 // Retrieves the CustomElementsRegistry for Element, if any. This |
| 28 // may be a different object for a given element over its lifetime | 28 // may be a different object for a given element over its lifetime |
| 29 // as it moves between documents. | 29 // as it moves between documents. |
| 30 static CustomElementsRegistry* registry(const Element&); | 30 static CustomElementsRegistry* registry(const Element&); |
| 31 static CustomElementsRegistry* registry(const Document&); | 31 static CustomElementsRegistry* registry(const Document&); |
| 32 | 32 |
| 33 static CustomElementDefinition* definitionForElement(const Element*); | 33 static CustomElementDefinition* definitionForElement(const Element*); |
| 34 | 34 |
| 35 static bool isValidName(const AtomicString& name); | 35 static bool isValidName(const AtomicString& name); |
| 36 | 36 |
| 37 static bool shouldCreateCustomElement(Document&, const AtomicString& localNa
me); | 37 static bool shouldCreateCustomElement(const AtomicString& localName); |
| 38 static bool shouldCreateCustomElement(Document&, const QualifiedName&); | 38 static bool shouldCreateCustomElement(const QualifiedName&); |
| 39 | 39 |
| 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 HTMLElement* createFailedElement(Document&, const QualifiedName&); | 45 static HTMLElement* createFailedElement(Document&, const QualifiedName&); |
| 46 | 46 |
| 47 static void enqueue(Element*, CustomElementReaction*); | 47 static void enqueue(Element*, CustomElementReaction*); |
| 48 static void enqueueConnectedCallback(Element*); | 48 static void enqueueConnectedCallback(Element*); |
| 49 static void enqueueDisconnectedCallback(Element*); | 49 static void enqueueDisconnectedCallback(Element*); |
| 50 static void enqueueAdoptedCallback(Element*); | 50 static void enqueueAdoptedCallback(Element*); |
| 51 static void enqueueAttributeChangedCallback(Element*, const QualifiedName&, | 51 static void enqueueAttributeChangedCallback(Element*, const QualifiedName&, |
| 52 const AtomicString& oldValue, const AtomicString& newValue); | 52 const AtomicString& oldValue, const AtomicString& newValue); |
| 53 | 53 |
| 54 static void tryToUpgrade(Element*); | 54 static void tryToUpgrade(Element*); |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 static HTMLElement* createUndefinedElement(Document&, const QualifiedName&); | 57 static HTMLElement* createUndefinedElement(Document&, const QualifiedName&); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace blink | 60 } // namespace blink |
| 61 | 61 |
| 62 #endif // CustomElement_h | 62 #endif // CustomElement_h |
| OLD | NEW |