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

Side by Side Diff: Source/modules/geofencing/CircularGeofencingRegion.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
« no previous file with comments | « Source/modules/filesystem/SyncCallbackHelper.h ('k') | Source/modules/geofencing/Geofencing.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/geofencing/GeofencingRegion.h" 8 #include "modules/geofencing/GeofencingRegion.h"
9 #include "public/platform/WebCircularGeofencingRegion.h" 9 #include "public/platform/WebCircularGeofencingRegion.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class Dictionary; 13 class Dictionary;
14 14
15 class CircularGeofencingRegion FINAL : public GeofencingRegion { 15 class CircularGeofencingRegion final : public GeofencingRegion {
16 DEFINE_WRAPPERTYPEINFO(); 16 DEFINE_WRAPPERTYPEINFO();
17 WTF_MAKE_NONCOPYABLE(CircularGeofencingRegion); 17 WTF_MAKE_NONCOPYABLE(CircularGeofencingRegion);
18 public: 18 public:
19 static CircularGeofencingRegion* create(const Dictionary& init); 19 static CircularGeofencingRegion* create(const Dictionary& init);
20 static CircularGeofencingRegion* create(const WebString& id, const WebCircul arGeofencingRegion&); 20 static CircularGeofencingRegion* create(const WebString& id, const WebCircul arGeofencingRegion&);
21 virtual ~CircularGeofencingRegion() { } 21 virtual ~CircularGeofencingRegion() { }
22 22
23 double latitude() const { return m_webRegion.latitude; } 23 double latitude() const { return m_webRegion.latitude; }
24 double longitude() const { return m_webRegion.longitude; } 24 double longitude() const { return m_webRegion.longitude; }
25 double radius() const { return m_webRegion.radius; } 25 double radius() const { return m_webRegion.radius; }
26 26
27 WebCircularGeofencingRegion webRegion() const; 27 WebCircularGeofencingRegion webRegion() const;
28 28
29 virtual void trace(Visitor* visitor) OVERRIDE { GeofencingRegion::trace(visi tor); } 29 virtual void trace(Visitor* visitor) override { GeofencingRegion::trace(visi tor); }
30 30
31 virtual bool isCircularGeofencingRegion() const OVERRIDE { return true; } 31 virtual bool isCircularGeofencingRegion() const override { return true; }
32 32
33 private: 33 private:
34 explicit CircularGeofencingRegion(const String& id, const WebCircularGeofenc ingRegion&); 34 explicit CircularGeofencingRegion(const String& id, const WebCircularGeofenc ingRegion&);
35 35
36 WebCircularGeofencingRegion m_webRegion; 36 WebCircularGeofencingRegion m_webRegion;
37 }; 37 };
38 38
39 DEFINE_TYPE_CASTS(CircularGeofencingRegion, GeofencingRegion, region, region->is CircularGeofencingRegion(), region.isCircularGeofencingRegion()); 39 DEFINE_TYPE_CASTS(CircularGeofencingRegion, GeofencingRegion, region, region->is CircularGeofencingRegion(), region.isCircularGeofencingRegion());
40 40
41 } // namespace blink 41 } // namespace blink
42 42
43 #endif // CircularGeofencingRegion_h 43 #endif // CircularGeofencingRegion_h
OLDNEW
« no previous file with comments | « Source/modules/filesystem/SyncCallbackHelper.h ('k') | Source/modules/geofencing/Geofencing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698