/usr/include/thunderbird-11.0.1/nsIDeviceMotion.h is in thunderbird-dev 11.0.1+build1-0ubuntu2.
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 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mozilla/xpcom/system/nsIDeviceMotion.idl
*/
#ifndef __gen_nsIDeviceMotion_h__
#define __gen_nsIDeviceMotion_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 nsIDOMWindow; /* forward declaration */
/* starting interface: nsIDeviceMotionData */
#define NS_IDEVICEMOTIONDATA_IID_STR "1b406e32-cf42-471e-a470-6fd600bf4c7b"
#define NS_IDEVICEMOTIONDATA_IID \
{0x1b406e32, 0xcf42, 0x471e, \
{ 0xa4, 0x70, 0x6f, 0xd6, 0x00, 0xbf, 0x4c, 0x7b }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIDeviceMotionData : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDEVICEMOTIONDATA_IID)
enum {
TYPE_ACCELERATION = 0U,
TYPE_ORIENTATION = 1U
};
/* readonly attribute unsigned long type; */
NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 *aType) = 0;
/* readonly attribute double x; */
NS_SCRIPTABLE NS_IMETHOD GetX(double *aX) = 0;
/* readonly attribute double y; */
NS_SCRIPTABLE NS_IMETHOD GetY(double *aY) = 0;
/* readonly attribute double z; */
NS_SCRIPTABLE NS_IMETHOD GetZ(double *aZ) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDeviceMotionData, NS_IDEVICEMOTIONDATA_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDEVICEMOTIONDATA \
NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 *aType); \
NS_SCRIPTABLE NS_IMETHOD GetX(double *aX); \
NS_SCRIPTABLE NS_IMETHOD GetY(double *aY); \
NS_SCRIPTABLE NS_IMETHOD GetZ(double *aZ);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDEVICEMOTIONDATA(_to) \
NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 *aType) { return _to GetType(aType); } \
NS_SCRIPTABLE NS_IMETHOD GetX(double *aX) { return _to GetX(aX); } \
NS_SCRIPTABLE NS_IMETHOD GetY(double *aY) { return _to GetY(aY); } \
NS_SCRIPTABLE NS_IMETHOD GetZ(double *aZ) { return _to GetZ(aZ); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDEVICEMOTIONDATA(_to) \
NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 *aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
NS_SCRIPTABLE NS_IMETHOD GetX(double *aX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetX(aX); } \
NS_SCRIPTABLE NS_IMETHOD GetY(double *aY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetY(aY); } \
NS_SCRIPTABLE NS_IMETHOD GetZ(double *aZ) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetZ(aZ); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsDeviceMotionData : public nsIDeviceMotionData
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDEVICEMOTIONDATA
nsDeviceMotionData();
private:
~nsDeviceMotionData();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDeviceMotionData, nsIDeviceMotionData)
nsDeviceMotionData::nsDeviceMotionData()
{
/* member initializers and constructor code */
}
nsDeviceMotionData::~nsDeviceMotionData()
{
/* destructor code */
}
/* readonly attribute unsigned long type; */
NS_IMETHODIMP nsDeviceMotionData::GetType(PRUint32 *aType)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute double x; */
NS_IMETHODIMP nsDeviceMotionData::GetX(double *aX)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute double y; */
NS_IMETHODIMP nsDeviceMotionData::GetY(double *aY)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute double z; */
NS_IMETHODIMP nsDeviceMotionData::GetZ(double *aZ)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIDeviceMotionListener */
#define NS_IDEVICEMOTIONLISTENER_IID_STR "f01774a2-3b7e-4630-954b-196dc178221f"
#define NS_IDEVICEMOTIONLISTENER_IID \
{0xf01774a2, 0x3b7e, 0x4630, \
{ 0x95, 0x4b, 0x19, 0x6d, 0xc1, 0x78, 0x22, 0x1f }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIDeviceMotionListener : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDEVICEMOTIONLISTENER_IID)
/* void onMotionChange (in nsIDeviceMotionData aMotionData); */
NS_SCRIPTABLE NS_IMETHOD OnMotionChange(nsIDeviceMotionData *aMotionData) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDeviceMotionListener, NS_IDEVICEMOTIONLISTENER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDEVICEMOTIONLISTENER \
NS_SCRIPTABLE NS_IMETHOD OnMotionChange(nsIDeviceMotionData *aMotionData);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDEVICEMOTIONLISTENER(_to) \
NS_SCRIPTABLE NS_IMETHOD OnMotionChange(nsIDeviceMotionData *aMotionData) { return _to OnMotionChange(aMotionData); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDEVICEMOTIONLISTENER(_to) \
NS_SCRIPTABLE NS_IMETHOD OnMotionChange(nsIDeviceMotionData *aMotionData) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnMotionChange(aMotionData); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsDeviceMotionListener : public nsIDeviceMotionListener
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDEVICEMOTIONLISTENER
nsDeviceMotionListener();
private:
~nsDeviceMotionListener();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDeviceMotionListener, nsIDeviceMotionListener)
nsDeviceMotionListener::nsDeviceMotionListener()
{
/* member initializers and constructor code */
}
nsDeviceMotionListener::~nsDeviceMotionListener()
{
/* destructor code */
}
/* void onMotionChange (in nsIDeviceMotionData aMotionData); */
NS_IMETHODIMP nsDeviceMotionListener::OnMotionChange(nsIDeviceMotionData *aMotionData)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIDeviceMotion */
#define NS_IDEVICEMOTION_IID_STR "b6e5c463-aaa6-44e2-bd07-7a7dc6192e68"
#define NS_IDEVICEMOTION_IID \
{0xb6e5c463, 0xaaa6, 0x44e2, \
{ 0xbd, 0x07, 0x7a, 0x7d, 0xc6, 0x19, 0x2e, 0x68 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIDeviceMotion : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDEVICEMOTION_IID)
/* void addListener (in nsIDeviceMotionListener aListener); */
NS_SCRIPTABLE NS_IMETHOD AddListener(nsIDeviceMotionListener *aListener) = 0;
/* void removeListener (in nsIDeviceMotionListener aListener); */
NS_SCRIPTABLE NS_IMETHOD RemoveListener(nsIDeviceMotionListener *aListener) = 0;
/* [noscript] void addWindowListener (in nsIDOMWindow aWindow); */
NS_IMETHOD AddWindowListener(nsIDOMWindow *aWindow) = 0;
/* [noscript] void removeWindowListener (in nsIDOMWindow aWindow); */
NS_IMETHOD RemoveWindowListener(nsIDOMWindow *aWindow) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDeviceMotion, NS_IDEVICEMOTION_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDEVICEMOTION \
NS_SCRIPTABLE NS_IMETHOD AddListener(nsIDeviceMotionListener *aListener); \
NS_SCRIPTABLE NS_IMETHOD RemoveListener(nsIDeviceMotionListener *aListener); \
NS_IMETHOD AddWindowListener(nsIDOMWindow *aWindow); \
NS_IMETHOD RemoveWindowListener(nsIDOMWindow *aWindow);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDEVICEMOTION(_to) \
NS_SCRIPTABLE NS_IMETHOD AddListener(nsIDeviceMotionListener *aListener) { return _to AddListener(aListener); } \
NS_SCRIPTABLE NS_IMETHOD RemoveListener(nsIDeviceMotionListener *aListener) { return _to RemoveListener(aListener); } \
NS_IMETHOD AddWindowListener(nsIDOMWindow *aWindow) { return _to AddWindowListener(aWindow); } \
NS_IMETHOD RemoveWindowListener(nsIDOMWindow *aWindow) { return _to RemoveWindowListener(aWindow); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDEVICEMOTION(_to) \
NS_SCRIPTABLE NS_IMETHOD AddListener(nsIDeviceMotionListener *aListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddListener(aListener); } \
NS_SCRIPTABLE NS_IMETHOD RemoveListener(nsIDeviceMotionListener *aListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveListener(aListener); } \
NS_IMETHOD AddWindowListener(nsIDOMWindow *aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWindowListener(aWindow); } \
NS_IMETHOD RemoveWindowListener(nsIDOMWindow *aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveWindowListener(aWindow); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsDeviceMotion : public nsIDeviceMotion
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDEVICEMOTION
nsDeviceMotion();
private:
~nsDeviceMotion();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDeviceMotion, nsIDeviceMotion)
nsDeviceMotion::nsDeviceMotion()
{
/* member initializers and constructor code */
}
nsDeviceMotion::~nsDeviceMotion()
{
/* destructor code */
}
/* void addListener (in nsIDeviceMotionListener aListener); */
NS_IMETHODIMP nsDeviceMotion::AddListener(nsIDeviceMotionListener *aListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void removeListener (in nsIDeviceMotionListener aListener); */
NS_IMETHODIMP nsDeviceMotion::RemoveListener(nsIDeviceMotionListener *aListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void addWindowListener (in nsIDOMWindow aWindow); */
NS_IMETHODIMP nsDeviceMotion::AddWindowListener(nsIDOMWindow *aWindow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void removeWindowListener (in nsIDOMWindow aWindow); */
NS_IMETHODIMP nsDeviceMotion::RemoveWindowListener(nsIDOMWindow *aWindow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIDeviceMotionUpdate */
#define NS_IDEVICEMOTIONUPDATE_IID_STR "d3a56f08-b7b1-46bb-9dc1-fc3665a3631a"
#define NS_IDEVICEMOTIONUPDATE_IID \
{0xd3a56f08, 0xb7b1, 0x46bb, \
{ 0x9d, 0xc1, 0xfc, 0x36, 0x65, 0xa3, 0x63, 0x1a }}
class NS_NO_VTABLE nsIDeviceMotionUpdate : public nsIDeviceMotion {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDEVICEMOTIONUPDATE_IID)
/* void deviceMotionChanged (in unsigned long type, in double x, in double y, in double z); */
NS_IMETHOD DeviceMotionChanged(PRUint32 type, double x, double y, double z) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDeviceMotionUpdate, NS_IDEVICEMOTIONUPDATE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDEVICEMOTIONUPDATE \
NS_IMETHOD DeviceMotionChanged(PRUint32 type, double x, double y, double z);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDEVICEMOTIONUPDATE(_to) \
NS_IMETHOD DeviceMotionChanged(PRUint32 type, double x, double y, double z) { return _to DeviceMotionChanged(type, x, y, z); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDEVICEMOTIONUPDATE(_to) \
NS_IMETHOD DeviceMotionChanged(PRUint32 type, double x, double y, double z) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeviceMotionChanged(type, x, y, z); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsDeviceMotionUpdate : public nsIDeviceMotionUpdate
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDEVICEMOTIONUPDATE
nsDeviceMotionUpdate();
private:
~nsDeviceMotionUpdate();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDeviceMotionUpdate, nsIDeviceMotionUpdate)
nsDeviceMotionUpdate::nsDeviceMotionUpdate()
{
/* member initializers and constructor code */
}
nsDeviceMotionUpdate::~nsDeviceMotionUpdate()
{
/* destructor code */
}
/* void deviceMotionChanged (in unsigned long type, in double x, in double y, in double z); */
NS_IMETHODIMP nsDeviceMotionUpdate::DeviceMotionChanged(PRUint32 type, double x, double y, double z)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIDeviceMotion_h__ */
|