Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 WebCore { | |
| 9 | |
| 10 PushEventInit::PushEventInit() | |
| 11 { | |
| 12 } | |
| 13 | |
| 14 PushEvent::PushEvent() | |
| 15 { | |
| 16 ScriptWrappable::init(this); | |
| 17 } | |
| 18 | |
| 19 PushEvent::PushEvent(const AtomicString& type, const String& data) | |
| 20 : Event(type, true, true) | |
|
Peter Beverloo
2014/05/16 15:41:43
Could you change this to be somewhat more readable
Michael van Ouwerkerk
2014/05/21 17:06:42
You're right, these should probably not bubble or
| |
| 21 , m_data(data) | |
| 22 { | |
| 23 ScriptWrappable::init(this); | |
| 24 } | |
| 25 | |
| 26 PushEvent::PushEvent(const AtomicString& type, const PushEventInit& initializer) | |
| 27 : Event(type, initializer) | |
| 28 , m_data(initializer.data) | |
| 29 { | |
| 30 ScriptWrappable::init(this); | |
| 31 } | |
| 32 | |
| 33 PushEvent::~PushEvent() | |
| 34 { | |
| 35 } | |
| 36 | |
| 37 const AtomicString& PushEvent::interfaceName() const | |
| 38 { | |
| 39 return EventNames::PushEvent; | |
| 40 } | |
| 41 | |
| 42 } // namespace WebCore | |
| OLD | NEW |