michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "domstubs.idl" michael@0: michael@0: interface nsIDOMGeoPositionCallback; michael@0: interface nsIDOMGeoPositionErrorCallback; michael@0: michael@0: %{C++ michael@0: namespace mozilla { michael@0: namespace dom { michael@0: class PositionOptions; michael@0: } michael@0: } michael@0: %} michael@0: michael@0: [ptr] native NamespacedPositionOptions(mozilla::dom::PositionOptions); michael@0: michael@0: [builtinclass, uuid(9142ab45-0ab5-418c-9bab-338a6d271d4f)] michael@0: interface nsIDOMGeoGeolocation : nsISupports michael@0: { michael@0: int32_t watchPosition(in nsIDOMGeoPositionCallback callback, michael@0: in nsIDOMGeoPositionErrorCallback errorCallback, michael@0: in NamespacedPositionOptions options); michael@0: void getCurrentPosition(in nsIDOMGeoPositionCallback callback, michael@0: in nsIDOMGeoPositionErrorCallback errorCallback, michael@0: in NamespacedPositionOptions options); michael@0: void clearWatch(in long watchId); michael@0: };