Chromium Code Reviews| 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(); |