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 PushEvent_h | 5 #ifndef PushEvent_h |
6 #define PushEvent_h | 6 #define PushEvent_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/push_messaging/PushEventInit.h" | 10 #include "modules/push_messaging/PushEventInit.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 } | 25 } |
26 static PassRefPtrWillBeRawPtr<PushEvent> create(const AtomicString& type, Pu
shMessageData* data, WaitUntilObserver* observer) | 26 static PassRefPtrWillBeRawPtr<PushEvent> create(const AtomicString& type, Pu
shMessageData* data, WaitUntilObserver* observer) |
27 { | 27 { |
28 return adoptRefWillBeNoop(new PushEvent(type, data, observer)); | 28 return adoptRefWillBeNoop(new PushEvent(type, data, observer)); |
29 } | 29 } |
30 static PassRefPtrWillBeRawPtr<PushEvent> create(const AtomicString& type, co
nst PushEventInit& initializer) | 30 static PassRefPtrWillBeRawPtr<PushEvent> create(const AtomicString& type, co
nst PushEventInit& initializer) |
31 { | 31 { |
32 return adoptRefWillBeNoop(new PushEvent(type, initializer)); | 32 return adoptRefWillBeNoop(new PushEvent(type, initializer)); |
33 } | 33 } |
34 | 34 |
35 virtual ~PushEvent(); | 35 ~PushEvent() override; |
36 | 36 |
37 virtual const AtomicString& interfaceName() const override; | 37 const AtomicString& interfaceName() const override; |
38 | 38 |
39 PushMessageData* data(); | 39 PushMessageData* data(); |
40 | 40 |
41 DECLARE_VIRTUAL_TRACE(); | 41 DECLARE_VIRTUAL_TRACE(); |
42 | 42 |
43 private: | 43 private: |
44 PushEvent(); | 44 PushEvent(); |
45 PushEvent(const AtomicString& type, PushMessageData*, WaitUntilObserver*); | 45 PushEvent(const AtomicString& type, PushMessageData*, WaitUntilObserver*); |
46 PushEvent(const AtomicString& type, const PushEventInit&); | 46 PushEvent(const AtomicString& type, const PushEventInit&); |
47 | 47 |
48 PersistentWillBeMember<PushMessageData> m_data; | 48 PersistentWillBeMember<PushMessageData> m_data; |
49 }; | 49 }; |
50 | 50 |
51 } // namespace blink | 51 } // namespace blink |
52 | 52 |
53 #endif // PushEvent_h | 53 #endif // PushEvent_h |
OLD | NEW |