| 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 #ifndef NotificationEvent_h | 5 #ifndef NotificationEvent_h |
| 6 #define NotificationEvent_h | 6 #define NotificationEvent_h |
| 7 | 7 |
| 8 #include "modules/EventModules.h" | 8 #include "modules/EventModules.h" |
| 9 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
| 10 #include "modules/notifications/Notification.h" | 10 #include "modules/notifications/Notification.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 } | 24 } |
| 25 static NotificationEvent* create(const AtomicString& type, const Notificatio
nEventInit& initializer, WaitUntilObserver* observer) | 25 static NotificationEvent* create(const AtomicString& type, const Notificatio
nEventInit& initializer, WaitUntilObserver* observer) |
| 26 { | 26 { |
| 27 return new NotificationEvent(type, initializer, observer); | 27 return new NotificationEvent(type, initializer, observer); |
| 28 } | 28 } |
| 29 | 29 |
| 30 ~NotificationEvent() override; | 30 ~NotificationEvent() override; |
| 31 | 31 |
| 32 Notification* getNotification() const { return m_notification.get(); } | 32 Notification* getNotification() const { return m_notification.get(); } |
| 33 String action() const { return m_action; } | 33 String action() const { return m_action; } |
| 34 String reply() const { return m_reply; } |
| 34 | 35 |
| 35 const AtomicString& interfaceName() const override; | 36 const AtomicString& interfaceName() const override; |
| 36 | 37 |
| 37 DECLARE_VIRTUAL_TRACE(); | 38 DECLARE_VIRTUAL_TRACE(); |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 NotificationEvent(const AtomicString& type, const NotificationEventInit&); | 41 NotificationEvent(const AtomicString& type, const NotificationEventInit&); |
| 41 NotificationEvent(const AtomicString& type, const NotificationEventInit&, Wa
itUntilObserver*); | 42 NotificationEvent(const AtomicString& type, const NotificationEventInit&, Wa
itUntilObserver*); |
| 42 | 43 |
| 43 Member<Notification> m_notification; | 44 Member<Notification> m_notification; |
| 44 String m_action; | 45 String m_action; |
| 46 String m_reply; |
| 45 }; | 47 }; |
| 46 | 48 |
| 47 } // namespace blink | 49 } // namespace blink |
| 48 | 50 |
| 49 #endif // NotificationEvent_h | 51 #endif // NotificationEvent_h |
| OLD | NEW |