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

Unified Diff: public/web/WebCircularRegion.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 side-by-side diff with in-line comments
Download patch
Index: public/web/WebCircularRegion.h
diff --git a/public/web/WebCircularRegion.h b/public/web/WebCircularRegion.h
new file mode 100644
index 0000000000000000000000000000000000000000..76ff3932e8962bf1bb9d3eeb771e5ac355160221
--- /dev/null
+++ b/public/web/WebCircularRegion.h
@@ -0,0 +1,36 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
Peter Beverloo 2014/07/14 17:23:09 This should be in public/platform/, as there is no
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebCircularRegion_h
+#define WebCircularRegion_h
+
+#include "public/platform/WebGeofencingRegion.h"
+
+namespace WebCore { class CircularRegion; }
+
+namespace blink {
+
+class WebCircularRegion : public WebGeofencingRegion {
Michael van Ouwerkerk 2014/07/15 18:04:42 I think that if you make this a plain interface, C
+public:
+ WebCircularRegion() { }
+ WebCircularRegion(const WebCircularRegion& other) { assign(other); }
+ WebCircularRegion& operator=(const WebCircularRegion& other)
+ {
+ assign(other);
+ return *this;
+ }
+
+ BLINK_EXPORT double latitude() const;
+ BLINK_EXPORT double longitude() const;
+ BLINK_EXPORT double radius() const;
+
+#if BLINK_IMPLEMENTATION
+ WebCircularRegion(WebCore::CircularRegion*);
Peter Beverloo 2014/07/14 17:23:09 This constructor should be marked as explicit.
+ operator WebCore::CircularRegion*() const;
+#endif
+};
+
+} // namespace blink
+
+#endif // WebCircularRegion_h

Powered by Google App Engine
This is Rietveld 408576698