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

Side by Side Diff: public/platform/WebCircularRegion.h

Issue 464073002: Pass through geofencing API calls to the content layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef WebCircularRegion_h
6 #define WebCircularRegion_h
7
8 #include "WebCommon.h"
9 #include "WebGeofencingRegion.h"
10 #include "WebPrivatePtr.h"
11
12 namespace blink {
13
14 class WebCircularRegionPrivate;
15
16 class WebCircularRegion : public WebGeofencingRegion {
esprehn 2014/08/19 01:15:59 FINAL
Marijn Kruisselbrink 2014/08/19 18:55:14 Done.
17 public:
18 WebCircularRegion(const WebCircularRegion& other) { assign(other); }
19 WebCircularRegion& operator=(const WebCircularRegion& other)
20 {
21 assign(other);
22 return *this;
23 }
24
25 BLINK_PLATFORM_EXPORT static WebCircularRegion create(const WebString& id, d ouble latitude, double longitude, double radius);
26
27 BLINK_PLATFORM_EXPORT double latitude() const;
28 BLINK_PLATFORM_EXPORT double longitude() const;
29 BLINK_PLATFORM_EXPORT double radius() const;
30
31 private:
32 friend class WebGeofencingRegion;
esprehn 2014/08/19 01:15:59 Why do you need friends?
Marijn Kruisselbrink 2014/08/19 18:55:14 because WebGeofencingRegion::to and constTo create
33
34 WebCircularRegion() { }
35
36 WebCircularRegionPrivate* privateData() const;
37 };
38
39 } // namespace blink
40
41 #endif // WebCircularRegion_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698