LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIDOMGeoGeolocation.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMGeoGeolocation.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIDOMGeoGeolocation_h__
       6             : #define __gen_nsIDOMGeoGeolocation_h__
       7             : 
       8             : 
       9             : #ifndef __gen_domstubs_h__
      10             : #include "domstubs.h"
      11             : #endif
      12             : 
      13             : /* For IDL files that don't want to include root IDL files. */
      14             : #ifndef NS_NO_VTABLE
      15             : #define NS_NO_VTABLE
      16             : #endif
      17             : class nsIDOMGeoPositionCallback; /* forward declaration */
      18             : 
      19             : class nsIDOMGeoPositionErrorCallback; /* forward declaration */
      20             : 
      21             : namespace mozilla {
      22             : namespace dom {
      23             : struct PositionOptions;
      24             : } // namespace dom
      25             : } // namespace mozilla
      26             : #include "mozilla/UniquePtr.h"
      27             : 
      28             : /* starting interface:    nsIDOMGeoGeolocation */
      29             : #define NS_IDOMGEOGEOLOCATION_IID_STR "9142ab45-0ab5-418c-9bab-338a6d271d4f"
      30             : 
      31             : #define NS_IDOMGEOGEOLOCATION_IID \
      32             :   {0x9142ab45, 0x0ab5, 0x418c, \
      33             :     { 0x9b, 0xab, 0x33, 0x8a, 0x6d, 0x27, 0x1d, 0x4f }}
      34             : 
      35           0 : class NS_NO_VTABLE nsIDOMGeoGeolocation : public nsISupports {
      36             :  public:
      37             : 
      38             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMGEOGEOLOCATION_IID)
      39             : 
      40             :   /* int32_t watchPosition (in nsIDOMGeoPositionCallback callback, in nsIDOMGeoPositionErrorCallback errorCallback, in PositionOptionsRef options); */
      41             :   NS_IMETHOD WatchPosition(nsIDOMGeoPositionCallback *callback, nsIDOMGeoPositionErrorCallback *errorCallback, mozilla::UniquePtr<mozilla::dom::PositionOptions>&& options, int32_t *_retval) = 0;
      42             : 
      43             :   /* void clearWatch (in long watchId); */
      44             :   NS_IMETHOD ClearWatch(int32_t watchId) = 0;
      45             : 
      46             : };
      47             : 
      48             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMGeoGeolocation, NS_IDOMGEOGEOLOCATION_IID)
      49             : 
      50             : /* Use this macro when declaring classes that implement this interface. */
      51             : #define NS_DECL_NSIDOMGEOGEOLOCATION \
      52             :   NS_IMETHOD WatchPosition(nsIDOMGeoPositionCallback *callback, nsIDOMGeoPositionErrorCallback *errorCallback, mozilla::UniquePtr<mozilla::dom::PositionOptions>&& options, int32_t *_retval) override; \
      53             :   NS_IMETHOD ClearWatch(int32_t watchId) override; 
      54             : 
      55             : /* Use this macro when declaring the members of this interface when the
      56             :    class doesn't implement the interface. This is useful for forwarding. */
      57             : #define NS_DECL_NON_VIRTUAL_NSIDOMGEOGEOLOCATION \
      58             :   nsresult WatchPosition(nsIDOMGeoPositionCallback *callback, nsIDOMGeoPositionErrorCallback *errorCallback, mozilla::UniquePtr<mozilla::dom::PositionOptions>&& options, int32_t *_retval); \
      59             :   nsresult ClearWatch(int32_t watchId); 
      60             : 
      61             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      62             : #define NS_FORWARD_NSIDOMGEOGEOLOCATION(_to) \
      63             :   NS_IMETHOD WatchPosition(nsIDOMGeoPositionCallback *callback, nsIDOMGeoPositionErrorCallback *errorCallback, mozilla::UniquePtr<mozilla::dom::PositionOptions>&& options, int32_t *_retval) override { return _to WatchPosition(callback, errorCallback, options, _retval); } \
      64             :   NS_IMETHOD ClearWatch(int32_t watchId) override { return _to ClearWatch(watchId); } 
      65             : 
      66             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      67             : #define NS_FORWARD_SAFE_NSIDOMGEOGEOLOCATION(_to) \
      68             :   NS_IMETHOD WatchPosition(nsIDOMGeoPositionCallback *callback, nsIDOMGeoPositionErrorCallback *errorCallback, mozilla::UniquePtr<mozilla::dom::PositionOptions>&& options, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WatchPosition(callback, errorCallback, options, _retval); } \
      69             :   NS_IMETHOD ClearWatch(int32_t watchId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearWatch(watchId); } 
      70             : 
      71             : #if 0
      72             : /* Use the code below as a template for the implementation class for this interface. */
      73             : 
      74             : /* Header file */
      75             : class nsDOMGeoGeolocation : public nsIDOMGeoGeolocation
      76             : {
      77             : public:
      78             :   NS_DECL_ISUPPORTS
      79             :   NS_DECL_NSIDOMGEOGEOLOCATION
      80             : 
      81             :   nsDOMGeoGeolocation();
      82             : 
      83             : private:
      84             :   ~nsDOMGeoGeolocation();
      85             : 
      86             : protected:
      87             :   /* additional members */
      88             : };
      89             : 
      90             : /* Implementation file */
      91             : NS_IMPL_ISUPPORTS(nsDOMGeoGeolocation, nsIDOMGeoGeolocation)
      92             : 
      93             : nsDOMGeoGeolocation::nsDOMGeoGeolocation()
      94             : {
      95             :   /* member initializers and constructor code */
      96             : }
      97             : 
      98             : nsDOMGeoGeolocation::~nsDOMGeoGeolocation()
      99             : {
     100             :   /* destructor code */
     101             : }
     102             : 
     103             : /* int32_t watchPosition (in nsIDOMGeoPositionCallback callback, in nsIDOMGeoPositionErrorCallback errorCallback, in PositionOptionsRef options); */
     104             : NS_IMETHODIMP nsDOMGeoGeolocation::WatchPosition(nsIDOMGeoPositionCallback *callback, nsIDOMGeoPositionErrorCallback *errorCallback, mozilla::UniquePtr<mozilla::dom::PositionOptions>&& options, int32_t *_retval)
     105             : {
     106             :     return NS_ERROR_NOT_IMPLEMENTED;
     107             : }
     108             : 
     109             : /* void clearWatch (in long watchId); */
     110             : NS_IMETHODIMP nsDOMGeoGeolocation::ClearWatch(int32_t watchId)
     111             : {
     112             :     return NS_ERROR_NOT_IMPLEMENTED;
     113             : }
     114             : 
     115             : /* End of implementation class template. */
     116             : #endif
     117             : 
     118             : 
     119             : #endif /* __gen_nsIDOMGeoGeolocation_h__ */

Generated by: LCOV version 1.13