1 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "config.h" 6 #include "modules/push_messaging/PushEvent.h" 7 8 namespace blink { 9 10 PushEventInit::PushEventInit() 11 { 12 } 13 14 PushEvent::PushEvent() 15 { 16 } 17 18 PushEvent::PushEvent(const AtomicString& type, const String& data) 19 : Event(type, /*canBubble=*/false, /*cancelable=*/false) 20 , m_data(data) 21 { 22 } 23 24 PushEvent::PushEvent(const AtomicString& type, const PushEventInit& initializer) 25 : Event(type, initializer) 26 , m_data(initializer.data) 27 { 28 } 29 30 PushEvent::~PushEvent() 31 { 32 } 33 34 const AtomicString& PushEvent::interfaceName() const 35 { 36 return EventNames::PushEvent; 37 } 38 39 } // namespace blink 40