2012-05-21 04:12:37 -07: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-15 16:37:48 -07:00
|
|
|
|
|
|
|
#include "domstubs.idl"
|
|
|
|
|
2008-08-14 09:35:49 -07:00
|
|
|
interface nsIDOMGeoPositionCallback;
|
|
|
|
interface nsIDOMGeoPositionErrorCallback;
|
2008-07-15 16:37:48 -07:00
|
|
|
|
2013-04-12 11:46:36 -07:00
|
|
|
%{C++
|
2013-09-06 13:44:26 -07:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
2014-06-18 17:57:51 -07:00
|
|
|
struct PositionOptions;
|
2013-09-06 13:44:26 -07:00
|
|
|
}
|
|
|
|
}
|
2013-04-12 11:46:36 -07:00
|
|
|
%}
|
|
|
|
|
2013-09-06 13:44:26 -07:00
|
|
|
[ptr] native NamespacedPositionOptions(mozilla::dom::PositionOptions);
|
2013-04-12 11:46:36 -07:00
|
|
|
|
2013-10-28 16:34:07 -07:00
|
|
|
[builtinclass, uuid(9142ab45-0ab5-418c-9bab-338a6d271d4f)]
|
2008-08-14 09:35:49 -07:00
|
|
|
interface nsIDOMGeoGeolocation : nsISupports
|
2008-07-15 16:37:48 -07:00
|
|
|
{
|
2013-04-12 11:46:36 -07:00
|
|
|
int32_t watchPosition(in nsIDOMGeoPositionCallback callback,
|
|
|
|
in nsIDOMGeoPositionErrorCallback errorCallback,
|
2013-09-06 13:44:26 -07:00
|
|
|
in NamespacedPositionOptions options);
|
2013-04-12 11:46:36 -07:00
|
|
|
void getCurrentPosition(in nsIDOMGeoPositionCallback callback,
|
|
|
|
in nsIDOMGeoPositionErrorCallback errorCallback,
|
2013-09-06 13:44:26 -07:00
|
|
|
in NamespacedPositionOptions options);
|
2008-11-12 08:01:40 -08:00
|
|
|
void clearWatch(in long watchId);
|
2008-07-15 16:37:48 -07:00
|
|
|
};
|