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

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

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/Geolocation.h ('k') | Source/modules/geolocation/Geolocation.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/geolocation/Geolocation.cpp
diff --git a/Source/modules/geolocation/Geolocation.cpp b/Source/modules/geolocation/Geolocation.cpp
index 25954ea9b4be3d65c15d48f1eb2b0e9ecdacbd62..ee8c7742abe28fb86257e94d29b6fe2cb22d90e5 100644
--- a/Source/modules/geolocation/Geolocation.cpp
+++ b/Source/modules/geolocation/Geolocation.cpp
@@ -28,8 +28,11 @@
#include "config.h"
#include "modules/geolocation/Geolocation.h"
+#include "core/dom/DOMException.h"
#include "core/dom/Document.h"
+#include "core/dom/ExceptionCode.h"
#include "modules/geolocation/Coordinates.h"
+#include "modules/geolocation/GeofencingRegion.h"
#include "modules/geolocation/GeolocationController.h"
#include "modules/geolocation/GeolocationError.h"
#include "modules/geolocation/GeolocationPosition.h"
@@ -681,4 +684,19 @@ void Geolocation::handlePendingPermissionNotifiers()
}
}
+ScriptPromise Geolocation::registerRegion(ScriptState* scriptState, GeofencingRegion* region)
+{
+ return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError));
+}
+
+ScriptPromise Geolocation::unregisterRegion(ScriptState* scriptState, const String& regionId)
+{
+ return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError));
+}
+
+ScriptPromise Geolocation::getRegisteredRegions(ScriptState* scriptState) const
+{
+ return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError));
+}
+
} // namespace WebCore
« no previous file with comments | « Source/modules/geolocation/Geolocation.h ('k') | Source/modules/geolocation/Geolocation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698