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

Side by Side Diff: Source/modules/geolocation/CircularRegion.h

Issue 393533002: Pass through the geofencing API calls to the content layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@geofencing2
Patch Set: Created 6 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
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 CircularRegion_h 5 #ifndef CircularRegion_h
6 #define CircularRegion_h 6 #define CircularRegion_h
7 7
8 #include "modules/geolocation/GeofencingRegion.h" 8 #include "modules/geolocation/GeofencingRegion.h"
9 9
10 namespace WebCore { 10 namespace WebCore {
(...skipping 13 matching lines...) Expand all
24 class CircularRegion FINAL : public GeofencingRegion { 24 class CircularRegion FINAL : public GeofencingRegion {
25 WTF_MAKE_NONCOPYABLE(CircularRegion); 25 WTF_MAKE_NONCOPYABLE(CircularRegion);
26 public: 26 public:
27 static CircularRegion* create(const Dictionary& init); 27 static CircularRegion* create(const Dictionary& init);
28 virtual ~CircularRegion() { } 28 virtual ~CircularRegion() { }
29 29
30 double latitude() const { return m_latitude; } 30 double latitude() const { return m_latitude; }
31 double longitude() const { return m_longitude; } 31 double longitude() const { return m_longitude; }
32 double radius() const { return m_radius; } 32 double radius() const { return m_radius; }
33 33
34 virtual bool isCircularRegion() const OVERRIDE { return true; }
35
34 virtual void trace(Visitor* visitor) OVERRIDE { GeofencingRegion::trace(visi tor); } 36 virtual void trace(Visitor* visitor) OVERRIDE { GeofencingRegion::trace(visi tor); }
35 37
36 private: 38 private:
37 explicit CircularRegion(const CircularRegionInit&); 39 explicit CircularRegion(const CircularRegionInit&);
38 40
39 double m_latitude; 41 double m_latitude;
40 double m_longitude; 42 double m_longitude;
41 double m_radius; 43 double m_radius;
42 }; 44 };
43 45
44 } // namespace WebCore 46 } // namespace WebCore
45 47
46 #endif 48 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/modules/geolocation/GeofencingController.h » ('j') | Source/modules/geolocation/GeofencingRegion.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698