| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef CustomElementResolutionStep_h | 31 #ifndef CustomElementMicrotaskResolutionStep_h |
| 32 #define CustomElementResolutionStep_h | 32 #define CustomElementMicrotaskResolutionStep_h |
| 33 | 33 |
| 34 #include "core/dom/custom/CustomElementDescriptor.h" | 34 #include "core/dom/custom/CustomElementDescriptor.h" |
| 35 #include "core/dom/custom/CustomElementProcessingStep.h" | 35 #include "core/dom/custom/CustomElementMicrotaskStep.h" |
| 36 #include "wtf/PassOwnPtr.h" | 36 #include "wtf/PassOwnPtr.h" |
| 37 #include "wtf/text/AtomicString.h" | 37 #include "wtf/PassRefPtr.h" |
| 38 #include "wtf/RefPtr.h" |
| 38 | 39 |
| 39 namespace WebCore { | 40 namespace WebCore { |
| 40 | 41 |
| 41 class CustomElementRegistrationContext; | 42 class CustomElementRegistrationContext; |
| 43 class Element; |
| 42 | 44 |
| 43 class CustomElementResolutionStep : public CustomElementProcessingStep { | 45 class CustomElementMicrotaskResolutionStep : public CustomElementMicrotaskStep { |
| 44 WTF_MAKE_NONCOPYABLE(CustomElementResolutionStep); | 46 WTF_MAKE_NONCOPYABLE(CustomElementMicrotaskResolutionStep); |
| 45 public: | 47 public: |
| 46 static PassOwnPtr<CustomElementResolutionStep> create(PassRefPtr<CustomEleme
ntRegistrationContext>, const CustomElementDescriptor&); | 48 static PassOwnPtr<CustomElementMicrotaskResolutionStep> create(PassRefPtr<Cu
stomElementRegistrationContext>, PassRefPtr<Element>, const CustomElementDescrip
tor&); |
| 47 | 49 |
| 48 virtual ~CustomElementResolutionStep(); | 50 virtual ~CustomElementMicrotaskResolutionStep(); |
| 49 | |
| 50 protected: | |
| 51 CustomElementResolutionStep(PassRefPtr<CustomElementRegistrationContext>, co
nst CustomElementDescriptor&); | |
| 52 | |
| 53 virtual void dispatch(Element*) OVERRIDE; | |
| 54 virtual bool isCreated() const OVERRIDE { return true; } | |
| 55 | 51 |
| 56 private: | 52 private: |
| 53 CustomElementMicrotaskResolutionStep(PassRefPtr<CustomElementRegistrationCon
text>, PassRefPtr<Element>, const CustomElementDescriptor&); |
| 54 |
| 55 virtual Result process() OVERRIDE; |
| 56 |
| 57 RefPtr<CustomElementRegistrationContext> m_context; | 57 RefPtr<CustomElementRegistrationContext> m_context; |
| 58 RefPtr<Element> m_element; |
| 58 CustomElementDescriptor m_descriptor; | 59 CustomElementDescriptor m_descriptor; |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 } | 62 } |
| 62 | 63 |
| 63 #endif // CustomElementResolutionStep_h | 64 #endif // CustomElementMicrotaskResolutionStep_h |
| OLD | NEW |