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 "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
10 #include "wtf/text/AtomicString.h" | 10 #include "wtf/text/AtomicString.h" |
11 #include "wtf/text/WTFString.h" | 11 #include "wtf/text/WTFString.h" |
12 | 12 |
13 namespace WebCore { | 13 namespace blink { |
14 | 14 |
15 struct PushEventInit : public EventInit { | 15 struct PushEventInit : public EventInit { |
16 PushEventInit(); | 16 PushEventInit(); |
17 | 17 |
18 String data; | 18 String data; |
19 }; | 19 }; |
20 | 20 |
21 class PushEvent FINAL : public Event { | 21 class PushEvent FINAL : public Event { |
22 public: | 22 public: |
23 static PassRefPtrWillBeRawPtr<PushEvent> create() | 23 static PassRefPtrWillBeRawPtr<PushEvent> create() |
(...skipping 15 matching lines...) Expand all Loading... |
39 | 39 |
40 String data() const { return m_data; } | 40 String data() const { return m_data; } |
41 | 41 |
42 private: | 42 private: |
43 PushEvent(); | 43 PushEvent(); |
44 PushEvent(const AtomicString& type, const String& data); | 44 PushEvent(const AtomicString& type, const String& data); |
45 PushEvent(const AtomicString& type, const PushEventInit&); | 45 PushEvent(const AtomicString& type, const PushEventInit&); |
46 String m_data; | 46 String m_data; |
47 }; | 47 }; |
48 | 48 |
49 } // namespace WebCore | 49 } // namespace blink |
50 | 50 |
51 #endif // PushEvent_h | 51 #endif // PushEvent_h |
OLD | NEW |