Chromium Code Reviews| Index: Source/modules/geolocation/Geolocation.cpp |
| diff --git a/Source/modules/geolocation/Geolocation.cpp b/Source/modules/geolocation/Geolocation.cpp |
| index 99035aa0297e45d985b8d1567330db5789db6ab1..856f17a000cc0cb7a2d9b85f988f68abb76bf7de 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)); |
|
Peter Beverloo
2014/07/10 16:31:36
Could we perhaps add a very basic layout test to v
Marijn Kruisselbrink
2014/07/11 10:06:39
Done (although it seems a bit silly to write tests
|
| +} |
| + |
| +ScriptPromise Geolocation::unregisterRegion(ScriptState* scriptState, const String& regionId) |
| +{ |
| + return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError)); |
|
Peter Beverloo
2014/07/10 16:31:37
dito.
Marijn Kruisselbrink
2014/07/11 10:06:39
Done.
|
| +} |
| + |
| +ScriptPromise Geolocation::getRegisteredRegions(ScriptState* scriptState) const |
| +{ |
| + return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError)); |
|
Peter Beverloo
2014/07/10 16:31:37
dito.
Marijn Kruisselbrink
2014/07/11 10:06:39
Done.
|
| +} |
| + |
| } // namespace WebCore |