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

Unified Diff: Source/modules/serviceworkers/InstallEvent.cpp

Issue 715013003: ExtendableEvent and InstallEvent should have an EventConstructor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: basic layout test Created 6 years, 1 month 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/modules/serviceworkers/InstallEvent.h ('k') | Source/modules/serviceworkers/InstallEvent.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/InstallEvent.cpp
diff --git a/Source/modules/serviceworkers/InstallEvent.cpp b/Source/modules/serviceworkers/InstallEvent.cpp
index a7d85551d594c2b9a69824abf7d00972cd2cf10d..9672f1605fdc91a348e5819d42f58f7e920d0958 100644
--- a/Source/modules/serviceworkers/InstallEvent.cpp
+++ b/Source/modules/serviceworkers/InstallEvent.cpp
@@ -42,7 +42,12 @@ PassRefPtrWillBeRawPtr<InstallEvent> InstallEvent::create()
return adoptRefWillBeNoop(new InstallEvent());
}
-PassRefPtrWillBeRawPtr<InstallEvent> InstallEvent::create(const AtomicString& type, const EventInit& initializer, WaitUntilObserver* observer)
+PassRefPtrWillBeRawPtr<InstallEvent> InstallEvent::create(const AtomicString& type, const InstallEventInit& initializer)
+{
+ return adoptRefWillBeNoop(new InstallEvent(type, initializer));
+}
+
+PassRefPtrWillBeRawPtr<InstallEvent> InstallEvent::create(const AtomicString& type, const InstallEventInit& initializer, WaitUntilObserver* observer)
{
return adoptRefWillBeNoop(new InstallEvent(type, initializer, observer));
}
@@ -56,7 +61,12 @@ InstallEvent::InstallEvent()
{
}
-InstallEvent::InstallEvent(const AtomicString& type, const EventInit& initializer, WaitUntilObserver* observer)
+InstallEvent::InstallEvent(const AtomicString& type, const InstallEventInit& initializer)
+ : ExtendableEvent(type, initializer)
+{
+}
+
+InstallEvent::InstallEvent(const AtomicString& type, const InstallEventInit& initializer, WaitUntilObserver* observer)
: ExtendableEvent(type, initializer, observer)
{
}
« no previous file with comments | « Source/modules/serviceworkers/InstallEvent.h ('k') | Source/modules/serviceworkers/InstallEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698