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

Unified Diff: Source/platform/exported/WebCircularRegionPrivate.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: Source/platform/exported/WebCircularRegionPrivate.h
diff --git a/Source/platform/exported/WebCircularRegionPrivate.h b/Source/platform/exported/WebCircularRegionPrivate.h
new file mode 100644
index 0000000000000000000000000000000000000000..c2a252c9d760eca09b070f3b6820e51138c55561
--- /dev/null
+++ b/Source/platform/exported/WebCircularRegionPrivate.h
@@ -0,0 +1,30 @@
+// 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 WebCircularRegionPrivate_h
+#define WebCircularRegionPrivate_h
+
+#include "platform/exported/WebGeofencingRegionPrivate.h"
+
+namespace blink {
+
+class WebCircularRegionPrivate : public WebGeofencingRegionPrivate {
esprehn 2014/08/19 01:15:59 FINAL?
Marijn Kruisselbrink 2014/08/19 18:55:14 Done.
+public:
+ WebCircularRegionPrivate(const WebString& id, double latitude, double longitude, double radius)
+ : WebGeofencingRegionPrivate(id)
+ , latitude(latitude)
+ , longitude(longitude)
+ , radius(radius)
+ { }
+
+ const double latitude;
+ const double longitude;
+ const double radius;
+
+ virtual WebGeofencingRegion::RegionType regionType() const { return WebGeofencingRegion::CircularRegionType; }
esprehn 2014/08/19 01:15:59 OVERRIDE
Marijn Kruisselbrink 2014/08/19 18:55:14 Done.
+};
+
+} // namespace blink
+
+#endif // WebCircularRegionPrivate_h

Powered by Google App Engine
This is Rietveld 408576698