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

Unified Diff: Source/modules/geofencing/GeofencingRegion.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/modules/geofencing/GeofencingRegion.h
diff --git a/Source/modules/geofencing/GeofencingRegion.h b/Source/modules/geofencing/GeofencingRegion.h
index 8161a0202b510711bffd0a4a783433b3203cb626..d41a8463b1105c59386949e2318333d15f4c4e86 100644
--- a/Source/modules/geofencing/GeofencingRegion.h
+++ b/Source/modules/geofencing/GeofencingRegion.h
@@ -7,6 +7,8 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "platform/heap/Handle.h"
+#include "public/platform/WebGeofencingRegion.h"
+#include "public/platform/WebString.h"
#include "wtf/text/WTFString.h"
namespace blink {
@@ -16,15 +18,21 @@ class GeofencingRegion : public GarbageCollectedFinalized<GeofencingRegion>, pub
public:
virtual ~GeofencingRegion() { }
- String id() const { return m_id; }
+ String id() const { return m_region.id(); }
+
+ const WebGeofencingRegion& webRegion() const { return m_region; }
virtual void trace(Visitor*) { }
+ static GeofencingRegion* createFromWebRegion(const WebGeofencingRegion&);
+
+ // For SpecialWrapFor
+ bool isCircularRegion() const;
+
protected:
- GeofencingRegion(const String& id) : m_id(id) { }
+ explicit GeofencingRegion(const WebGeofencingRegion& region) : m_region(region) { }
-private:
- String m_id;
+ const WebGeofencingRegion m_region;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698