1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/events/nsIDOMTouchEvent.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMTouchEvent_h__
6 : #define __gen_nsIDOMTouchEvent_h__
7 :
8 :
9 : #ifndef __gen_nsIDOMUIEvent_h__
10 : #include "nsIDOMUIEvent.h"
11 : #endif
12 :
13 : #include "jspubtd.h"
14 :
15 : /* For IDL files that don't want to include root IDL files. */
16 : #ifndef NS_NO_VTABLE
17 : #define NS_NO_VTABLE
18 : #endif
19 : #include "nsWeakPtr.h"
20 : #include "nsPoint.h"
21 : class nsIVariant; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIDOMTouch */
25 : #define NS_IDOMTOUCH_IID_STR "98bc0f7d-5bff-4387-9c42-58af54b48dd5"
26 :
27 : #define NS_IDOMTOUCH_IID \
28 : {0x98bc0f7d, 0x5bff, 0x4387, \
29 : { 0x9c, 0x42, 0x58, 0xaf, 0x54, 0xb4, 0x8d, 0xd5 }}
30 :
31 0 : class NS_SCRIPTABLE nsIDOMTouch : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMTOUCH_IID)
35 :
36 : /* readonly attribute long identifier; */
37 : NS_SCRIPTABLE NS_IMETHOD GetIdentifier(PRInt32 *aIdentifier) = 0;
38 :
39 : /* readonly attribute nsIDOMEventTarget target; */
40 : NS_SCRIPTABLE NS_IMETHOD GetTarget(nsIDOMEventTarget * *aTarget) = 0;
41 :
42 : /* readonly attribute long pageX; */
43 : NS_SCRIPTABLE NS_IMETHOD GetPageX(PRInt32 *aPageX) = 0;
44 :
45 : /* readonly attribute long pageY; */
46 : NS_SCRIPTABLE NS_IMETHOD GetPageY(PRInt32 *aPageY) = 0;
47 :
48 : /* readonly attribute long screenX; */
49 : NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX) = 0;
50 :
51 : /* readonly attribute long screenY; */
52 : NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY) = 0;
53 :
54 : /* readonly attribute long clientX; */
55 : NS_SCRIPTABLE NS_IMETHOD GetClientX(PRInt32 *aClientX) = 0;
56 :
57 : /* readonly attribute long clientY; */
58 : NS_SCRIPTABLE NS_IMETHOD GetClientY(PRInt32 *aClientY) = 0;
59 :
60 : /* readonly attribute long radiusX; */
61 : NS_SCRIPTABLE NS_IMETHOD GetRadiusX(PRInt32 *aRadiusX) = 0;
62 :
63 : /* readonly attribute long radiusY; */
64 : NS_SCRIPTABLE NS_IMETHOD GetRadiusY(PRInt32 *aRadiusY) = 0;
65 :
66 : /* readonly attribute float rotationAngle; */
67 : NS_SCRIPTABLE NS_IMETHOD GetRotationAngle(float *aRotationAngle) = 0;
68 :
69 : /* readonly attribute float force; */
70 : NS_SCRIPTABLE NS_IMETHOD GetForce(float *aForce) = 0;
71 :
72 : nsCOMPtr<nsIDOMEventTarget> mTarget;
73 0 : nsIDOMEventTarget *GetTarget() { return mTarget; }
74 0 : void SetTarget(nsIDOMEventTarget *target) { mTarget = target; }
75 : nsIntPoint mRefPoint;
76 : bool mChanged;
77 : PRUint32 mMessage;
78 : };
79 :
80 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMTouch, NS_IDOMTOUCH_IID)
81 :
82 : /* Use this macro when declaring classes that implement this interface. */
83 : #define NS_DECL_NSIDOMTOUCH \
84 : NS_SCRIPTABLE NS_IMETHOD GetIdentifier(PRInt32 *aIdentifier); \
85 : NS_SCRIPTABLE NS_IMETHOD GetTarget(nsIDOMEventTarget * *aTarget); \
86 : NS_SCRIPTABLE NS_IMETHOD GetPageX(PRInt32 *aPageX); \
87 : NS_SCRIPTABLE NS_IMETHOD GetPageY(PRInt32 *aPageY); \
88 : NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX); \
89 : NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY); \
90 : NS_SCRIPTABLE NS_IMETHOD GetClientX(PRInt32 *aClientX); \
91 : NS_SCRIPTABLE NS_IMETHOD GetClientY(PRInt32 *aClientY); \
92 : NS_SCRIPTABLE NS_IMETHOD GetRadiusX(PRInt32 *aRadiusX); \
93 : NS_SCRIPTABLE NS_IMETHOD GetRadiusY(PRInt32 *aRadiusY); \
94 : NS_SCRIPTABLE NS_IMETHOD GetRotationAngle(float *aRotationAngle); \
95 : NS_SCRIPTABLE NS_IMETHOD GetForce(float *aForce); \
96 :
97 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
98 : #define NS_FORWARD_NSIDOMTOUCH(_to) \
99 : NS_SCRIPTABLE NS_IMETHOD GetIdentifier(PRInt32 *aIdentifier) { return _to GetIdentifier(aIdentifier); } \
100 : NS_SCRIPTABLE NS_IMETHOD GetTarget(nsIDOMEventTarget * *aTarget) { return _to GetTarget(aTarget); } \
101 : NS_SCRIPTABLE NS_IMETHOD GetPageX(PRInt32 *aPageX) { return _to GetPageX(aPageX); } \
102 : NS_SCRIPTABLE NS_IMETHOD GetPageY(PRInt32 *aPageY) { return _to GetPageY(aPageY); } \
103 : NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX) { return _to GetScreenX(aScreenX); } \
104 : NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY) { return _to GetScreenY(aScreenY); } \
105 : NS_SCRIPTABLE NS_IMETHOD GetClientX(PRInt32 *aClientX) { return _to GetClientX(aClientX); } \
106 : NS_SCRIPTABLE NS_IMETHOD GetClientY(PRInt32 *aClientY) { return _to GetClientY(aClientY); } \
107 : NS_SCRIPTABLE NS_IMETHOD GetRadiusX(PRInt32 *aRadiusX) { return _to GetRadiusX(aRadiusX); } \
108 : NS_SCRIPTABLE NS_IMETHOD GetRadiusY(PRInt32 *aRadiusY) { return _to GetRadiusY(aRadiusY); } \
109 : NS_SCRIPTABLE NS_IMETHOD GetRotationAngle(float *aRotationAngle) { return _to GetRotationAngle(aRotationAngle); } \
110 : NS_SCRIPTABLE NS_IMETHOD GetForce(float *aForce) { return _to GetForce(aForce); } \
111 :
112 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
113 : #define NS_FORWARD_SAFE_NSIDOMTOUCH(_to) \
114 : NS_SCRIPTABLE NS_IMETHOD GetIdentifier(PRInt32 *aIdentifier) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdentifier(aIdentifier); } \
115 : NS_SCRIPTABLE NS_IMETHOD GetTarget(nsIDOMEventTarget * *aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTarget(aTarget); } \
116 : NS_SCRIPTABLE NS_IMETHOD GetPageX(PRInt32 *aPageX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPageX(aPageX); } \
117 : NS_SCRIPTABLE NS_IMETHOD GetPageY(PRInt32 *aPageY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPageY(aPageY); } \
118 : NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenX(aScreenX); } \
119 : NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenY(aScreenY); } \
120 : NS_SCRIPTABLE NS_IMETHOD GetClientX(PRInt32 *aClientX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClientX(aClientX); } \
121 : NS_SCRIPTABLE NS_IMETHOD GetClientY(PRInt32 *aClientY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClientY(aClientY); } \
122 : NS_SCRIPTABLE NS_IMETHOD GetRadiusX(PRInt32 *aRadiusX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRadiusX(aRadiusX); } \
123 : NS_SCRIPTABLE NS_IMETHOD GetRadiusY(PRInt32 *aRadiusY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRadiusY(aRadiusY); } \
124 : NS_SCRIPTABLE NS_IMETHOD GetRotationAngle(float *aRotationAngle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRotationAngle(aRotationAngle); } \
125 : NS_SCRIPTABLE NS_IMETHOD GetForce(float *aForce) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForce(aForce); } \
126 :
127 : #if 0
128 : /* Use the code below as a template for the implementation class for this interface. */
129 :
130 : /* Header file */
131 : class nsDOMTouch : public nsIDOMTouch
132 : {
133 : public:
134 : NS_DECL_ISUPPORTS
135 : NS_DECL_NSIDOMTOUCH
136 :
137 : nsDOMTouch();
138 :
139 : private:
140 : ~nsDOMTouch();
141 :
142 : protected:
143 : /* additional members */
144 : };
145 :
146 : /* Implementation file */
147 : NS_IMPL_ISUPPORTS1(nsDOMTouch, nsIDOMTouch)
148 :
149 : nsDOMTouch::nsDOMTouch()
150 : {
151 : /* member initializers and constructor code */
152 : }
153 :
154 : nsDOMTouch::~nsDOMTouch()
155 : {
156 : /* destructor code */
157 : }
158 :
159 : /* readonly attribute long identifier; */
160 : NS_IMETHODIMP nsDOMTouch::GetIdentifier(PRInt32 *aIdentifier)
161 : {
162 : return NS_ERROR_NOT_IMPLEMENTED;
163 : }
164 :
165 : /* readonly attribute nsIDOMEventTarget target; */
166 : NS_IMETHODIMP nsDOMTouch::GetTarget(nsIDOMEventTarget * *aTarget)
167 : {
168 : return NS_ERROR_NOT_IMPLEMENTED;
169 : }
170 :
171 : /* readonly attribute long pageX; */
172 : NS_IMETHODIMP nsDOMTouch::GetPageX(PRInt32 *aPageX)
173 : {
174 : return NS_ERROR_NOT_IMPLEMENTED;
175 : }
176 :
177 : /* readonly attribute long pageY; */
178 : NS_IMETHODIMP nsDOMTouch::GetPageY(PRInt32 *aPageY)
179 : {
180 : return NS_ERROR_NOT_IMPLEMENTED;
181 : }
182 :
183 : /* readonly attribute long screenX; */
184 : NS_IMETHODIMP nsDOMTouch::GetScreenX(PRInt32 *aScreenX)
185 : {
186 : return NS_ERROR_NOT_IMPLEMENTED;
187 : }
188 :
189 : /* readonly attribute long screenY; */
190 : NS_IMETHODIMP nsDOMTouch::GetScreenY(PRInt32 *aScreenY)
191 : {
192 : return NS_ERROR_NOT_IMPLEMENTED;
193 : }
194 :
195 : /* readonly attribute long clientX; */
196 : NS_IMETHODIMP nsDOMTouch::GetClientX(PRInt32 *aClientX)
197 : {
198 : return NS_ERROR_NOT_IMPLEMENTED;
199 : }
200 :
201 : /* readonly attribute long clientY; */
202 : NS_IMETHODIMP nsDOMTouch::GetClientY(PRInt32 *aClientY)
203 : {
204 : return NS_ERROR_NOT_IMPLEMENTED;
205 : }
206 :
207 : /* readonly attribute long radiusX; */
208 : NS_IMETHODIMP nsDOMTouch::GetRadiusX(PRInt32 *aRadiusX)
209 : {
210 : return NS_ERROR_NOT_IMPLEMENTED;
211 : }
212 :
213 : /* readonly attribute long radiusY; */
214 : NS_IMETHODIMP nsDOMTouch::GetRadiusY(PRInt32 *aRadiusY)
215 : {
216 : return NS_ERROR_NOT_IMPLEMENTED;
217 : }
218 :
219 : /* readonly attribute float rotationAngle; */
220 : NS_IMETHODIMP nsDOMTouch::GetRotationAngle(float *aRotationAngle)
221 : {
222 : return NS_ERROR_NOT_IMPLEMENTED;
223 : }
224 :
225 : /* readonly attribute float force; */
226 : NS_IMETHODIMP nsDOMTouch::GetForce(float *aForce)
227 : {
228 : return NS_ERROR_NOT_IMPLEMENTED;
229 : }
230 :
231 : /* End of implementation class template. */
232 : #endif
233 :
234 :
235 : /* starting interface: nsIDOMTouchList */
236 : #define NS_IDOMTOUCHLIST_IID_STR "60706eb7-d50d-4379-b01c-e78e6af84213"
237 :
238 : #define NS_IDOMTOUCHLIST_IID \
239 : {0x60706eb7, 0xd50d, 0x4379, \
240 : { 0xb0, 0x1c, 0xe7, 0x8e, 0x6a, 0xf8, 0x42, 0x13 }}
241 :
242 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMTouchList : public nsISupports {
243 : public:
244 :
245 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMTOUCHLIST_IID)
246 :
247 : /* readonly attribute unsigned long length; */
248 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
249 :
250 : /* nsIDOMTouch item (in unsigned long index); */
251 : NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMTouch * *_retval NS_OUTPARAM) = 0;
252 :
253 : /* nsIDOMTouch identifiedTouch (in long identifier); */
254 : NS_SCRIPTABLE NS_IMETHOD IdentifiedTouch(PRInt32 identifier, nsIDOMTouch * *_retval NS_OUTPARAM) = 0;
255 :
256 : };
257 :
258 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMTouchList, NS_IDOMTOUCHLIST_IID)
259 :
260 : /* Use this macro when declaring classes that implement this interface. */
261 : #define NS_DECL_NSIDOMTOUCHLIST \
262 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
263 : NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMTouch * *_retval NS_OUTPARAM); \
264 : NS_SCRIPTABLE NS_IMETHOD IdentifiedTouch(PRInt32 identifier, nsIDOMTouch * *_retval NS_OUTPARAM);
265 :
266 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
267 : #define NS_FORWARD_NSIDOMTOUCHLIST(_to) \
268 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
269 : NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMTouch * *_retval NS_OUTPARAM) { return _to Item(index, _retval); } \
270 : NS_SCRIPTABLE NS_IMETHOD IdentifiedTouch(PRInt32 identifier, nsIDOMTouch * *_retval NS_OUTPARAM) { return _to IdentifiedTouch(identifier, _retval); }
271 :
272 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
273 : #define NS_FORWARD_SAFE_NSIDOMTOUCHLIST(_to) \
274 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
275 : NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsIDOMTouch * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
276 : NS_SCRIPTABLE NS_IMETHOD IdentifiedTouch(PRInt32 identifier, nsIDOMTouch * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IdentifiedTouch(identifier, _retval); }
277 :
278 : #if 0
279 : /* Use the code below as a template for the implementation class for this interface. */
280 :
281 : /* Header file */
282 : class nsDOMTouchList : public nsIDOMTouchList
283 : {
284 : public:
285 : NS_DECL_ISUPPORTS
286 : NS_DECL_NSIDOMTOUCHLIST
287 :
288 : nsDOMTouchList();
289 :
290 : private:
291 : ~nsDOMTouchList();
292 :
293 : protected:
294 : /* additional members */
295 : };
296 :
297 : /* Implementation file */
298 : NS_IMPL_ISUPPORTS1(nsDOMTouchList, nsIDOMTouchList)
299 :
300 : nsDOMTouchList::nsDOMTouchList()
301 : {
302 : /* member initializers and constructor code */
303 : }
304 :
305 : nsDOMTouchList::~nsDOMTouchList()
306 : {
307 : /* destructor code */
308 : }
309 :
310 : /* readonly attribute unsigned long length; */
311 : NS_IMETHODIMP nsDOMTouchList::GetLength(PRUint32 *aLength)
312 : {
313 : return NS_ERROR_NOT_IMPLEMENTED;
314 : }
315 :
316 : /* nsIDOMTouch item (in unsigned long index); */
317 : NS_IMETHODIMP nsDOMTouchList::Item(PRUint32 index, nsIDOMTouch * *_retval NS_OUTPARAM)
318 : {
319 : return NS_ERROR_NOT_IMPLEMENTED;
320 : }
321 :
322 : /* nsIDOMTouch identifiedTouch (in long identifier); */
323 : NS_IMETHODIMP nsDOMTouchList::IdentifiedTouch(PRInt32 identifier, nsIDOMTouch * *_retval NS_OUTPARAM)
324 : {
325 : return NS_ERROR_NOT_IMPLEMENTED;
326 : }
327 :
328 : /* End of implementation class template. */
329 : #endif
330 :
331 :
332 : /* starting interface: nsIDOMTouchEvent */
333 : #define NS_IDOMTOUCHEVENT_IID_STR "0cc687df-0ed5-4b7f-b89d-cbb99b21d23a"
334 :
335 : #define NS_IDOMTOUCHEVENT_IID \
336 : {0x0cc687df, 0x0ed5, 0x4b7f, \
337 : { 0xb8, 0x9d, 0xcb, 0xb9, 0x9b, 0x21, 0xd2, 0x3a }}
338 :
339 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMTouchEvent : public nsIDOMUIEvent {
340 : public:
341 :
342 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMTOUCHEVENT_IID)
343 :
344 : /* readonly attribute nsIDOMTouchList touches; */
345 : NS_SCRIPTABLE NS_IMETHOD GetTouches(nsIDOMTouchList * *aTouches) = 0;
346 :
347 : /* readonly attribute nsIDOMTouchList targetTouches; */
348 : NS_SCRIPTABLE NS_IMETHOD GetTargetTouches(nsIDOMTouchList * *aTargetTouches) = 0;
349 :
350 : /* readonly attribute nsIDOMTouchList changedTouches; */
351 : NS_SCRIPTABLE NS_IMETHOD GetChangedTouches(nsIDOMTouchList * *aChangedTouches) = 0;
352 :
353 : /* readonly attribute boolean altKey; */
354 : NS_SCRIPTABLE NS_IMETHOD GetAltKey(bool *aAltKey) = 0;
355 :
356 : /* readonly attribute boolean metaKey; */
357 : NS_SCRIPTABLE NS_IMETHOD GetMetaKey(bool *aMetaKey) = 0;
358 :
359 : /* readonly attribute boolean ctrlKey; */
360 : NS_SCRIPTABLE NS_IMETHOD GetCtrlKey(bool *aCtrlKey) = 0;
361 :
362 : /* readonly attribute boolean shiftKey; */
363 : NS_SCRIPTABLE NS_IMETHOD GetShiftKey(bool *aShiftKey) = 0;
364 :
365 : /* void initTouchEvent (in DOMString type, in boolean canBubble, in boolean cancelable, in nsIDOMWindow view, in long detail, in boolean ctrlKey, in boolean altKey, in boolean shiftKey, in boolean metaKey, in nsIDOMTouchList touches, in nsIDOMTouchList targetTouches, in nsIDOMTouchList changedTouches); */
366 : NS_SCRIPTABLE NS_IMETHOD InitTouchEvent(const nsAString & type, bool canBubble, bool cancelable, nsIDOMWindow *view, PRInt32 detail, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, nsIDOMTouchList *touches, nsIDOMTouchList *targetTouches, nsIDOMTouchList *changedTouches) = 0;
367 :
368 : };
369 :
370 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMTouchEvent, NS_IDOMTOUCHEVENT_IID)
371 :
372 : /* Use this macro when declaring classes that implement this interface. */
373 : #define NS_DECL_NSIDOMTOUCHEVENT \
374 : NS_SCRIPTABLE NS_IMETHOD GetTouches(nsIDOMTouchList * *aTouches); \
375 : NS_SCRIPTABLE NS_IMETHOD GetTargetTouches(nsIDOMTouchList * *aTargetTouches); \
376 : NS_SCRIPTABLE NS_IMETHOD GetChangedTouches(nsIDOMTouchList * *aChangedTouches); \
377 : NS_SCRIPTABLE NS_IMETHOD GetAltKey(bool *aAltKey); \
378 : NS_SCRIPTABLE NS_IMETHOD GetMetaKey(bool *aMetaKey); \
379 : NS_SCRIPTABLE NS_IMETHOD GetCtrlKey(bool *aCtrlKey); \
380 : NS_SCRIPTABLE NS_IMETHOD GetShiftKey(bool *aShiftKey); \
381 : NS_SCRIPTABLE NS_IMETHOD InitTouchEvent(const nsAString & type, bool canBubble, bool cancelable, nsIDOMWindow *view, PRInt32 detail, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, nsIDOMTouchList *touches, nsIDOMTouchList *targetTouches, nsIDOMTouchList *changedTouches);
382 :
383 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
384 : #define NS_FORWARD_NSIDOMTOUCHEVENT(_to) \
385 : NS_SCRIPTABLE NS_IMETHOD GetTouches(nsIDOMTouchList * *aTouches) { return _to GetTouches(aTouches); } \
386 : NS_SCRIPTABLE NS_IMETHOD GetTargetTouches(nsIDOMTouchList * *aTargetTouches) { return _to GetTargetTouches(aTargetTouches); } \
387 : NS_SCRIPTABLE NS_IMETHOD GetChangedTouches(nsIDOMTouchList * *aChangedTouches) { return _to GetChangedTouches(aChangedTouches); } \
388 : NS_SCRIPTABLE NS_IMETHOD GetAltKey(bool *aAltKey) { return _to GetAltKey(aAltKey); } \
389 : NS_SCRIPTABLE NS_IMETHOD GetMetaKey(bool *aMetaKey) { return _to GetMetaKey(aMetaKey); } \
390 : NS_SCRIPTABLE NS_IMETHOD GetCtrlKey(bool *aCtrlKey) { return _to GetCtrlKey(aCtrlKey); } \
391 : NS_SCRIPTABLE NS_IMETHOD GetShiftKey(bool *aShiftKey) { return _to GetShiftKey(aShiftKey); } \
392 : NS_SCRIPTABLE NS_IMETHOD InitTouchEvent(const nsAString & type, bool canBubble, bool cancelable, nsIDOMWindow *view, PRInt32 detail, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, nsIDOMTouchList *touches, nsIDOMTouchList *targetTouches, nsIDOMTouchList *changedTouches) { return _to InitTouchEvent(type, canBubble, cancelable, view, detail, ctrlKey, altKey, shiftKey, metaKey, touches, targetTouches, changedTouches); }
393 :
394 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
395 : #define NS_FORWARD_SAFE_NSIDOMTOUCHEVENT(_to) \
396 : NS_SCRIPTABLE NS_IMETHOD GetTouches(nsIDOMTouchList * *aTouches) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTouches(aTouches); } \
397 : NS_SCRIPTABLE NS_IMETHOD GetTargetTouches(nsIDOMTouchList * *aTargetTouches) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTargetTouches(aTargetTouches); } \
398 : NS_SCRIPTABLE NS_IMETHOD GetChangedTouches(nsIDOMTouchList * *aChangedTouches) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChangedTouches(aChangedTouches); } \
399 : NS_SCRIPTABLE NS_IMETHOD GetAltKey(bool *aAltKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAltKey(aAltKey); } \
400 : NS_SCRIPTABLE NS_IMETHOD GetMetaKey(bool *aMetaKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMetaKey(aMetaKey); } \
401 : NS_SCRIPTABLE NS_IMETHOD GetCtrlKey(bool *aCtrlKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCtrlKey(aCtrlKey); } \
402 : NS_SCRIPTABLE NS_IMETHOD GetShiftKey(bool *aShiftKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShiftKey(aShiftKey); } \
403 : NS_SCRIPTABLE NS_IMETHOD InitTouchEvent(const nsAString & type, bool canBubble, bool cancelable, nsIDOMWindow *view, PRInt32 detail, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, nsIDOMTouchList *touches, nsIDOMTouchList *targetTouches, nsIDOMTouchList *changedTouches) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitTouchEvent(type, canBubble, cancelable, view, detail, ctrlKey, altKey, shiftKey, metaKey, touches, targetTouches, changedTouches); }
404 :
405 : #if 0
406 : /* Use the code below as a template for the implementation class for this interface. */
407 :
408 : /* Header file */
409 : class nsDOMTouchEvent : public nsIDOMTouchEvent
410 : {
411 : public:
412 : NS_DECL_ISUPPORTS
413 : NS_DECL_NSIDOMTOUCHEVENT
414 :
415 : nsDOMTouchEvent();
416 :
417 : private:
418 : ~nsDOMTouchEvent();
419 :
420 : protected:
421 : /* additional members */
422 : };
423 :
424 : /* Implementation file */
425 : NS_IMPL_ISUPPORTS1(nsDOMTouchEvent, nsIDOMTouchEvent)
426 :
427 : nsDOMTouchEvent::nsDOMTouchEvent()
428 : {
429 : /* member initializers and constructor code */
430 : }
431 :
432 : nsDOMTouchEvent::~nsDOMTouchEvent()
433 : {
434 : /* destructor code */
435 : }
436 :
437 : /* readonly attribute nsIDOMTouchList touches; */
438 : NS_IMETHODIMP nsDOMTouchEvent::GetTouches(nsIDOMTouchList * *aTouches)
439 : {
440 : return NS_ERROR_NOT_IMPLEMENTED;
441 : }
442 :
443 : /* readonly attribute nsIDOMTouchList targetTouches; */
444 : NS_IMETHODIMP nsDOMTouchEvent::GetTargetTouches(nsIDOMTouchList * *aTargetTouches)
445 : {
446 : return NS_ERROR_NOT_IMPLEMENTED;
447 : }
448 :
449 : /* readonly attribute nsIDOMTouchList changedTouches; */
450 : NS_IMETHODIMP nsDOMTouchEvent::GetChangedTouches(nsIDOMTouchList * *aChangedTouches)
451 : {
452 : return NS_ERROR_NOT_IMPLEMENTED;
453 : }
454 :
455 : /* readonly attribute boolean altKey; */
456 : NS_IMETHODIMP nsDOMTouchEvent::GetAltKey(bool *aAltKey)
457 : {
458 : return NS_ERROR_NOT_IMPLEMENTED;
459 : }
460 :
461 : /* readonly attribute boolean metaKey; */
462 : NS_IMETHODIMP nsDOMTouchEvent::GetMetaKey(bool *aMetaKey)
463 : {
464 : return NS_ERROR_NOT_IMPLEMENTED;
465 : }
466 :
467 : /* readonly attribute boolean ctrlKey; */
468 : NS_IMETHODIMP nsDOMTouchEvent::GetCtrlKey(bool *aCtrlKey)
469 : {
470 : return NS_ERROR_NOT_IMPLEMENTED;
471 : }
472 :
473 : /* readonly attribute boolean shiftKey; */
474 : NS_IMETHODIMP nsDOMTouchEvent::GetShiftKey(bool *aShiftKey)
475 : {
476 : return NS_ERROR_NOT_IMPLEMENTED;
477 : }
478 :
479 : /* void initTouchEvent (in DOMString type, in boolean canBubble, in boolean cancelable, in nsIDOMWindow view, in long detail, in boolean ctrlKey, in boolean altKey, in boolean shiftKey, in boolean metaKey, in nsIDOMTouchList touches, in nsIDOMTouchList targetTouches, in nsIDOMTouchList changedTouches); */
480 : NS_IMETHODIMP nsDOMTouchEvent::InitTouchEvent(const nsAString & type, bool canBubble, bool cancelable, nsIDOMWindow *view, PRInt32 detail, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, nsIDOMTouchList *touches, nsIDOMTouchList *targetTouches, nsIDOMTouchList *changedTouches)
481 : {
482 : return NS_ERROR_NOT_IMPLEMENTED;
483 : }
484 :
485 : /* End of implementation class template. */
486 : #endif
487 :
488 :
489 : /* starting interface: nsITouchEventReceiver */
490 : #define NS_ITOUCHEVENTRECEIVER_IID_STR "6d5484f7-92ac-45f8-9388-39b5bad055ce"
491 :
492 : #define NS_ITOUCHEVENTRECEIVER_IID \
493 : {0x6d5484f7, 0x92ac, 0x45f8, \
494 : { 0x93, 0x88, 0x39, 0xb5, 0xba, 0xd0, 0x55, 0xce }}
495 :
496 1273 : class NS_NO_VTABLE NS_SCRIPTABLE nsITouchEventReceiver : public nsISupports {
497 : public:
498 :
499 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITOUCHEVENTRECEIVER_IID)
500 :
501 : /* [implicit_jscontext] attribute jsval ontouchstart; */
502 : NS_SCRIPTABLE NS_IMETHOD GetOntouchstart(JSContext* cx, JS::Value *aOntouchstart) = 0;
503 : NS_SCRIPTABLE NS_IMETHOD SetOntouchstart(JSContext* cx, const JS::Value & aOntouchstart) = 0;
504 :
505 : /* [implicit_jscontext] attribute jsval ontouchend; */
506 : NS_SCRIPTABLE NS_IMETHOD GetOntouchend(JSContext* cx, JS::Value *aOntouchend) = 0;
507 : NS_SCRIPTABLE NS_IMETHOD SetOntouchend(JSContext* cx, const JS::Value & aOntouchend) = 0;
508 :
509 : /* [implicit_jscontext] attribute jsval ontouchmove; */
510 : NS_SCRIPTABLE NS_IMETHOD GetOntouchmove(JSContext* cx, JS::Value *aOntouchmove) = 0;
511 : NS_SCRIPTABLE NS_IMETHOD SetOntouchmove(JSContext* cx, const JS::Value & aOntouchmove) = 0;
512 :
513 : /* [implicit_jscontext] attribute jsval ontouchenter; */
514 : NS_SCRIPTABLE NS_IMETHOD GetOntouchenter(JSContext* cx, JS::Value *aOntouchenter) = 0;
515 : NS_SCRIPTABLE NS_IMETHOD SetOntouchenter(JSContext* cx, const JS::Value & aOntouchenter) = 0;
516 :
517 : /* [implicit_jscontext] attribute jsval ontouchleave; */
518 : NS_SCRIPTABLE NS_IMETHOD GetOntouchleave(JSContext* cx, JS::Value *aOntouchleave) = 0;
519 : NS_SCRIPTABLE NS_IMETHOD SetOntouchleave(JSContext* cx, const JS::Value & aOntouchleave) = 0;
520 :
521 : /* [implicit_jscontext] attribute jsval ontouchcancel; */
522 : NS_SCRIPTABLE NS_IMETHOD GetOntouchcancel(JSContext* cx, JS::Value *aOntouchcancel) = 0;
523 : NS_SCRIPTABLE NS_IMETHOD SetOntouchcancel(JSContext* cx, const JS::Value & aOntouchcancel) = 0;
524 :
525 : };
526 :
527 : NS_DEFINE_STATIC_IID_ACCESSOR(nsITouchEventReceiver, NS_ITOUCHEVENTRECEIVER_IID)
528 :
529 : /* Use this macro when declaring classes that implement this interface. */
530 : #define NS_DECL_NSITOUCHEVENTRECEIVER \
531 : NS_SCRIPTABLE NS_IMETHOD GetOntouchstart(JSContext* cx, JS::Value *aOntouchstart); \
532 : NS_SCRIPTABLE NS_IMETHOD SetOntouchstart(JSContext* cx, const JS::Value & aOntouchstart); \
533 : NS_SCRIPTABLE NS_IMETHOD GetOntouchend(JSContext* cx, JS::Value *aOntouchend); \
534 : NS_SCRIPTABLE NS_IMETHOD SetOntouchend(JSContext* cx, const JS::Value & aOntouchend); \
535 : NS_SCRIPTABLE NS_IMETHOD GetOntouchmove(JSContext* cx, JS::Value *aOntouchmove); \
536 : NS_SCRIPTABLE NS_IMETHOD SetOntouchmove(JSContext* cx, const JS::Value & aOntouchmove); \
537 : NS_SCRIPTABLE NS_IMETHOD GetOntouchenter(JSContext* cx, JS::Value *aOntouchenter); \
538 : NS_SCRIPTABLE NS_IMETHOD SetOntouchenter(JSContext* cx, const JS::Value & aOntouchenter); \
539 : NS_SCRIPTABLE NS_IMETHOD GetOntouchleave(JSContext* cx, JS::Value *aOntouchleave); \
540 : NS_SCRIPTABLE NS_IMETHOD SetOntouchleave(JSContext* cx, const JS::Value & aOntouchleave); \
541 : NS_SCRIPTABLE NS_IMETHOD GetOntouchcancel(JSContext* cx, JS::Value *aOntouchcancel); \
542 : NS_SCRIPTABLE NS_IMETHOD SetOntouchcancel(JSContext* cx, const JS::Value & aOntouchcancel);
543 :
544 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
545 : #define NS_FORWARD_NSITOUCHEVENTRECEIVER(_to) \
546 : NS_SCRIPTABLE NS_IMETHOD GetOntouchstart(JSContext* cx, JS::Value *aOntouchstart) { return _to GetOntouchstart(cx, aOntouchstart); } \
547 : NS_SCRIPTABLE NS_IMETHOD SetOntouchstart(JSContext* cx, const JS::Value & aOntouchstart) { return _to SetOntouchstart(cx, aOntouchstart); } \
548 : NS_SCRIPTABLE NS_IMETHOD GetOntouchend(JSContext* cx, JS::Value *aOntouchend) { return _to GetOntouchend(cx, aOntouchend); } \
549 : NS_SCRIPTABLE NS_IMETHOD SetOntouchend(JSContext* cx, const JS::Value & aOntouchend) { return _to SetOntouchend(cx, aOntouchend); } \
550 : NS_SCRIPTABLE NS_IMETHOD GetOntouchmove(JSContext* cx, JS::Value *aOntouchmove) { return _to GetOntouchmove(cx, aOntouchmove); } \
551 : NS_SCRIPTABLE NS_IMETHOD SetOntouchmove(JSContext* cx, const JS::Value & aOntouchmove) { return _to SetOntouchmove(cx, aOntouchmove); } \
552 : NS_SCRIPTABLE NS_IMETHOD GetOntouchenter(JSContext* cx, JS::Value *aOntouchenter) { return _to GetOntouchenter(cx, aOntouchenter); } \
553 : NS_SCRIPTABLE NS_IMETHOD SetOntouchenter(JSContext* cx, const JS::Value & aOntouchenter) { return _to SetOntouchenter(cx, aOntouchenter); } \
554 : NS_SCRIPTABLE NS_IMETHOD GetOntouchleave(JSContext* cx, JS::Value *aOntouchleave) { return _to GetOntouchleave(cx, aOntouchleave); } \
555 : NS_SCRIPTABLE NS_IMETHOD SetOntouchleave(JSContext* cx, const JS::Value & aOntouchleave) { return _to SetOntouchleave(cx, aOntouchleave); } \
556 : NS_SCRIPTABLE NS_IMETHOD GetOntouchcancel(JSContext* cx, JS::Value *aOntouchcancel) { return _to GetOntouchcancel(cx, aOntouchcancel); } \
557 : NS_SCRIPTABLE NS_IMETHOD SetOntouchcancel(JSContext* cx, const JS::Value & aOntouchcancel) { return _to SetOntouchcancel(cx, aOntouchcancel); }
558 :
559 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
560 : #define NS_FORWARD_SAFE_NSITOUCHEVENTRECEIVER(_to) \
561 : NS_SCRIPTABLE NS_IMETHOD GetOntouchstart(JSContext* cx, JS::Value *aOntouchstart) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOntouchstart(cx, aOntouchstart); } \
562 : NS_SCRIPTABLE NS_IMETHOD SetOntouchstart(JSContext* cx, const JS::Value & aOntouchstart) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOntouchstart(cx, aOntouchstart); } \
563 : NS_SCRIPTABLE NS_IMETHOD GetOntouchend(JSContext* cx, JS::Value *aOntouchend) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOntouchend(cx, aOntouchend); } \
564 : NS_SCRIPTABLE NS_IMETHOD SetOntouchend(JSContext* cx, const JS::Value & aOntouchend) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOntouchend(cx, aOntouchend); } \
565 : NS_SCRIPTABLE NS_IMETHOD GetOntouchmove(JSContext* cx, JS::Value *aOntouchmove) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOntouchmove(cx, aOntouchmove); } \
566 : NS_SCRIPTABLE NS_IMETHOD SetOntouchmove(JSContext* cx, const JS::Value & aOntouchmove) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOntouchmove(cx, aOntouchmove); } \
567 : NS_SCRIPTABLE NS_IMETHOD GetOntouchenter(JSContext* cx, JS::Value *aOntouchenter) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOntouchenter(cx, aOntouchenter); } \
568 : NS_SCRIPTABLE NS_IMETHOD SetOntouchenter(JSContext* cx, const JS::Value & aOntouchenter) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOntouchenter(cx, aOntouchenter); } \
569 : NS_SCRIPTABLE NS_IMETHOD GetOntouchleave(JSContext* cx, JS::Value *aOntouchleave) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOntouchleave(cx, aOntouchleave); } \
570 : NS_SCRIPTABLE NS_IMETHOD SetOntouchleave(JSContext* cx, const JS::Value & aOntouchleave) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOntouchleave(cx, aOntouchleave); } \
571 : NS_SCRIPTABLE NS_IMETHOD GetOntouchcancel(JSContext* cx, JS::Value *aOntouchcancel) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOntouchcancel(cx, aOntouchcancel); } \
572 : NS_SCRIPTABLE NS_IMETHOD SetOntouchcancel(JSContext* cx, const JS::Value & aOntouchcancel) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOntouchcancel(cx, aOntouchcancel); }
573 :
574 : #if 0
575 : /* Use the code below as a template for the implementation class for this interface. */
576 :
577 : /* Header file */
578 : class nsTouchEventReceiver : public nsITouchEventReceiver
579 : {
580 : public:
581 : NS_DECL_ISUPPORTS
582 : NS_DECL_NSITOUCHEVENTRECEIVER
583 :
584 : nsTouchEventReceiver();
585 :
586 : private:
587 : ~nsTouchEventReceiver();
588 :
589 : protected:
590 : /* additional members */
591 : };
592 :
593 : /* Implementation file */
594 : NS_IMPL_ISUPPORTS1(nsTouchEventReceiver, nsITouchEventReceiver)
595 :
596 : nsTouchEventReceiver::nsTouchEventReceiver()
597 : {
598 : /* member initializers and constructor code */
599 : }
600 :
601 : nsTouchEventReceiver::~nsTouchEventReceiver()
602 : {
603 : /* destructor code */
604 : }
605 :
606 : /* [implicit_jscontext] attribute jsval ontouchstart; */
607 : NS_IMETHODIMP nsTouchEventReceiver::GetOntouchstart(JSContext* cx, JS::Value *aOntouchstart)
608 : {
609 : return NS_ERROR_NOT_IMPLEMENTED;
610 : }
611 : NS_IMETHODIMP nsTouchEventReceiver::SetOntouchstart(JSContext* cx, const JS::Value & aOntouchstart)
612 : {
613 : return NS_ERROR_NOT_IMPLEMENTED;
614 : }
615 :
616 : /* [implicit_jscontext] attribute jsval ontouchend; */
617 : NS_IMETHODIMP nsTouchEventReceiver::GetOntouchend(JSContext* cx, JS::Value *aOntouchend)
618 : {
619 : return NS_ERROR_NOT_IMPLEMENTED;
620 : }
621 : NS_IMETHODIMP nsTouchEventReceiver::SetOntouchend(JSContext* cx, const JS::Value & aOntouchend)
622 : {
623 : return NS_ERROR_NOT_IMPLEMENTED;
624 : }
625 :
626 : /* [implicit_jscontext] attribute jsval ontouchmove; */
627 : NS_IMETHODIMP nsTouchEventReceiver::GetOntouchmove(JSContext* cx, JS::Value *aOntouchmove)
628 : {
629 : return NS_ERROR_NOT_IMPLEMENTED;
630 : }
631 : NS_IMETHODIMP nsTouchEventReceiver::SetOntouchmove(JSContext* cx, const JS::Value & aOntouchmove)
632 : {
633 : return NS_ERROR_NOT_IMPLEMENTED;
634 : }
635 :
636 : /* [implicit_jscontext] attribute jsval ontouchenter; */
637 : NS_IMETHODIMP nsTouchEventReceiver::GetOntouchenter(JSContext* cx, JS::Value *aOntouchenter)
638 : {
639 : return NS_ERROR_NOT_IMPLEMENTED;
640 : }
641 : NS_IMETHODIMP nsTouchEventReceiver::SetOntouchenter(JSContext* cx, const JS::Value & aOntouchenter)
642 : {
643 : return NS_ERROR_NOT_IMPLEMENTED;
644 : }
645 :
646 : /* [implicit_jscontext] attribute jsval ontouchleave; */
647 : NS_IMETHODIMP nsTouchEventReceiver::GetOntouchleave(JSContext* cx, JS::Value *aOntouchleave)
648 : {
649 : return NS_ERROR_NOT_IMPLEMENTED;
650 : }
651 : NS_IMETHODIMP nsTouchEventReceiver::SetOntouchleave(JSContext* cx, const JS::Value & aOntouchleave)
652 : {
653 : return NS_ERROR_NOT_IMPLEMENTED;
654 : }
655 :
656 : /* [implicit_jscontext] attribute jsval ontouchcancel; */
657 : NS_IMETHODIMP nsTouchEventReceiver::GetOntouchcancel(JSContext* cx, JS::Value *aOntouchcancel)
658 : {
659 : return NS_ERROR_NOT_IMPLEMENTED;
660 : }
661 : NS_IMETHODIMP nsTouchEventReceiver::SetOntouchcancel(JSContext* cx, const JS::Value & aOntouchcancel)
662 : {
663 : return NS_ERROR_NOT_IMPLEMENTED;
664 : }
665 :
666 : /* End of implementation class template. */
667 : #endif
668 :
669 :
670 : /* starting interface: nsIDOMDocumentTouch */
671 : #define NS_IDOMDOCUMENTTOUCH_IID_STR "974cff68-6f0b-4520-8523-fa68b2754656"
672 :
673 : #define NS_IDOMDOCUMENTTOUCH_IID \
674 : {0x974cff68, 0x6f0b, 0x4520, \
675 : { 0x85, 0x23, 0xfa, 0x68, 0xb2, 0x75, 0x46, 0x56 }}
676 :
677 1273 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMDocumentTouch : public nsITouchEventReceiver {
678 : public:
679 :
680 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDOCUMENTTOUCH_IID)
681 :
682 : /* nsIDOMTouch createTouch ([optional] in nsIDOMWindow view, [optional] in nsIDOMEventTarget target, [optional] in long identifier, [optional] in long pageX, [optional] in long pageY, [optional] in long screenX, [optional] in long screenY, [optional] in long clientX, [optional] in long clientY, [optional] in long radiusX, [optional] in long radiusY, [optional] in float rotationAngle, [optional] in float force); */
683 : NS_SCRIPTABLE NS_IMETHOD CreateTouch(nsIDOMWindow *view, nsIDOMEventTarget *target, PRInt32 identifier, PRInt32 pageX, PRInt32 pageY, PRInt32 screenX, PRInt32 screenY, PRInt32 clientX, PRInt32 clientY, PRInt32 radiusX, PRInt32 radiusY, float rotationAngle, float force, nsIDOMTouch * *_retval NS_OUTPARAM) = 0;
684 :
685 : /* nsIDOMTouchList createTouchList ([optional] in nsIVariant aPoints); */
686 : NS_SCRIPTABLE NS_IMETHOD CreateTouchList(nsIVariant *aPoints, nsIDOMTouchList * *_retval NS_OUTPARAM) = 0;
687 :
688 : };
689 :
690 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDocumentTouch, NS_IDOMDOCUMENTTOUCH_IID)
691 :
692 : /* Use this macro when declaring classes that implement this interface. */
693 : #define NS_DECL_NSIDOMDOCUMENTTOUCH \
694 : NS_SCRIPTABLE NS_IMETHOD CreateTouch(nsIDOMWindow *view, nsIDOMEventTarget *target, PRInt32 identifier, PRInt32 pageX, PRInt32 pageY, PRInt32 screenX, PRInt32 screenY, PRInt32 clientX, PRInt32 clientY, PRInt32 radiusX, PRInt32 radiusY, float rotationAngle, float force, nsIDOMTouch * *_retval NS_OUTPARAM); \
695 : NS_SCRIPTABLE NS_IMETHOD CreateTouchList(nsIVariant *aPoints, nsIDOMTouchList * *_retval NS_OUTPARAM);
696 :
697 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
698 : #define NS_FORWARD_NSIDOMDOCUMENTTOUCH(_to) \
699 : NS_SCRIPTABLE NS_IMETHOD CreateTouch(nsIDOMWindow *view, nsIDOMEventTarget *target, PRInt32 identifier, PRInt32 pageX, PRInt32 pageY, PRInt32 screenX, PRInt32 screenY, PRInt32 clientX, PRInt32 clientY, PRInt32 radiusX, PRInt32 radiusY, float rotationAngle, float force, nsIDOMTouch * *_retval NS_OUTPARAM) { return _to CreateTouch(view, target, identifier, pageX, pageY, screenX, screenY, clientX, clientY, radiusX, radiusY, rotationAngle, force, _retval); } \
700 : NS_SCRIPTABLE NS_IMETHOD CreateTouchList(nsIVariant *aPoints, nsIDOMTouchList * *_retval NS_OUTPARAM) { return _to CreateTouchList(aPoints, _retval); }
701 :
702 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
703 : #define NS_FORWARD_SAFE_NSIDOMDOCUMENTTOUCH(_to) \
704 : NS_SCRIPTABLE NS_IMETHOD CreateTouch(nsIDOMWindow *view, nsIDOMEventTarget *target, PRInt32 identifier, PRInt32 pageX, PRInt32 pageY, PRInt32 screenX, PRInt32 screenY, PRInt32 clientX, PRInt32 clientY, PRInt32 radiusX, PRInt32 radiusY, float rotationAngle, float force, nsIDOMTouch * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateTouch(view, target, identifier, pageX, pageY, screenX, screenY, clientX, clientY, radiusX, radiusY, rotationAngle, force, _retval); } \
705 : NS_SCRIPTABLE NS_IMETHOD CreateTouchList(nsIVariant *aPoints, nsIDOMTouchList * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateTouchList(aPoints, _retval); }
706 :
707 : #if 0
708 : /* Use the code below as a template for the implementation class for this interface. */
709 :
710 : /* Header file */
711 : class nsDOMDocumentTouch : public nsIDOMDocumentTouch
712 : {
713 : public:
714 : NS_DECL_ISUPPORTS
715 : NS_DECL_NSIDOMDOCUMENTTOUCH
716 :
717 : nsDOMDocumentTouch();
718 :
719 : private:
720 : ~nsDOMDocumentTouch();
721 :
722 : protected:
723 : /* additional members */
724 : };
725 :
726 : /* Implementation file */
727 : NS_IMPL_ISUPPORTS1(nsDOMDocumentTouch, nsIDOMDocumentTouch)
728 :
729 : nsDOMDocumentTouch::nsDOMDocumentTouch()
730 : {
731 : /* member initializers and constructor code */
732 : }
733 :
734 : nsDOMDocumentTouch::~nsDOMDocumentTouch()
735 : {
736 : /* destructor code */
737 : }
738 :
739 : /* nsIDOMTouch createTouch ([optional] in nsIDOMWindow view, [optional] in nsIDOMEventTarget target, [optional] in long identifier, [optional] in long pageX, [optional] in long pageY, [optional] in long screenX, [optional] in long screenY, [optional] in long clientX, [optional] in long clientY, [optional] in long radiusX, [optional] in long radiusY, [optional] in float rotationAngle, [optional] in float force); */
740 : NS_IMETHODIMP nsDOMDocumentTouch::CreateTouch(nsIDOMWindow *view, nsIDOMEventTarget *target, PRInt32 identifier, PRInt32 pageX, PRInt32 pageY, PRInt32 screenX, PRInt32 screenY, PRInt32 clientX, PRInt32 clientY, PRInt32 radiusX, PRInt32 radiusY, float rotationAngle, float force, nsIDOMTouch * *_retval NS_OUTPARAM)
741 : {
742 : return NS_ERROR_NOT_IMPLEMENTED;
743 : }
744 :
745 : /* nsIDOMTouchList createTouchList ([optional] in nsIVariant aPoints); */
746 : NS_IMETHODIMP nsDOMDocumentTouch::CreateTouchList(nsIVariant *aPoints, nsIDOMTouchList * *_retval NS_OUTPARAM)
747 : {
748 : return NS_ERROR_NOT_IMPLEMENTED;
749 : }
750 :
751 : /* End of implementation class template. */
752 : #endif
753 :
754 :
755 : #endif /* __gen_nsIDOMTouchEvent_h__ */
|