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

Unified Diff: public/platform/WebCircularGeofencingRegion.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: only support circular regions for now Created 6 years, 3 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/WebCircularGeofencingRegion.h
diff --git a/public/platform/WebCircularGeofencingRegion.h b/public/platform/WebCircularGeofencingRegion.h
new file mode 100644
index 0000000000000000000000000000000000000000..d3c4ac880a708861d0f5e1e4507a735744a4d0cc
--- /dev/null
+++ b/public/platform/WebCircularGeofencingRegion.h
@@ -0,0 +1,29 @@
+// 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 WebCircularGeofencingRegion_h
+#define WebCircularGeofencingRegion_h
+
+#include "WebCommon.h"
+#include "WebString.h"
+
+namespace blink {
+
+struct WebCircularGeofencingRegion {
+ WebString id;
jochen (gone - plz use gerrit) 2014/09/04 11:14:54 i wouldn't put the ID in the region (the IDL doesn
Marijn Kruisselbrink 2014/09/04 17:44:19 The IDL does have the ID in the region. In fact th
jochen (gone - plz use gerrit) 2014/09/05 14:08:29 I'm sorry, I guess I should first read up on this
Marijn Kruisselbrink 2014/09/05 18:32:09 I now changed the blink<->content API to not have
+ double latitude;
+ double longitude;
+ double radius;
+
+ WebCircularGeofencingRegion()
+ : latitude(0)
+ , longitude(0)
+ , radius(0)
+ {
+ }
+};
+
+} // namespace blink
+
+#endif // WebCircularGeofencingRegion_h

Powered by Google App Engine
This is Rietveld 408576698