| 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..6e54fa6f5b8f6acd9baf2c02e76766dffb6d4559
|
| --- /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, /*canBubble=*/false, /*cancelable=*/false)
|
| + , 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
|
|
|