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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/custom/CustomElementReaction.h
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementReaction.h b/third_party/WebKit/Source/core/dom/custom/CustomElementReaction.h
index 3ee1ab254ab26a4bd846871539b9b1036ff03731..9a7a2a801eea67620e23c29280ca5746ff9fd642 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementReaction.h
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementReaction.h
@@ -11,16 +11,22 @@
namespace blink {
+class CustomElementDefinition;
class Element;
class CORE_EXPORT CustomElementReaction
: public GarbageCollectedFinalized<CustomElementReaction> {
WTF_MAKE_NONCOPYABLE(CustomElementReaction);
public:
- CustomElementReaction() { }
- virtual ~CustomElementReaction() { }
- DEFINE_INLINE_VIRTUAL_TRACE() { }
+ CustomElementReaction(CustomElementDefinition*);
+ virtual ~CustomElementReaction() = default;
+
virtual void invoke(Element*) = 0;
+
+ DECLARE_VIRTUAL_TRACE();
+
+protected:
+ Member<CustomElementDefinition> m_definition;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698