| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "modules/push_messaging/PushEvent.h" | 5 #include "modules/push_messaging/PushEvent.h" |
| 6 | 6 |
| 7 #include "modules/push_messaging/PushEventInit.h" | 7 #include "modules/push_messaging/PushEventInit.h" |
| 8 | 8 |
| 9 namespace blink { | 9 namespace blink { |
| 10 | 10 |
| 11 PushEvent::PushEvent() | |
| 12 { | |
| 13 } | |
| 14 | |
| 15 PushEvent::PushEvent(const AtomicString& type, PushMessageData* data, WaitUntilO
bserver* observer) | 11 PushEvent::PushEvent(const AtomicString& type, PushMessageData* data, WaitUntilO
bserver* observer) |
| 16 : ExtendableEvent(type, ExtendableEventInit(), observer) | 12 : ExtendableEvent(type, ExtendableEventInit(), observer) |
| 17 , m_data(data) | 13 , m_data(data) |
| 18 { | 14 { |
| 19 } | 15 } |
| 20 | 16 |
| 21 PushEvent::PushEvent(const AtomicString& type, const PushEventInit& initializer) | 17 PushEvent::PushEvent(const AtomicString& type, const PushEventInit& initializer) |
| 22 : ExtendableEvent(type, initializer) | 18 : ExtendableEvent(type, initializer) |
| 23 { | 19 { |
| 24 if (initializer.hasData()) | 20 if (initializer.hasData()) |
| (...skipping 14 matching lines...) Expand all Loading... |
| 39 return m_data.get(); | 35 return m_data.get(); |
| 40 } | 36 } |
| 41 | 37 |
| 42 DEFINE_TRACE(PushEvent) | 38 DEFINE_TRACE(PushEvent) |
| 43 { | 39 { |
| 44 visitor->trace(m_data); | 40 visitor->trace(m_data); |
| 45 ExtendableEvent::trace(visitor); | 41 ExtendableEvent::trace(visitor); |
| 46 } | 42 } |
| 47 | 43 |
| 48 } // namespace blink | 44 } // namespace blink |
| OLD | NEW |