2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2008-07-16 03:37:48 +04:00
|
|
|
|
|
|
|
#include "domstubs.idl"
|
|
|
|
|
2008-08-14 20:35:49 +04:00
|
|
|
interface nsIDOMGeoPositionCallback;
|
|
|
|
interface nsIDOMGeoPositionErrorCallback;
|
2008-07-16 03:37:48 +04:00
|
|
|
|
2013-04-12 22:46:36 +04:00
|
|
|
%{C++
|
2013-09-07 00:44:26 +04:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
2014-06-19 04:57:51 +04:00
|
|
|
struct PositionOptions;
|
2013-09-07 00:44:26 +04:00
|
|
|
}
|
|
|
|
}
|
2013-04-12 22:46:36 +04:00
|
|
|
%}
|
|
|
|
|
2013-09-07 00:44:26 +04:00
|
|
|
[ptr] native NamespacedPositionOptions(mozilla::dom::PositionOptions);
|
2013-04-12 22:46:36 +04:00
|
|
|
|
2013-10-29 03:34:07 +04:00
|
|
|
[builtinclass, uuid(9142ab45-0ab5-418c-9bab-338a6d271d4f)]
|
2008-08-14 20:35:49 +04:00
|
|
|
interface nsIDOMGeoGeolocation : nsISupports
|
2008-07-16 03:37:48 +04:00
|
|
|
{
|
2013-04-12 22:46:36 +04:00
|
|
|
int32_t watchPosition(in nsIDOMGeoPositionCallback callback,
|
|
|
|
in nsIDOMGeoPositionErrorCallback errorCallback,
|
2013-09-07 00:44:26 +04:00
|
|
|
in NamespacedPositionOptions options);
|
2013-04-12 22:46:36 +04:00
|
|
|
void getCurrentPosition(in nsIDOMGeoPositionCallback callback,
|
|
|
|
in nsIDOMGeoPositionErrorCallback errorCallback,
|
2013-09-07 00:44:26 +04:00
|
|
|
in NamespacedPositionOptions options);
|
2008-11-12 19:01:40 +03:00
|
|
|
void clearWatch(in long watchId);
|
2008-07-16 03:37:48 +04:00
|
|
|
};
|