| 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 CustomElementCallbackInvocation_h | 31 #ifndef V0CustomElementCallbackInvocation_h |
| 32 #define CustomElementCallbackInvocation_h | 32 #define V0CustomElementCallbackInvocation_h |
| 33 | 33 |
| 34 #include "core/dom/custom/CustomElementLifecycleCallbacks.h" | 34 #include "core/dom/custom/V0CustomElementLifecycleCallbacks.h" |
| 35 #include "core/dom/custom/CustomElementProcessingStep.h" | 35 #include "core/dom/custom/V0CustomElementProcessingStep.h" |
| 36 #include "wtf/text/AtomicString.h" | 36 #include "wtf/text/AtomicString.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class CustomElementCallbackInvocation : public CustomElementProcessingStep { | 40 class V0CustomElementCallbackInvocation : public V0CustomElementProcessingStep { |
| 41 WTF_MAKE_NONCOPYABLE(CustomElementCallbackInvocation); | 41 WTF_MAKE_NONCOPYABLE(V0CustomElementCallbackInvocation); |
| 42 public: | 42 public: |
| 43 static CustomElementCallbackInvocation* createInvocation(CustomElementLifecy
cleCallbacks*, CustomElementLifecycleCallbacks::CallbackType); | 43 static V0CustomElementCallbackInvocation* createInvocation(V0CustomElementLi
fecycleCallbacks*, V0CustomElementLifecycleCallbacks::CallbackType); |
| 44 static CustomElementCallbackInvocation* createAttributeChangedInvocation(Cus
tomElementLifecycleCallbacks*, const AtomicString& name, const AtomicString& old
Value, const AtomicString& newValue); | 44 static V0CustomElementCallbackInvocation* createAttributeChangedInvocation(V
0CustomElementLifecycleCallbacks*, const AtomicString& name, const AtomicString&
oldValue, const AtomicString& newValue); |
| 45 | 45 |
| 46 protected: | 46 protected: |
| 47 CustomElementCallbackInvocation(CustomElementLifecycleCallbacks* callbacks) | 47 V0CustomElementCallbackInvocation(V0CustomElementLifecycleCallbacks* callbac
ks) |
| 48 : m_callbacks(callbacks) | 48 : m_callbacks(callbacks) |
| 49 { | 49 { |
| 50 } | 50 } |
| 51 | 51 |
| 52 CustomElementLifecycleCallbacks* callbacks() { return m_callbacks.get(); } | 52 V0CustomElementLifecycleCallbacks* callbacks() { return m_callbacks.get(); } |
| 53 | 53 |
| 54 DECLARE_VIRTUAL_TRACE(); | 54 DECLARE_VIRTUAL_TRACE(); |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 Member<CustomElementLifecycleCallbacks> m_callbacks; | 57 Member<V0CustomElementLifecycleCallbacks> m_callbacks; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace blink | 60 } // namespace blink |
| 61 | 61 |
| 62 #endif // CustomElementCallbackInvocation_h | 62 #endif // V0CustomElementCallbackInvocation_h |
| OLD | NEW |