Index: Source/modules/push_messaging/PushEvent.cpp |
diff --git a/Source/modules/push_messaging/PushEvent.cpp b/Source/modules/push_messaging/PushEvent.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..081a4c6be633c8e0e8ca53e15db4eaddf192ae53 |
--- /dev/null |
+++ b/Source/modules/push_messaging/PushEvent.cpp |
@@ -0,0 +1,42 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "config.h" |
+#include "modules/push_messaging/PushEvent.h" |
+ |
+namespace WebCore { |
+ |
+PushEventInit::PushEventInit() |
+{ |
+} |
+ |
+PushEvent::PushEvent() |
+{ |
+ ScriptWrappable::init(this); |
+} |
+ |
+PushEvent::PushEvent(const AtomicString& type, const String& data) |
+ : Event(type, false /* canBubble */, false /* cancelable */) |
dominicc (has gone to gerrit)
2014/05/22 06:52:28
Would this be clearer if the comments were prefixe
Michael van Ouwerkerk
2014/05/23 18:32:03
Ah ok, I'll format it like FetchEvent then.
|
+ , m_data(data) |
+{ |
+ ScriptWrappable::init(this); |
+} |
+ |
+PushEvent::PushEvent(const AtomicString& type, const PushEventInit& initializer) |
+ : Event(type, initializer) |
+ , m_data(initializer.data) |
+{ |
+ ScriptWrappable::init(this); |
+} |
+ |
+PushEvent::~PushEvent() |
+{ |
+} |
+ |
+const AtomicString& PushEvent::interfaceName() const |
+{ |
+ return EventNames::PushEvent; |
+} |
+ |
+} // namespace WebCore |