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

Side by Side Diff: Source/modules/geofencing/CircularGeofencingRegion.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
« no previous file with comments | « Source/modules/gamepad/NavigatorGamepad.h ('k') | Source/modules/geofencing/GeofencingEvent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CircularGeofencingRegion_h 5 #ifndef CircularGeofencingRegion_h
6 #define CircularGeofencingRegion_h 6 #define CircularGeofencingRegion_h
7 7
8 #include "modules/ModulesExport.h" 8 #include "modules/ModulesExport.h"
9 #include "modules/geofencing/GeofencingRegion.h" 9 #include "modules/geofencing/GeofencingRegion.h"
10 #include "public/platform/WebCircularGeofencingRegion.h" 10 #include "public/platform/WebCircularGeofencingRegion.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class CircularGeofencingRegionInit; 14 class CircularGeofencingRegionInit;
15 15
16 class MODULES_EXPORT CircularGeofencingRegion final : public GeofencingRegion { 16 class MODULES_EXPORT CircularGeofencingRegion final : public GeofencingRegion {
17 DEFINE_WRAPPERTYPEINFO(); 17 DEFINE_WRAPPERTYPEINFO();
18 WTF_MAKE_NONCOPYABLE(CircularGeofencingRegion); 18 WTF_MAKE_NONCOPYABLE(CircularGeofencingRegion);
19 public: 19 public:
20 static CircularGeofencingRegion* create(const CircularGeofencingRegionInit&) ; 20 static CircularGeofencingRegion* create(const CircularGeofencingRegionInit&) ;
21 static CircularGeofencingRegion* create(const WebString& id, const WebCircul arGeofencingRegion&); 21 static CircularGeofencingRegion* create(const WebString& id, const WebCircul arGeofencingRegion&);
22 virtual ~CircularGeofencingRegion() { } 22 ~CircularGeofencingRegion() override { }
23 23
24 double latitude() const { return m_webRegion.latitude; } 24 double latitude() const { return m_webRegion.latitude; }
25 double longitude() const { return m_webRegion.longitude; } 25 double longitude() const { return m_webRegion.longitude; }
26 double radius() const { return m_webRegion.radius; } 26 double radius() const { return m_webRegion.radius; }
27 27
28 WebCircularGeofencingRegion webRegion() const; 28 WebCircularGeofencingRegion webRegion() const;
29 29
30 DEFINE_INLINE_VIRTUAL_TRACE() { GeofencingRegion::trace(visitor); } 30 DEFINE_INLINE_VIRTUAL_TRACE() { GeofencingRegion::trace(visitor); }
31 31
32 virtual bool isCircularGeofencingRegion() const override { return true; } 32 bool isCircularGeofencingRegion() const override { return true; }
33 33
34 private: 34 private:
35 explicit CircularGeofencingRegion(const String& id, const WebCircularGeofenc ingRegion&); 35 explicit CircularGeofencingRegion(const String& id, const WebCircularGeofenc ingRegion&);
36 36
37 WebCircularGeofencingRegion m_webRegion; 37 WebCircularGeofencingRegion m_webRegion;
38 }; 38 };
39 39
40 DEFINE_TYPE_CASTS(CircularGeofencingRegion, GeofencingRegion, region, region->is CircularGeofencingRegion(), region.isCircularGeofencingRegion()); 40 DEFINE_TYPE_CASTS(CircularGeofencingRegion, GeofencingRegion, region, region->is CircularGeofencingRegion(), region.isCircularGeofencingRegion());
41 41
42 } // namespace blink 42 } // namespace blink
43 43
44 #endif // CircularGeofencingRegion_h 44 #endif // CircularGeofencingRegion_h
OLDNEW
« no previous file with comments | « Source/modules/gamepad/NavigatorGamepad.h ('k') | Source/modules/geofencing/GeofencingEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698