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

Unified Diff: Source/core/dom/Document.h

Issue 305723002: Use method registration approach for creating events on core and modules. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix oilpan compilation. Created 6 years, 7 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: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 1dc5c9aca881f3d767218ca69578d47d32fc6570..f26313d5b72c24941ca9836e55aea6283b557ee2 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -95,6 +95,7 @@ class DocumentType;
class Element;
class ElementDataCache;
class Event;
+class EventFactoryBase;
class EventListener;
class ExceptionState;
class FastTextAutosizer;
@@ -693,6 +694,7 @@ public:
void setWindowAttributeEventListener(const AtomicString& eventType, PassRefPtr<EventListener>);
EventListener* getWindowAttributeEventListener(const AtomicString& eventType);
+ static void registerEventFactory(EventFactoryBase*);
static PassRefPtrWillBeRawPtr<Event> createEvent(const String& eventType, ExceptionState&);
// keep track of what types of event listeners are registered, so we don't
@@ -1181,6 +1183,9 @@ private:
bool haveStylesheetsLoaded() const;
+ typedef HashSet<EventFactoryBase*> EventFactorySet;
+ static EventFactorySet& eventFactories();
+
DocumentLifecycle m_lifecycle;
bool m_hasNodesWithPlaceholderStyle;

Powered by Google App Engine
This is Rietveld 408576698