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 15 matching lines...) Expand all Loading... |
26 { | 26 { |
27 return adoptRefWillBeNoop(new NotificationEvent(type, initializer)); | 27 return adoptRefWillBeNoop(new NotificationEvent(type, initializer)); |
28 } | 28 } |
29 static PassRefPtrWillBeRawPtr<NotificationEvent> create(const AtomicString&
type, const NotificationEventInit& initializer, WaitUntilObserver* observer) | 29 static PassRefPtrWillBeRawPtr<NotificationEvent> create(const AtomicString&
type, const NotificationEventInit& initializer, WaitUntilObserver* observer) |
30 { | 30 { |
31 return adoptRefWillBeNoop(new NotificationEvent(type, initializer, obser
ver)); | 31 return adoptRefWillBeNoop(new NotificationEvent(type, initializer, obser
ver)); |
32 } | 32 } |
33 | 33 |
34 ~NotificationEvent() override; | 34 ~NotificationEvent() override; |
35 | 35 |
36 Notification* notification() const { return m_notification.get(); } | 36 Notification* getNotification() const { return m_notification.get(); } |
37 String action() const { return m_action; } | 37 String action() const { return m_action; } |
38 | 38 |
39 const AtomicString& interfaceName() const override; | 39 const AtomicString& interfaceName() const override; |
40 | 40 |
41 DECLARE_VIRTUAL_TRACE(); | 41 DECLARE_VIRTUAL_TRACE(); |
42 | 42 |
43 private: | 43 private: |
44 NotificationEvent(); | 44 NotificationEvent(); |
45 NotificationEvent(const AtomicString& type, const NotificationEventInit&); | 45 NotificationEvent(const AtomicString& type, const NotificationEventInit&); |
46 NotificationEvent(const AtomicString& type, const NotificationEventInit&, Wa
itUntilObserver*); | 46 NotificationEvent(const AtomicString& type, const NotificationEventInit&, Wa
itUntilObserver*); |
47 | 47 |
48 PersistentWillBeMember<Notification> m_notification; | 48 PersistentWillBeMember<Notification> m_notification; |
49 String m_action; | 49 String m_action; |
50 }; | 50 }; |
51 | 51 |
52 } // namespace blink | 52 } // namespace blink |
53 | 53 |
54 #endif // NotificationEvent_h | 54 #endif // NotificationEvent_h |
OLD | NEW |