Index: Source/modules/geolocation/Geolocation.h |
diff --git a/Source/modules/geolocation/Geolocation.h b/Source/modules/geolocation/Geolocation.h |
index 81ac74cecf1383b95ae8df9256947b25d2e5f657..8602eb1ea696c1a841bbcc48d2765b52e92a0946 100644 |
--- a/Source/modules/geolocation/Geolocation.h |
+++ b/Source/modules/geolocation/Geolocation.h |
@@ -27,6 +27,7 @@ |
#ifndef Geolocation_h |
#define Geolocation_h |
+#include "bindings/core/v8/ScriptPromise.h" |
#include "bindings/core/v8/ScriptWrappable.h" |
#include "core/dom/ActiveDOMObject.h" |
#include "modules/geolocation/Geoposition.h" |
@@ -42,6 +43,7 @@ namespace WebCore { |
class Dictionary; |
class Document; |
class LocalFrame; |
+class GeofencingRegion; |
class GeolocationController; |
class GeolocationError; |
class GeolocationPosition; |
@@ -82,6 +84,10 @@ public: |
// Notifies this that an error has occurred, it must be handled immediately. |
void setError(GeolocationError*); |
+ ScriptPromise registerRegion(ScriptState*, GeofencingRegion*); |
+ ScriptPromise unregisterRegion(ScriptState*, const String& regionId); |
+ ScriptPromise getRegisteredRegions(ScriptState*) const; |
+ |
private: |
// Returns the last known position, if any. May return null. |
Geoposition* lastPosition(); |