1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/geolocation/nsIDOMGeoPositionError.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMGeoPositionError_h__
6 : #define __gen_nsIDOMGeoPositionError_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 :
18 : /* starting interface: nsIDOMGeoPositionError */
19 : #define NS_IDOMGEOPOSITIONERROR_IID_STR "ad9fa4c8-ec71-4b2d-8294-9adf06ddec32"
20 :
21 : #define NS_IDOMGEOPOSITIONERROR_IID \
22 : {0xad9fa4c8, 0xec71, 0x4b2d, \
23 : { 0x82, 0x94, 0x9a, 0xdf, 0x06, 0xdd, 0xec, 0x32 }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMGeoPositionError : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMGEOPOSITIONERROR_IID)
29 :
30 : enum {
31 : PERMISSION_DENIED = 1U,
32 : POSITION_UNAVAILABLE = 2U,
33 : TIMEOUT = 3U
34 : };
35 :
36 : /* readonly attribute short code; */
37 : NS_SCRIPTABLE NS_IMETHOD GetCode(PRInt16 *aCode) = 0;
38 :
39 : };
40 :
41 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMGeoPositionError, NS_IDOMGEOPOSITIONERROR_IID)
42 :
43 : /* Use this macro when declaring classes that implement this interface. */
44 : #define NS_DECL_NSIDOMGEOPOSITIONERROR \
45 : NS_SCRIPTABLE NS_IMETHOD GetCode(PRInt16 *aCode);
46 :
47 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
48 : #define NS_FORWARD_NSIDOMGEOPOSITIONERROR(_to) \
49 : NS_SCRIPTABLE NS_IMETHOD GetCode(PRInt16 *aCode) { return _to GetCode(aCode); }
50 :
51 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
52 : #define NS_FORWARD_SAFE_NSIDOMGEOPOSITIONERROR(_to) \
53 : NS_SCRIPTABLE NS_IMETHOD GetCode(PRInt16 *aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCode(aCode); }
54 :
55 : #if 0
56 : /* Use the code below as a template for the implementation class for this interface. */
57 :
58 : /* Header file */
59 : class nsDOMGeoPositionError : public nsIDOMGeoPositionError
60 : {
61 : public:
62 : NS_DECL_ISUPPORTS
63 : NS_DECL_NSIDOMGEOPOSITIONERROR
64 :
65 : nsDOMGeoPositionError();
66 :
67 : private:
68 : ~nsDOMGeoPositionError();
69 :
70 : protected:
71 : /* additional members */
72 : };
73 :
74 : /* Implementation file */
75 : NS_IMPL_ISUPPORTS1(nsDOMGeoPositionError, nsIDOMGeoPositionError)
76 :
77 : nsDOMGeoPositionError::nsDOMGeoPositionError()
78 : {
79 : /* member initializers and constructor code */
80 : }
81 :
82 : nsDOMGeoPositionError::~nsDOMGeoPositionError()
83 : {
84 : /* destructor code */
85 : }
86 :
87 : /* readonly attribute short code; */
88 : NS_IMETHODIMP nsDOMGeoPositionError::GetCode(PRInt16 *aCode)
89 : {
90 : return NS_ERROR_NOT_IMPLEMENTED;
91 : }
92 :
93 : /* End of implementation class template. */
94 : #endif
95 :
96 :
97 : #endif /* __gen_nsIDOMGeoPositionError_h__ */
|