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

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: nits 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
« no previous file with comments | « Source/modules/geolocation/GeofencingRegion.idl ('k') | Source/modules/geolocation/Geolocation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/modules/geolocation/GeofencingRegion.idl ('k') | Source/modules/geolocation/Geolocation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698