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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: public/platform/WebGeofencingRegion.h
diff --git a/public/platform/WebGeofencingRegion.h b/public/platform/WebGeofencingRegion.h
new file mode 100644
index 0000000000000000000000000000000000000000..ec142d7408339dac9153a677eafa640da50573e8
--- /dev/null
+++ b/public/platform/WebGeofencingRegion.h
@@ -0,0 +1,46 @@
+// 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 WebGeofencingRegion_h
+#define WebGeofencingRegion_h
+
+#include "public/platform/WebString.h"
+
+namespace WebCore { class GeofencingRegion; }
+
+namespace blink {
+
+class WebCircularRegion;
+
+class WebGeofencingRegion {
+public:
+ WebGeofencingRegion() { }
+ WebGeofencingRegion(const WebGeofencingRegion& other) { assign(other); }
+ WebGeofencingRegion& operator=(const WebGeofencingRegion& other)
+ {
+ assign(other);
+ return *this;
+ }
+ ~WebGeofencingRegion() { reset(); }
Peter Beverloo 2014/07/14 17:23:09 Mark this as virtual and have empty destructors in
+
+ BLINK_EXPORT void assign(const WebGeofencingRegion&);
+ BLINK_EXPORT void reset();
+
+ BLINK_EXPORT WebString id() const;
+
+ BLINK_EXPORT bool isCircularRegion() const;
+ 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
+
+#if BLINK_IMPLEMENTATION
+ WebGeofencingRegion(WebCore::GeofencingRegion*);
Peter Beverloo 2014/07/14 17:23:09 This constructor should be marked as explicit.
+ operator WebCore::GeofencingRegion*() const;
+#endif
+
+private:
+ WebPrivatePtr<WebCore::GeofencingRegion> m_private;
+};
+
+} // namespace blink
+
+#endif // WebGeofencingRegion_h

Powered by Google App Engine
This is Rietveld 408576698