/usr/include/thunderbird/nsIGeolocationProvider.h is in thunderbird-dev 1:38.6.0+build1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIGeolocationProvider.idl
*/
#ifndef __gen_nsIGeolocationProvider_h__
#define __gen_nsIGeolocationProvider_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIURI; /* forward declaration */
class nsIDOMWindow; /* forward declaration */
class nsIDOMElement; /* forward declaration */
class nsIDOMGeoPosition; /* forward declaration */
class nsIGeolocationPrompt; /* forward declaration */
/* starting interface: nsIGeolocationUpdate */
#define NS_IGEOLOCATIONUPDATE_IID_STR "643dc5e9-b911-4b2c-8d44-603162696baf"
#define NS_IGEOLOCATIONUPDATE_IID \
{0x643dc5e9, 0xb911, 0x4b2c, \
{ 0x8d, 0x44, 0x60, 0x31, 0x62, 0x69, 0x6b, 0xaf }}
class NS_NO_VTABLE nsIGeolocationUpdate : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGEOLOCATIONUPDATE_IID)
/* void update (in nsIDOMGeoPosition position); */
NS_IMETHOD Update(nsIDOMGeoPosition *position) = 0;
/* void locationUpdatePending (); */
NS_IMETHOD LocationUpdatePending(void) = 0;
/* void notifyError (in unsigned short error); */
NS_IMETHOD NotifyError(uint16_t error) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIGeolocationUpdate, NS_IGEOLOCATIONUPDATE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIGEOLOCATIONUPDATE \
NS_IMETHOD Update(nsIDOMGeoPosition *position) override; \
NS_IMETHOD LocationUpdatePending(void) override; \
NS_IMETHOD NotifyError(uint16_t error) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIGEOLOCATIONUPDATE(_to) \
NS_IMETHOD Update(nsIDOMGeoPosition *position) override { return _to Update(position); } \
NS_IMETHOD LocationUpdatePending(void) override { return _to LocationUpdatePending(); } \
NS_IMETHOD NotifyError(uint16_t error) override { return _to NotifyError(error); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIGEOLOCATIONUPDATE(_to) \
NS_IMETHOD Update(nsIDOMGeoPosition *position) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Update(position); } \
NS_IMETHOD LocationUpdatePending(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LocationUpdatePending(); } \
NS_IMETHOD NotifyError(uint16_t error) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyError(error); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsGeolocationUpdate : public nsIGeolocationUpdate
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIGEOLOCATIONUPDATE
nsGeolocationUpdate();
private:
~nsGeolocationUpdate();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsGeolocationUpdate, nsIGeolocationUpdate)
nsGeolocationUpdate::nsGeolocationUpdate()
{
/* member initializers and constructor code */
}
nsGeolocationUpdate::~nsGeolocationUpdate()
{
/* destructor code */
}
/* void update (in nsIDOMGeoPosition position); */
NS_IMETHODIMP nsGeolocationUpdate::Update(nsIDOMGeoPosition *position)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void locationUpdatePending (); */
NS_IMETHODIMP nsGeolocationUpdate::LocationUpdatePending()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void notifyError (in unsigned short error); */
NS_IMETHODIMP nsGeolocationUpdate::NotifyError(uint16_t error)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIGeolocationProvider */
#define NS_IGEOLOCATIONPROVIDER_IID_STR "ac4a133b-9f92-4f7c-b369-d40cb6b17650"
#define NS_IGEOLOCATIONPROVIDER_IID \
{0xac4a133b, 0x9f92, 0x4f7c, \
{ 0xb3, 0x69, 0xd4, 0x0c, 0xb6, 0xb1, 0x76, 0x50 }}
class NS_NO_VTABLE nsIGeolocationProvider : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGEOLOCATIONPROVIDER_IID)
/* void startup (); */
NS_IMETHOD Startup(void) = 0;
/* void watch (in nsIGeolocationUpdate callback); */
NS_IMETHOD Watch(nsIGeolocationUpdate *callback) = 0;
/* void shutdown (); */
NS_IMETHOD Shutdown(void) = 0;
/* void setHighAccuracy (in boolean enable); */
NS_IMETHOD SetHighAccuracy(bool enable) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIGeolocationProvider, NS_IGEOLOCATIONPROVIDER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIGEOLOCATIONPROVIDER \
NS_IMETHOD Startup(void) override; \
NS_IMETHOD Watch(nsIGeolocationUpdate *callback) override; \
NS_IMETHOD Shutdown(void) override; \
NS_IMETHOD SetHighAccuracy(bool enable) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIGEOLOCATIONPROVIDER(_to) \
NS_IMETHOD Startup(void) override { return _to Startup(); } \
NS_IMETHOD Watch(nsIGeolocationUpdate *callback) override { return _to Watch(callback); } \
NS_IMETHOD Shutdown(void) override { return _to Shutdown(); } \
NS_IMETHOD SetHighAccuracy(bool enable) override { return _to SetHighAccuracy(enable); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIGEOLOCATIONPROVIDER(_to) \
NS_IMETHOD Startup(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Startup(); } \
NS_IMETHOD Watch(nsIGeolocationUpdate *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Watch(callback); } \
NS_IMETHOD Shutdown(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); } \
NS_IMETHOD SetHighAccuracy(bool enable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHighAccuracy(enable); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsGeolocationProvider : public nsIGeolocationProvider
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIGEOLOCATIONPROVIDER
nsGeolocationProvider();
private:
~nsGeolocationProvider();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsGeolocationProvider, nsIGeolocationProvider)
nsGeolocationProvider::nsGeolocationProvider()
{
/* member initializers and constructor code */
}
nsGeolocationProvider::~nsGeolocationProvider()
{
/* destructor code */
}
/* void startup (); */
NS_IMETHODIMP nsGeolocationProvider::Startup()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void watch (in nsIGeolocationUpdate callback); */
NS_IMETHODIMP nsGeolocationProvider::Watch(nsIGeolocationUpdate *callback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void shutdown (); */
NS_IMETHODIMP nsGeolocationProvider::Shutdown()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setHighAccuracy (in boolean enable); */
NS_IMETHODIMP nsGeolocationProvider::SetHighAccuracy(bool enable)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/*
This must be implemented by geolocation providers. It
must support nsIGeolocationProvider.
*/
#define NS_GEOLOCATION_PROVIDER_CONTRACTID "@mozilla.org/geolocation/provider;1"
#endif /* __gen_nsIGeolocationProvider_h__ */
|