OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CustomElementAttributeChangedCallbackReaction_h |
| 6 #define CustomElementAttributeChangedCallbackReaction_h |
| 7 |
| 8 #include "core/CoreExport.h" |
| 9 #include "core/dom/QualifiedName.h" |
| 10 #include "core/dom/custom/CustomElementReaction.h" |
| 11 #include "platform/heap/Handle.h" |
| 12 #include "wtf/Noncopyable.h" |
| 13 |
| 14 namespace blink { |
| 15 |
| 16 class CORE_EXPORT CustomElementAttributeChangedCallbackReaction final |
| 17 : public CustomElementReaction { |
| 18 WTF_MAKE_NONCOPYABLE(CustomElementAttributeChangedCallbackReaction); |
| 19 public: |
| 20 CustomElementAttributeChangedCallbackReaction(CustomElementDefinition*, |
| 21 const QualifiedName&, |
| 22 const AtomicString& oldValue, const AtomicString& newValue); |
| 23 |
| 24 private: |
| 25 void invoke(Element*) override; |
| 26 |
| 27 QualifiedName m_name; |
| 28 AtomicString m_oldValue; |
| 29 AtomicString m_newValue; |
| 30 }; |
| 31 |
| 32 } // namespace blink |
| 33 |
| 34 #endif // CustomElementAttributeChangedCallbackReaction_h |
OLD | NEW |