| 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 CustomElementAttributeChangedCallbackReaction_h | 5 #ifndef CustomElementAttributeChangedCallbackReaction_h |
| 6 #define CustomElementAttributeChangedCallbackReaction_h | 6 #define CustomElementAttributeChangedCallbackReaction_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/dom/QualifiedName.h" | 9 #include "core/dom/QualifiedName.h" |
| 10 #include "core/dom/custom/CustomElementReaction.h" | 10 #include "core/dom/custom/CustomElementReaction.h" |
| 11 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
| 12 #include "wtf/Noncopyable.h" | 12 #include "platform/wtf/Noncopyable.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class CORE_EXPORT CustomElementAttributeChangedCallbackReaction final | 16 class CORE_EXPORT CustomElementAttributeChangedCallbackReaction final |
| 17 : public CustomElementReaction { | 17 : public CustomElementReaction { |
| 18 WTF_MAKE_NONCOPYABLE(CustomElementAttributeChangedCallbackReaction); | 18 WTF_MAKE_NONCOPYABLE(CustomElementAttributeChangedCallbackReaction); |
| 19 | 19 |
| 20 public: | 20 public: |
| 21 CustomElementAttributeChangedCallbackReaction(CustomElementDefinition*, | 21 CustomElementAttributeChangedCallbackReaction(CustomElementDefinition*, |
| 22 const QualifiedName&, | 22 const QualifiedName&, |
| 23 const AtomicString& old_value, | 23 const AtomicString& old_value, |
| 24 const AtomicString& new_value); | 24 const AtomicString& new_value); |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 void Invoke(Element*) override; | 27 void Invoke(Element*) override; |
| 28 | 28 |
| 29 QualifiedName name_; | 29 QualifiedName name_; |
| 30 AtomicString old_value_; | 30 AtomicString old_value_; |
| 31 AtomicString new_value_; | 31 AtomicString new_value_; |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } // namespace blink | 34 } // namespace blink |
| 35 | 35 |
| 36 #endif // CustomElementAttributeChangedCallbackReaction_h | 36 #endif // CustomElementAttributeChangedCallbackReaction_h |
| OLD | NEW |