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

Side by Side Diff: public/platform/WebGeofencingRegion.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
(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 WebGeofencingRegion_h
6 #define WebGeofencingRegion_h
7
8 #include "public/platform/WebString.h"
9
10 namespace WebCore { class GeofencingRegion; }
11
12 namespace blink {
13
14 class WebCircularRegion;
15
16 class WebGeofencingRegion {
17 public:
18 WebGeofencingRegion() { }
19 WebGeofencingRegion(const WebGeofencingRegion& other) { assign(other); }
20 WebGeofencingRegion& operator=(const WebGeofencingRegion& other)
21 {
22 assign(other);
23 return *this;
24 }
25 ~WebGeofencingRegion() { reset(); }
Peter Beverloo 2014/07/14 17:23:09 Mark this as virtual and have empty destructors in
26
27 BLINK_EXPORT void assign(const WebGeofencingRegion&);
28 BLINK_EXPORT void reset();
29
30 BLINK_EXPORT WebString id() const;
31
32 BLINK_EXPORT bool isCircularRegion() const;
33 BLINK_EXPORT WebCircularRegion asCircularRegion() const;
Peter Beverloo 2014/07/14 17:23:09 This would make a copy. Should we instead return a
Peter Beverloo 2014/07/14 18:16:12 Also needs the Web prefix: toWebCircularRegion, to
34
35 #if BLINK_IMPLEMENTATION
36 WebGeofencingRegion(WebCore::GeofencingRegion*);
Peter Beverloo 2014/07/14 17:23:09 This constructor should be marked as explicit.
37 operator WebCore::GeofencingRegion*() const;
38 #endif
39
40 private:
41 WebPrivatePtr<WebCore::GeofencingRegion> m_private;
42 };
43
44 } // namespace blink
45
46 #endif // WebGeofencingRegion_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698