| 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/notifications/NotificationEvent.h" | 5 #include "modules/notifications/NotificationEvent.h" |
| 6 | 6 |
| 7 #include "modules/notifications/NotificationEventInit.h" | 7 #include "modules/notifications/NotificationEventInit.h" |
| 8 #include "wtf/text/WTFString.h" | 8 #include "platform/wtf/text/WTFString.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 NotificationEvent::NotificationEvent(const AtomicString& type, | 12 NotificationEvent::NotificationEvent(const AtomicString& type, |
| 13 const NotificationEventInit& initializer) | 13 const NotificationEventInit& initializer) |
| 14 : ExtendableEvent(type, initializer), | 14 : ExtendableEvent(type, initializer), |
| 15 action_(initializer.action()), | 15 action_(initializer.action()), |
| 16 reply_(initializer.reply()) { | 16 reply_(initializer.reply()) { |
| 17 if (initializer.hasNotification()) | 17 if (initializer.hasNotification()) |
| 18 notification_ = initializer.notification(); | 18 notification_ = initializer.notification(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 33 const AtomicString& NotificationEvent::InterfaceName() const { | 33 const AtomicString& NotificationEvent::InterfaceName() const { |
| 34 return EventNames::NotificationEvent; | 34 return EventNames::NotificationEvent; |
| 35 } | 35 } |
| 36 | 36 |
| 37 DEFINE_TRACE(NotificationEvent) { | 37 DEFINE_TRACE(NotificationEvent) { |
| 38 visitor->Trace(notification_); | 38 visitor->Trace(notification_); |
| 39 ExtendableEvent::Trace(visitor); | 39 ExtendableEvent::Trace(visitor); |
| 40 } | 40 } |
| 41 | 41 |
| 42 } // namespace blink | 42 } // namespace blink |
| OLD | NEW |