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

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

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: 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.idl
diff --git a/Source/modules/geolocation/Geolocation.idl b/Source/modules/geolocation/Geolocation.idl
index 2872ed00c5e2710307ea8728a1332edd678b482d..ab7f1ce43523850f07f2f25d528bf2ad095a88b8 100644
--- a/Source/modules/geolocation/Geolocation.idl
+++ b/Source/modules/geolocation/Geolocation.idl
@@ -39,5 +39,8 @@
optional Dictionary options);
void clearWatch(long watchID);
-};
+ [RuntimeEnabled=Geofencing, CallWith=ScriptState] Promise registerRegion(GeofencingRegion region);
+ [RuntimeEnabled=Geofencing, CallWith=ScriptState] Promise unregisterRegion(DOMString regionId);
+ [RuntimeEnabled=Geofencing, CallWith=ScriptState] Promise getRegisteredRegions();
+};

Powered by Google App Engine
This is Rietveld 408576698