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 nsIDOMGeoPosition;
|
|
|
|
interface nsIDOMGeoPositionOptions;
|
|
|
|
interface nsIDOMGeoPositionCallback;
|
|
|
|
interface nsIDOMGeoPositionErrorCallback;
|
2008-07-15 16:37:48 -07:00
|
|
|
|
2012-04-16 12:08:48 -07:00
|
|
|
dictionary GeoPositionOptions
|
|
|
|
{
|
|
|
|
boolean enableHighAccuracy;
|
|
|
|
long timeout;
|
|
|
|
long maximumAge;
|
|
|
|
};
|
|
|
|
|
|
|
|
[scriptable, uuid(b9a301f7-285b-4be9-b739-fb869019c77a)]
|
2008-08-14 09:35:49 -07:00
|
|
|
interface nsIDOMGeoGeolocation : nsISupports
|
2008-07-15 16:37:48 -07:00
|
|
|
{
|
2012-04-16 12:08:48 -07:00
|
|
|
[implicit_jscontext]
|
2008-08-14 09:35:49 -07:00
|
|
|
void getCurrentPosition(in nsIDOMGeoPositionCallback successCallback,
|
2008-08-29 00:26:34 -07:00
|
|
|
[optional] in nsIDOMGeoPositionErrorCallback errorCallback,
|
2012-04-16 12:08:48 -07:00
|
|
|
/* GeoPositionOptions */
|
|
|
|
[optional] in jsval options);
|
2008-07-15 16:37:48 -07:00
|
|
|
|
2012-04-16 12:08:48 -07:00
|
|
|
[implicit_jscontext]
|
2008-11-12 08:01:40 -08:00
|
|
|
long watchPosition(in nsIDOMGeoPositionCallback successCallback,
|
|
|
|
[optional] in nsIDOMGeoPositionErrorCallback errorCallback,
|
2012-04-16 12:08:48 -07:00
|
|
|
/* GeoPositionOptions */
|
|
|
|
[optional] in jsval options);
|
2008-07-15 16:37:48 -07:00
|
|
|
|
2008-11-12 08:01:40 -08:00
|
|
|
void clearWatch(in long watchId);
|
2008-07-15 16:37:48 -07:00
|
|
|
};
|