1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/events/nsIDOMDeviceMotionEvent.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMDeviceMotionEvent_h__
6 : #define __gen_nsIDOMDeviceMotionEvent_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: nsIDOMDeviceAcceleration */
19 : #define NS_IDOMDEVICEACCELERATION_IID_STR "2ad6ebc0-35ab-41d0-a755-0ca6a0e21565"
20 :
21 : #define NS_IDOMDEVICEACCELERATION_IID \
22 : {0x2ad6ebc0, 0x35ab, 0x41d0, \
23 : { 0xa7, 0x55, 0x0c, 0xa6, 0xa0, 0xe2, 0x15, 0x65 }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMDeviceAcceleration : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDEVICEACCELERATION_IID)
29 :
30 : /* readonly attribute double x; */
31 : NS_SCRIPTABLE NS_IMETHOD GetX(double *aX) = 0;
32 :
33 : /* readonly attribute double y; */
34 : NS_SCRIPTABLE NS_IMETHOD GetY(double *aY) = 0;
35 :
36 : /* readonly attribute double z; */
37 : NS_SCRIPTABLE NS_IMETHOD GetZ(double *aZ) = 0;
38 :
39 : };
40 :
41 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDeviceAcceleration, NS_IDOMDEVICEACCELERATION_IID)
42 :
43 : /* Use this macro when declaring classes that implement this interface. */
44 : #define NS_DECL_NSIDOMDEVICEACCELERATION \
45 : NS_SCRIPTABLE NS_IMETHOD GetX(double *aX); \
46 : NS_SCRIPTABLE NS_IMETHOD GetY(double *aY); \
47 : NS_SCRIPTABLE NS_IMETHOD GetZ(double *aZ);
48 :
49 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
50 : #define NS_FORWARD_NSIDOMDEVICEACCELERATION(_to) \
51 : NS_SCRIPTABLE NS_IMETHOD GetX(double *aX) { return _to GetX(aX); } \
52 : NS_SCRIPTABLE NS_IMETHOD GetY(double *aY) { return _to GetY(aY); } \
53 : NS_SCRIPTABLE NS_IMETHOD GetZ(double *aZ) { return _to GetZ(aZ); }
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
56 : #define NS_FORWARD_SAFE_NSIDOMDEVICEACCELERATION(_to) \
57 : NS_SCRIPTABLE NS_IMETHOD GetX(double *aX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetX(aX); } \
58 : NS_SCRIPTABLE NS_IMETHOD GetY(double *aY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetY(aY); } \
59 : NS_SCRIPTABLE NS_IMETHOD GetZ(double *aZ) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetZ(aZ); }
60 :
61 : #if 0
62 : /* Use the code below as a template for the implementation class for this interface. */
63 :
64 : /* Header file */
65 : class nsDOMDeviceAcceleration : public nsIDOMDeviceAcceleration
66 : {
67 : public:
68 : NS_DECL_ISUPPORTS
69 : NS_DECL_NSIDOMDEVICEACCELERATION
70 :
71 : nsDOMDeviceAcceleration();
72 :
73 : private:
74 : ~nsDOMDeviceAcceleration();
75 :
76 : protected:
77 : /* additional members */
78 : };
79 :
80 : /* Implementation file */
81 : NS_IMPL_ISUPPORTS1(nsDOMDeviceAcceleration, nsIDOMDeviceAcceleration)
82 :
83 : nsDOMDeviceAcceleration::nsDOMDeviceAcceleration()
84 : {
85 : /* member initializers and constructor code */
86 : }
87 :
88 : nsDOMDeviceAcceleration::~nsDOMDeviceAcceleration()
89 : {
90 : /* destructor code */
91 : }
92 :
93 : /* readonly attribute double x; */
94 : NS_IMETHODIMP nsDOMDeviceAcceleration::GetX(double *aX)
95 : {
96 : return NS_ERROR_NOT_IMPLEMENTED;
97 : }
98 :
99 : /* readonly attribute double y; */
100 : NS_IMETHODIMP nsDOMDeviceAcceleration::GetY(double *aY)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* readonly attribute double z; */
106 : NS_IMETHODIMP nsDOMDeviceAcceleration::GetZ(double *aZ)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* End of implementation class template. */
112 : #endif
113 :
114 :
115 : /* starting interface: nsIDOMDeviceRotationRate */
116 : #define NS_IDOMDEVICEROTATIONRATE_IID_STR "e76ac929-61fe-4519-9eac-d496a53cbc9b"
117 :
118 : #define NS_IDOMDEVICEROTATIONRATE_IID \
119 : {0xe76ac929, 0x61fe, 0x4519, \
120 : { 0x9e, 0xac, 0xd4, 0x96, 0xa5, 0x3c, 0xbc, 0x9b }}
121 :
122 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMDeviceRotationRate : public nsISupports {
123 : public:
124 :
125 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDEVICEROTATIONRATE_IID)
126 :
127 : /* readonly attribute double alpha; */
128 : NS_SCRIPTABLE NS_IMETHOD GetAlpha(double *aAlpha) = 0;
129 :
130 : /* readonly attribute double beta; */
131 : NS_SCRIPTABLE NS_IMETHOD GetBeta(double *aBeta) = 0;
132 :
133 : /* readonly attribute double gamma; */
134 : NS_SCRIPTABLE NS_IMETHOD GetGamma(double *aGamma) = 0;
135 :
136 : };
137 :
138 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDeviceRotationRate, NS_IDOMDEVICEROTATIONRATE_IID)
139 :
140 : /* Use this macro when declaring classes that implement this interface. */
141 : #define NS_DECL_NSIDOMDEVICEROTATIONRATE \
142 : NS_SCRIPTABLE NS_IMETHOD GetAlpha(double *aAlpha); \
143 : NS_SCRIPTABLE NS_IMETHOD GetBeta(double *aBeta); \
144 : NS_SCRIPTABLE NS_IMETHOD GetGamma(double *aGamma);
145 :
146 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
147 : #define NS_FORWARD_NSIDOMDEVICEROTATIONRATE(_to) \
148 : NS_SCRIPTABLE NS_IMETHOD GetAlpha(double *aAlpha) { return _to GetAlpha(aAlpha); } \
149 : NS_SCRIPTABLE NS_IMETHOD GetBeta(double *aBeta) { return _to GetBeta(aBeta); } \
150 : NS_SCRIPTABLE NS_IMETHOD GetGamma(double *aGamma) { return _to GetGamma(aGamma); }
151 :
152 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
153 : #define NS_FORWARD_SAFE_NSIDOMDEVICEROTATIONRATE(_to) \
154 : NS_SCRIPTABLE NS_IMETHOD GetAlpha(double *aAlpha) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlpha(aAlpha); } \
155 : NS_SCRIPTABLE NS_IMETHOD GetBeta(double *aBeta) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBeta(aBeta); } \
156 : NS_SCRIPTABLE NS_IMETHOD GetGamma(double *aGamma) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGamma(aGamma); }
157 :
158 : #if 0
159 : /* Use the code below as a template for the implementation class for this interface. */
160 :
161 : /* Header file */
162 : class nsDOMDeviceRotationRate : public nsIDOMDeviceRotationRate
163 : {
164 : public:
165 : NS_DECL_ISUPPORTS
166 : NS_DECL_NSIDOMDEVICEROTATIONRATE
167 :
168 : nsDOMDeviceRotationRate();
169 :
170 : private:
171 : ~nsDOMDeviceRotationRate();
172 :
173 : protected:
174 : /* additional members */
175 : };
176 :
177 : /* Implementation file */
178 : NS_IMPL_ISUPPORTS1(nsDOMDeviceRotationRate, nsIDOMDeviceRotationRate)
179 :
180 : nsDOMDeviceRotationRate::nsDOMDeviceRotationRate()
181 : {
182 : /* member initializers and constructor code */
183 : }
184 :
185 : nsDOMDeviceRotationRate::~nsDOMDeviceRotationRate()
186 : {
187 : /* destructor code */
188 : }
189 :
190 : /* readonly attribute double alpha; */
191 : NS_IMETHODIMP nsDOMDeviceRotationRate::GetAlpha(double *aAlpha)
192 : {
193 : return NS_ERROR_NOT_IMPLEMENTED;
194 : }
195 :
196 : /* readonly attribute double beta; */
197 : NS_IMETHODIMP nsDOMDeviceRotationRate::GetBeta(double *aBeta)
198 : {
199 : return NS_ERROR_NOT_IMPLEMENTED;
200 : }
201 :
202 : /* readonly attribute double gamma; */
203 : NS_IMETHODIMP nsDOMDeviceRotationRate::GetGamma(double *aGamma)
204 : {
205 : return NS_ERROR_NOT_IMPLEMENTED;
206 : }
207 :
208 : /* End of implementation class template. */
209 : #endif
210 :
211 :
212 : /* starting interface: nsIDOMDeviceMotionEvent */
213 : #define NS_IDOMDEVICEMOTIONEVENT_IID_STR "b74dfd3f-0d16-4717-aaf7-8cadfe739532"
214 :
215 : #define NS_IDOMDEVICEMOTIONEVENT_IID \
216 : {0xb74dfd3f, 0x0d16, 0x4717, \
217 : { 0xaa, 0xf7, 0x8c, 0xad, 0xfe, 0x73, 0x95, 0x32 }}
218 :
219 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMDeviceMotionEvent : public nsIDOMEvent {
220 : public:
221 :
222 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDEVICEMOTIONEVENT_IID)
223 :
224 : /* void initDeviceMotionEvent (in DOMString eventTypeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIDOMDeviceAcceleration acceleration, in nsIDOMDeviceAcceleration accelerationIncludingGravity, in nsIDOMDeviceRotationRate rotationRate, in double interval); */
225 : NS_SCRIPTABLE NS_IMETHOD InitDeviceMotionEvent(const nsAString & eventTypeArg, bool canBubbleArg, bool cancelableArg, nsIDOMDeviceAcceleration *acceleration, nsIDOMDeviceAcceleration *accelerationIncludingGravity, nsIDOMDeviceRotationRate *rotationRate, double interval) = 0;
226 :
227 : /* readonly attribute nsIDOMDeviceAcceleration acceleration; */
228 : NS_SCRIPTABLE NS_IMETHOD GetAcceleration(nsIDOMDeviceAcceleration * *aAcceleration) = 0;
229 :
230 : /* readonly attribute nsIDOMDeviceAcceleration accelerationIncludingGravity; */
231 : NS_SCRIPTABLE NS_IMETHOD GetAccelerationIncludingGravity(nsIDOMDeviceAcceleration * *aAccelerationIncludingGravity) = 0;
232 :
233 : /* readonly attribute nsIDOMDeviceRotationRate rotationRate; */
234 : NS_SCRIPTABLE NS_IMETHOD GetRotationRate(nsIDOMDeviceRotationRate * *aRotationRate) = 0;
235 :
236 : /* readonly attribute double interval; */
237 : NS_SCRIPTABLE NS_IMETHOD GetInterval(double *aInterval) = 0;
238 :
239 : };
240 :
241 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDeviceMotionEvent, NS_IDOMDEVICEMOTIONEVENT_IID)
242 :
243 : /* Use this macro when declaring classes that implement this interface. */
244 : #define NS_DECL_NSIDOMDEVICEMOTIONEVENT \
245 : NS_SCRIPTABLE NS_IMETHOD InitDeviceMotionEvent(const nsAString & eventTypeArg, bool canBubbleArg, bool cancelableArg, nsIDOMDeviceAcceleration *acceleration, nsIDOMDeviceAcceleration *accelerationIncludingGravity, nsIDOMDeviceRotationRate *rotationRate, double interval); \
246 : NS_SCRIPTABLE NS_IMETHOD GetAcceleration(nsIDOMDeviceAcceleration * *aAcceleration); \
247 : NS_SCRIPTABLE NS_IMETHOD GetAccelerationIncludingGravity(nsIDOMDeviceAcceleration * *aAccelerationIncludingGravity); \
248 : NS_SCRIPTABLE NS_IMETHOD GetRotationRate(nsIDOMDeviceRotationRate * *aRotationRate); \
249 : NS_SCRIPTABLE NS_IMETHOD GetInterval(double *aInterval);
250 :
251 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
252 : #define NS_FORWARD_NSIDOMDEVICEMOTIONEVENT(_to) \
253 : NS_SCRIPTABLE NS_IMETHOD InitDeviceMotionEvent(const nsAString & eventTypeArg, bool canBubbleArg, bool cancelableArg, nsIDOMDeviceAcceleration *acceleration, nsIDOMDeviceAcceleration *accelerationIncludingGravity, nsIDOMDeviceRotationRate *rotationRate, double interval) { return _to InitDeviceMotionEvent(eventTypeArg, canBubbleArg, cancelableArg, acceleration, accelerationIncludingGravity, rotationRate, interval); } \
254 : NS_SCRIPTABLE NS_IMETHOD GetAcceleration(nsIDOMDeviceAcceleration * *aAcceleration) { return _to GetAcceleration(aAcceleration); } \
255 : NS_SCRIPTABLE NS_IMETHOD GetAccelerationIncludingGravity(nsIDOMDeviceAcceleration * *aAccelerationIncludingGravity) { return _to GetAccelerationIncludingGravity(aAccelerationIncludingGravity); } \
256 : NS_SCRIPTABLE NS_IMETHOD GetRotationRate(nsIDOMDeviceRotationRate * *aRotationRate) { return _to GetRotationRate(aRotationRate); } \
257 : NS_SCRIPTABLE NS_IMETHOD GetInterval(double *aInterval) { return _to GetInterval(aInterval); }
258 :
259 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
260 : #define NS_FORWARD_SAFE_NSIDOMDEVICEMOTIONEVENT(_to) \
261 : NS_SCRIPTABLE NS_IMETHOD InitDeviceMotionEvent(const nsAString & eventTypeArg, bool canBubbleArg, bool cancelableArg, nsIDOMDeviceAcceleration *acceleration, nsIDOMDeviceAcceleration *accelerationIncludingGravity, nsIDOMDeviceRotationRate *rotationRate, double interval) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitDeviceMotionEvent(eventTypeArg, canBubbleArg, cancelableArg, acceleration, accelerationIncludingGravity, rotationRate, interval); } \
262 : NS_SCRIPTABLE NS_IMETHOD GetAcceleration(nsIDOMDeviceAcceleration * *aAcceleration) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAcceleration(aAcceleration); } \
263 : NS_SCRIPTABLE NS_IMETHOD GetAccelerationIncludingGravity(nsIDOMDeviceAcceleration * *aAccelerationIncludingGravity) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccelerationIncludingGravity(aAccelerationIncludingGravity); } \
264 : NS_SCRIPTABLE NS_IMETHOD GetRotationRate(nsIDOMDeviceRotationRate * *aRotationRate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRotationRate(aRotationRate); } \
265 : NS_SCRIPTABLE NS_IMETHOD GetInterval(double *aInterval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInterval(aInterval); }
266 :
267 : #if 0
268 : /* Use the code below as a template for the implementation class for this interface. */
269 :
270 : /* Header file */
271 : class nsDOMDeviceMotionEvent : public nsIDOMDeviceMotionEvent
272 : {
273 : public:
274 : NS_DECL_ISUPPORTS
275 : NS_DECL_NSIDOMDEVICEMOTIONEVENT
276 :
277 : nsDOMDeviceMotionEvent();
278 :
279 : private:
280 : ~nsDOMDeviceMotionEvent();
281 :
282 : protected:
283 : /* additional members */
284 : };
285 :
286 : /* Implementation file */
287 : NS_IMPL_ISUPPORTS1(nsDOMDeviceMotionEvent, nsIDOMDeviceMotionEvent)
288 :
289 : nsDOMDeviceMotionEvent::nsDOMDeviceMotionEvent()
290 : {
291 : /* member initializers and constructor code */
292 : }
293 :
294 : nsDOMDeviceMotionEvent::~nsDOMDeviceMotionEvent()
295 : {
296 : /* destructor code */
297 : }
298 :
299 : /* void initDeviceMotionEvent (in DOMString eventTypeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIDOMDeviceAcceleration acceleration, in nsIDOMDeviceAcceleration accelerationIncludingGravity, in nsIDOMDeviceRotationRate rotationRate, in double interval); */
300 : NS_IMETHODIMP nsDOMDeviceMotionEvent::InitDeviceMotionEvent(const nsAString & eventTypeArg, bool canBubbleArg, bool cancelableArg, nsIDOMDeviceAcceleration *acceleration, nsIDOMDeviceAcceleration *accelerationIncludingGravity, nsIDOMDeviceRotationRate *rotationRate, double interval)
301 : {
302 : return NS_ERROR_NOT_IMPLEMENTED;
303 : }
304 :
305 : /* readonly attribute nsIDOMDeviceAcceleration acceleration; */
306 : NS_IMETHODIMP nsDOMDeviceMotionEvent::GetAcceleration(nsIDOMDeviceAcceleration * *aAcceleration)
307 : {
308 : return NS_ERROR_NOT_IMPLEMENTED;
309 : }
310 :
311 : /* readonly attribute nsIDOMDeviceAcceleration accelerationIncludingGravity; */
312 : NS_IMETHODIMP nsDOMDeviceMotionEvent::GetAccelerationIncludingGravity(nsIDOMDeviceAcceleration * *aAccelerationIncludingGravity)
313 : {
314 : return NS_ERROR_NOT_IMPLEMENTED;
315 : }
316 :
317 : /* readonly attribute nsIDOMDeviceRotationRate rotationRate; */
318 : NS_IMETHODIMP nsDOMDeviceMotionEvent::GetRotationRate(nsIDOMDeviceRotationRate * *aRotationRate)
319 : {
320 : return NS_ERROR_NOT_IMPLEMENTED;
321 : }
322 :
323 : /* readonly attribute double interval; */
324 : NS_IMETHODIMP nsDOMDeviceMotionEvent::GetInterval(double *aInterval)
325 : {
326 : return NS_ERROR_NOT_IMPLEMENTED;
327 : }
328 :
329 : /* End of implementation class template. */
330 : #endif
331 :
332 :
333 : #endif /* __gen_nsIDOMDeviceMotionEvent_h__ */
|