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

Unified Diff: Source/core/events/Event.h

Issue 1154163013: Add Event::create() that takes EventInitDictionary (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « Source/core/dom/Fullscreen.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/Event.h
diff --git a/Source/core/events/Event.h b/Source/core/events/Event.h
index ad5558b30ae1346e3cfdb37c5e26b3c616b4ce52..3a0a66575a36dcf4d0b25d4f885d5f38900a1149 100644
--- a/Source/core/events/Event.h
+++ b/Source/core/events/Event.h
@@ -107,10 +107,15 @@ public:
return adoptRefWillBeNoop(new Event(type, true, true));
}
+ // TODO(bashi): Remove this when we remove all [EventConstructor].
static PassRefPtrWillBeRawPtr<Event> create(const AtomicString& type, const EventInit& initializer)
{
return adoptRefWillBeNoop(new Event(type, initializer));
}
+ static PassRefPtrWillBeRawPtr<Event> create(const AtomicString& type, const EventInitDictionary& initializer)
+ {
+ return adoptRefWillBeNoop(new Event(type, initializer));
+ }
virtual ~Event();
« no previous file with comments | « Source/core/dom/Fullscreen.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698