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 "config.h" | 5 #include "config.h" |
6 #include "modules/notifications/NotificationEvent.h" | 6 #include "modules/notifications/NotificationEvent.h" |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
10 NotificationEventInit::NotificationEventInit() | 10 NotificationEventInit::NotificationEventInit() |
11 { | 11 { |
12 } | 12 } |
13 | 13 |
14 NotificationEvent::NotificationEvent() | 14 NotificationEvent::NotificationEvent() |
15 { | 15 { |
16 } | 16 } |
17 | 17 |
| 18 NotificationEvent::NotificationEvent(const AtomicString& type, const Notificatio
nEventInit& initializer) |
| 19 : ExtendableEvent(type, initializer) |
| 20 , m_notification(initializer.notification) |
| 21 { |
| 22 } |
| 23 |
18 NotificationEvent::NotificationEvent(const AtomicString& type, const Notificatio
nEventInit& initializer, WaitUntilObserver* observer) | 24 NotificationEvent::NotificationEvent(const AtomicString& type, const Notificatio
nEventInit& initializer, WaitUntilObserver* observer) |
19 : ExtendableEvent(type, initializer, observer) | 25 : ExtendableEvent(type, initializer, observer) |
20 , m_notification(initializer.notification) | 26 , m_notification(initializer.notification) |
21 { | 27 { |
22 } | 28 } |
23 | 29 |
24 NotificationEvent::~NotificationEvent() | 30 NotificationEvent::~NotificationEvent() |
25 { | 31 { |
26 } | 32 } |
27 | 33 |
28 const AtomicString& NotificationEvent::interfaceName() const | 34 const AtomicString& NotificationEvent::interfaceName() const |
29 { | 35 { |
30 return EventNames::NotificationEvent; | 36 return EventNames::NotificationEvent; |
31 } | 37 } |
32 | 38 |
33 void NotificationEvent::trace(Visitor* visitor) | 39 void NotificationEvent::trace(Visitor* visitor) |
34 { | 40 { |
35 visitor->trace(m_notification); | 41 visitor->trace(m_notification); |
36 ExtendableEvent::trace(visitor); | 42 ExtendableEvent::trace(visitor); |
37 } | 43 } |
38 | 44 |
39 } // namespace blink | 45 } // namespace blink |
OLD | NEW |