1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/events/nsIDOMDeviceOrientationEvent.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMDeviceOrientationEvent_h__
6 : #define __gen_nsIDOMDeviceOrientationEvent_h__
7 :
8 :
9 : #ifndef __gen_nsIDOMEvent_h__
10 : #include "nsIDOMEvent.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: nsIDOMDeviceOrientationEvent */
19 : #define NS_IDOMDEVICEORIENTATIONEVENT_IID_STR "a9bd91fd-c0a7-44ed-9975-5a58faba3be3"
20 :
21 : #define NS_IDOMDEVICEORIENTATIONEVENT_IID \
22 : {0xa9bd91fd, 0xc0a7, 0x44ed, \
23 : { 0x99, 0x75, 0x5a, 0x58, 0xfa, 0xba, 0x3b, 0xe3 }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMDeviceOrientationEvent : public nsIDOMEvent {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDEVICEORIENTATIONEVENT_IID)
29 :
30 : /* void initDeviceOrientationEvent (in DOMString eventTypeArg, in boolean canBubbleArg, in boolean cancelableArg, in double alpha, in double beta, in double gamma, in boolean absolute); */
31 : NS_SCRIPTABLE NS_IMETHOD InitDeviceOrientationEvent(const nsAString & eventTypeArg, bool canBubbleArg, bool cancelableArg, double alpha, double beta, double gamma, bool absolute) = 0;
32 :
33 : /* readonly attribute double alpha; */
34 : NS_SCRIPTABLE NS_IMETHOD GetAlpha(double *aAlpha) = 0;
35 :
36 : /* readonly attribute double beta; */
37 : NS_SCRIPTABLE NS_IMETHOD GetBeta(double *aBeta) = 0;
38 :
39 : /* readonly attribute double gamma; */
40 : NS_SCRIPTABLE NS_IMETHOD GetGamma(double *aGamma) = 0;
41 :
42 : /* readonly attribute boolean absolute; */
43 : NS_SCRIPTABLE NS_IMETHOD GetAbsolute(bool *aAbsolute) = 0;
44 :
45 : };
46 :
47 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDeviceOrientationEvent, NS_IDOMDEVICEORIENTATIONEVENT_IID)
48 :
49 : /* Use this macro when declaring classes that implement this interface. */
50 : #define NS_DECL_NSIDOMDEVICEORIENTATIONEVENT \
51 : NS_SCRIPTABLE NS_IMETHOD InitDeviceOrientationEvent(const nsAString & eventTypeArg, bool canBubbleArg, bool cancelableArg, double alpha, double beta, double gamma, bool absolute); \
52 : NS_SCRIPTABLE NS_IMETHOD GetAlpha(double *aAlpha); \
53 : NS_SCRIPTABLE NS_IMETHOD GetBeta(double *aBeta); \
54 : NS_SCRIPTABLE NS_IMETHOD GetGamma(double *aGamma); \
55 : NS_SCRIPTABLE NS_IMETHOD GetAbsolute(bool *aAbsolute);
56 :
57 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
58 : #define NS_FORWARD_NSIDOMDEVICEORIENTATIONEVENT(_to) \
59 : NS_SCRIPTABLE NS_IMETHOD InitDeviceOrientationEvent(const nsAString & eventTypeArg, bool canBubbleArg, bool cancelableArg, double alpha, double beta, double gamma, bool absolute) { return _to InitDeviceOrientationEvent(eventTypeArg, canBubbleArg, cancelableArg, alpha, beta, gamma, absolute); } \
60 : NS_SCRIPTABLE NS_IMETHOD GetAlpha(double *aAlpha) { return _to GetAlpha(aAlpha); } \
61 : NS_SCRIPTABLE NS_IMETHOD GetBeta(double *aBeta) { return _to GetBeta(aBeta); } \
62 : NS_SCRIPTABLE NS_IMETHOD GetGamma(double *aGamma) { return _to GetGamma(aGamma); } \
63 : NS_SCRIPTABLE NS_IMETHOD GetAbsolute(bool *aAbsolute) { return _to GetAbsolute(aAbsolute); }
64 :
65 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
66 : #define NS_FORWARD_SAFE_NSIDOMDEVICEORIENTATIONEVENT(_to) \
67 : NS_SCRIPTABLE NS_IMETHOD InitDeviceOrientationEvent(const nsAString & eventTypeArg, bool canBubbleArg, bool cancelableArg, double alpha, double beta, double gamma, bool absolute) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitDeviceOrientationEvent(eventTypeArg, canBubbleArg, cancelableArg, alpha, beta, gamma, absolute); } \
68 : NS_SCRIPTABLE NS_IMETHOD GetAlpha(double *aAlpha) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlpha(aAlpha); } \
69 : NS_SCRIPTABLE NS_IMETHOD GetBeta(double *aBeta) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBeta(aBeta); } \
70 : NS_SCRIPTABLE NS_IMETHOD GetGamma(double *aGamma) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGamma(aGamma); } \
71 : NS_SCRIPTABLE NS_IMETHOD GetAbsolute(bool *aAbsolute) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAbsolute(aAbsolute); }
72 :
73 : #if 0
74 : /* Use the code below as a template for the implementation class for this interface. */
75 :
76 : /* Header file */
77 : class nsDOMDeviceOrientationEvent : public nsIDOMDeviceOrientationEvent
78 : {
79 : public:
80 : NS_DECL_ISUPPORTS
81 : NS_DECL_NSIDOMDEVICEORIENTATIONEVENT
82 :
83 : nsDOMDeviceOrientationEvent();
84 :
85 : private:
86 : ~nsDOMDeviceOrientationEvent();
87 :
88 : protected:
89 : /* additional members */
90 : };
91 :
92 : /* Implementation file */
93 : NS_IMPL_ISUPPORTS1(nsDOMDeviceOrientationEvent, nsIDOMDeviceOrientationEvent)
94 :
95 : nsDOMDeviceOrientationEvent::nsDOMDeviceOrientationEvent()
96 : {
97 : /* member initializers and constructor code */
98 : }
99 :
100 : nsDOMDeviceOrientationEvent::~nsDOMDeviceOrientationEvent()
101 : {
102 : /* destructor code */
103 : }
104 :
105 : /* void initDeviceOrientationEvent (in DOMString eventTypeArg, in boolean canBubbleArg, in boolean cancelableArg, in double alpha, in double beta, in double gamma, in boolean absolute); */
106 : NS_IMETHODIMP nsDOMDeviceOrientationEvent::InitDeviceOrientationEvent(const nsAString & eventTypeArg, bool canBubbleArg, bool cancelableArg, double alpha, double beta, double gamma, bool absolute)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* readonly attribute double alpha; */
112 : NS_IMETHODIMP nsDOMDeviceOrientationEvent::GetAlpha(double *aAlpha)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* readonly attribute double beta; */
118 : NS_IMETHODIMP nsDOMDeviceOrientationEvent::GetBeta(double *aBeta)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* readonly attribute double gamma; */
124 : NS_IMETHODIMP nsDOMDeviceOrientationEvent::GetGamma(double *aGamma)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* readonly attribute boolean absolute; */
130 : NS_IMETHODIMP nsDOMDeviceOrientationEvent::GetAbsolute(bool *aAbsolute)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* End of implementation class template. */
136 : #endif
137 :
138 :
139 : #endif /* __gen_nsIDOMDeviceOrientationEvent_h__ */
|