Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: Source/modules/push_messaging/PushEvent.h

Issue 635233004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 blink { 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 DEFINE_WRAPPERTYPEINFO(); 22 DEFINE_WRAPPERTYPEINFO();
23 public: 23 public:
24 static PassRefPtrWillBeRawPtr<PushEvent> create() 24 static PassRefPtrWillBeRawPtr<PushEvent> create()
25 { 25 {
26 return adoptRefWillBeNoop(new PushEvent); 26 return adoptRefWillBeNoop(new PushEvent);
27 } 27 }
28 static PassRefPtrWillBeRawPtr<PushEvent> create(const AtomicString& type, co nst String& data) 28 static PassRefPtrWillBeRawPtr<PushEvent> create(const AtomicString& type, co nst String& data)
29 { 29 {
30 return adoptRefWillBeNoop(new PushEvent(type, data)); 30 return adoptRefWillBeNoop(new PushEvent(type, data));
31 } 31 }
32 static PassRefPtrWillBeRawPtr<PushEvent> create(const AtomicString& type, co nst PushEventInit& initializer) 32 static PassRefPtrWillBeRawPtr<PushEvent> create(const AtomicString& type, co nst PushEventInit& initializer)
33 { 33 {
34 return adoptRefWillBeNoop(new PushEvent(type, initializer)); 34 return adoptRefWillBeNoop(new PushEvent(type, initializer));
35 } 35 }
36 36
37 virtual ~PushEvent(); 37 virtual ~PushEvent();
38 38
39 virtual const AtomicString& interfaceName() const OVERRIDE; 39 virtual const AtomicString& interfaceName() const override;
40 40
41 String data() const { return m_data; } 41 String data() const { return m_data; }
42 42
43 private: 43 private:
44 PushEvent(); 44 PushEvent();
45 PushEvent(const AtomicString& type, const String& data); 45 PushEvent(const AtomicString& type, const String& data);
46 PushEvent(const AtomicString& type, const PushEventInit&); 46 PushEvent(const AtomicString& type, const PushEventInit&);
47 String m_data; 47 String m_data;
48 }; 48 };
49 49
50 } // namespace blink 50 } // namespace blink
51 51
52 #endif // PushEvent_h 52 #endif // PushEvent_h
OLDNEW
« no previous file with comments | « Source/modules/push_messaging/PushController.h ('k') | Source/modules/push_messaging/PushManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698