Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: third_party/WebKit/Source/core/dom/custom/CustomElementUpgradeReaction.h

Issue 2058823002: Implement callback reactions for Custom Elements V1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stack-ce
Patch Set: dominicc review Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 CustomElementUpgradeReaction_h 5 #ifndef CustomElementUpgradeReaction_h
6 #define CustomElementUpgradeReaction_h 6 #define CustomElementUpgradeReaction_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 "wtf/Noncopyable.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class CustomElementDefinition;
16 class Element; 15 class Element;
17 16
18 class CORE_EXPORT CustomElementUpgradeReaction final 17 class CORE_EXPORT CustomElementUpgradeReaction final
19 : public CustomElementReaction { 18 : public CustomElementReaction {
20 WTF_MAKE_NONCOPYABLE(CustomElementUpgradeReaction); 19 WTF_MAKE_NONCOPYABLE(CustomElementUpgradeReaction);
21 public: 20 public:
22 CustomElementUpgradeReaction(CustomElementDefinition*); 21 CustomElementUpgradeReaction(CustomElementDefinition*);
23 ~CustomElementUpgradeReaction() override; 22
24 DECLARE_VIRTUAL_TRACE();
25 private: 23 private:
26 void invoke(Element*) override; 24 void invoke(Element*) override;
27
28 Member<CustomElementDefinition> m_definition;
29 }; 25 };
30 26
31 } // namespace blink 27 } // namespace blink
32 28
33 #endif // CustomElementUpgradeReaction_h 29 #endif // CustomElementUpgradeReaction_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698