| 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 CustomElementAdoptedCallbackReaction_h | 5 #ifndef CustomElementAdoptedCallbackReaction_h |
| 6 #define CustomElementAdoptedCallbackReaction_h | 6 #define CustomElementAdoptedCallbackReaction_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/dom/custom/CustomElementReaction.h" | 9 #include "core/dom/custom/CustomElementReaction.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| 11 #include "wtf/Noncopyable.h" | 11 #include "platform/wtf/Noncopyable.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class Document; | 15 class Document; |
| 16 | 16 |
| 17 class CORE_EXPORT CustomElementAdoptedCallbackReaction final | 17 class CORE_EXPORT CustomElementAdoptedCallbackReaction final |
| 18 : public CustomElementReaction { | 18 : public CustomElementReaction { |
| 19 WTF_MAKE_NONCOPYABLE(CustomElementAdoptedCallbackReaction); | 19 WTF_MAKE_NONCOPYABLE(CustomElementAdoptedCallbackReaction); |
| 20 | 20 |
| 21 public: | 21 public: |
| 22 CustomElementAdoptedCallbackReaction(CustomElementDefinition*, | 22 CustomElementAdoptedCallbackReaction(CustomElementDefinition*, |
| 23 Document* old_owner, | 23 Document* old_owner, |
| 24 Document* new_owner); | 24 Document* new_owner); |
| 25 | 25 |
| 26 DECLARE_VIRTUAL_TRACE(); | 26 DECLARE_VIRTUAL_TRACE(); |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 void Invoke(Element*) override; | 29 void Invoke(Element*) override; |
| 30 | 30 |
| 31 Member<Document> old_owner_; | 31 Member<Document> old_owner_; |
| 32 Member<Document> new_owner_; | 32 Member<Document> new_owner_; |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 } // namespace blink | 35 } // namespace blink |
| 36 | 36 |
| 37 #endif // CustomElementAdoptedCallbackReaction_h | 37 #endif // CustomElementAdoptedCallbackReaction_h |
| OLD | NEW |