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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: public/platform/WebCircularRegion.h
diff --git a/public/platform/WebCircularRegion.h b/public/platform/WebCircularRegion.h
new file mode 100644
index 0000000000000000000000000000000000000000..3d961672b9302566474f6584cf0b5bdf82dc5337
--- /dev/null
+++ b/public/platform/WebCircularRegion.h
@@ -0,0 +1,41 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// 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 "WebCommon.h"
+#include "WebGeofencingRegion.h"
+#include "WebPrivatePtr.h"
+
+namespace blink {
+
+class WebCircularRegionPrivate;
+
+class WebCircularRegion : public WebGeofencingRegion {
esprehn 2014/08/19 01:15:59 FINAL
Marijn Kruisselbrink 2014/08/19 18:55:14 Done.
+public:
+ WebCircularRegion(const WebCircularRegion& other) { assign(other); }
+ WebCircularRegion& operator=(const WebCircularRegion& other)
+ {
+ assign(other);
+ return *this;
+ }
+
+ BLINK_PLATFORM_EXPORT static WebCircularRegion create(const WebString& id, double latitude, double longitude, double radius);
+
+ BLINK_PLATFORM_EXPORT double latitude() const;
+ BLINK_PLATFORM_EXPORT double longitude() const;
+ BLINK_PLATFORM_EXPORT double radius() const;
+
+private:
+ 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
+
+ WebCircularRegion() { }
+
+ WebCircularRegionPrivate* privateData() const;
+};
+
+} // namespace blink
+
+#endif // WebCircularRegion_h

Powered by Google App Engine
This is Rietveld 408576698