| 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 CustomElementReaction_h | 5 #ifndef CustomElementReaction_h |
| 6 #define CustomElementReaction_h | 6 #define CustomElementReaction_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "wtf/Noncopyable.h" | 10 #include "platform/wtf/Noncopyable.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class CustomElementDefinition; | 14 class CustomElementDefinition; |
| 15 class Element; | 15 class Element; |
| 16 | 16 |
| 17 class CORE_EXPORT CustomElementReaction | 17 class CORE_EXPORT CustomElementReaction |
| 18 : public GarbageCollectedFinalized<CustomElementReaction> { | 18 : public GarbageCollectedFinalized<CustomElementReaction> { |
| 19 WTF_MAKE_NONCOPYABLE(CustomElementReaction); | 19 WTF_MAKE_NONCOPYABLE(CustomElementReaction); |
| 20 | 20 |
| 21 public: | 21 public: |
| 22 CustomElementReaction(CustomElementDefinition*); | 22 CustomElementReaction(CustomElementDefinition*); |
| 23 virtual ~CustomElementReaction() = default; | 23 virtual ~CustomElementReaction() = default; |
| 24 | 24 |
| 25 virtual void Invoke(Element*) = 0; | 25 virtual void Invoke(Element*) = 0; |
| 26 | 26 |
| 27 DECLARE_VIRTUAL_TRACE(); | 27 DECLARE_VIRTUAL_TRACE(); |
| 28 | 28 |
| 29 protected: | 29 protected: |
| 30 Member<CustomElementDefinition> definition_; | 30 Member<CustomElementDefinition> definition_; |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace blink | 33 } // namespace blink |
| 34 | 34 |
| 35 #endif // CustomElementReaction_h | 35 #endif // CustomElementReaction_h |
| OLD | NEW |