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

Side by Side Diff: Source/modules/geofencing/GeofencingEvent.h

Issue 1227783004: Fix virtual/override/final usage in Source/modules/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 5 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 | Annotate | Revision Log
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 GeofencingEvent_h 5 #ifndef GeofencingEvent_h
6 #define GeofencingEvent_h 6 #define GeofencingEvent_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/geofencing/GeofencingRegion.h" 10 #include "modules/geofencing/GeofencingRegion.h"
(...skipping 12 matching lines...) Expand all
23 static PassRefPtrWillBeRawPtr<GeofencingEvent> create() 23 static PassRefPtrWillBeRawPtr<GeofencingEvent> create()
24 { 24 {
25 return adoptRefWillBeNoop(new GeofencingEvent); 25 return adoptRefWillBeNoop(new GeofencingEvent);
26 } 26 }
27 27
28 static PassRefPtrWillBeRawPtr<GeofencingEvent> create(const AtomicString& ty pe, const String& id, GeofencingRegion* region) 28 static PassRefPtrWillBeRawPtr<GeofencingEvent> create(const AtomicString& ty pe, const String& id, GeofencingRegion* region)
29 { 29 {
30 return adoptRefWillBeNoop(new GeofencingEvent(type, id, region)); 30 return adoptRefWillBeNoop(new GeofencingEvent(type, id, region));
31 } 31 }
32 32
33 virtual ~GeofencingEvent(); 33 ~GeofencingEvent() override;
34 DECLARE_VIRTUAL_TRACE(); 34 DECLARE_VIRTUAL_TRACE();
35 35
36 virtual const AtomicString& interfaceName() const override; 36 const AtomicString& interfaceName() const override;
37 37
38 String id() const { return m_id; } 38 String id() const { return m_id; }
39 39
40 GeofencingRegion* region() const { return m_region; } 40 GeofencingRegion* region() const { return m_region; }
41 41
42 private: 42 private:
43 GeofencingEvent(); 43 GeofencingEvent();
44 GeofencingEvent(const AtomicString& type, const String& id, GeofencingRegion *); 44 GeofencingEvent(const AtomicString& type, const String& id, GeofencingRegion *);
45 String m_id; 45 String m_id;
46 PersistentWillBeMember<GeofencingRegion> m_region; 46 PersistentWillBeMember<GeofencingRegion> m_region;
47 }; 47 };
48 48
49 } // namespace blink 49 } // namespace blink
50 50
51 #endif // GeofencingEvent_h 51 #endif // GeofencingEvent_h
OLDNEW
« no previous file with comments | « Source/modules/geofencing/CircularGeofencingRegion.h ('k') | Source/modules/geolocation/Geolocation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698