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