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

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

Issue 2058823002: Implement callback reactions for Custom Elements V1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stack-ce
Patch Set: Minor cleanup 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 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 "wtf/Noncopyable.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class CustomElementDefinition;
14 class Element; 15 class Element;
15 16
16 class CORE_EXPORT CustomElementReaction 17 class CORE_EXPORT CustomElementReaction
17 : public GarbageCollectedFinalized<CustomElementReaction> { 18 : public GarbageCollectedFinalized<CustomElementReaction> {
18 WTF_MAKE_NONCOPYABLE(CustomElementReaction); 19 WTF_MAKE_NONCOPYABLE(CustomElementReaction);
19 public: 20 public:
20 CustomElementReaction() { } 21 CustomElementReaction(CustomElementDefinition*);
21 virtual ~CustomElementReaction() { } 22 virtual ~CustomElementReaction() = default;
22 DEFINE_INLINE_VIRTUAL_TRACE() { } 23
23 virtual void invoke(Element*) = 0; 24 virtual void invoke(Element*) = 0;
25
26 DECLARE_VIRTUAL_TRACE();
27
28 protected:
29 Member<CustomElementDefinition> m_definition;
24 }; 30 };
25 31
26 } // namespace blink 32 } // namespace blink
27 33
28 #endif // CustomElementReaction_h 34 #endif // CustomElementReaction_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698