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

Unified Diff: Source/modules/geolocation/Geolocation.h

Issue 375353002: Add the first very basic bits of a geofencing API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: address comments 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: Source/modules/geolocation/Geolocation.h
diff --git a/Source/modules/geolocation/Geolocation.h b/Source/modules/geolocation/Geolocation.h
index 21505eae29b9105bf6478c212173c18bc4342b85..ba8962636ad5a43f44bd76c1674b7c9ceddf6ca9 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 deregisterRegion(ScriptState*, const String& regionId);
Peter Beverloo 2014/07/10 13:17:28 s/deregister/unregister/?
Marijn Kruisselbrink 2014/07/10 15:11:01 Yeah, that seems to be the more common word used f
+ ScriptPromise getRegisteredRegions(ScriptState*);
Peter Beverloo 2014/07/10 13:17:28 Sounds like this would be const?
Marijn Kruisselbrink 2014/07/10 15:11:01 Done.
+
private:
// Returns the last known position, if any. May return null.
Geoposition* lastPosition();

Powered by Google App Engine
This is Rietveld 408576698