2 * Copyright (C) 2008, Apple Inc. All rights reserved.
4 * No license or rights are granted by Apple expressly or by implication,
5 * estoppel, or otherwise, to Apple copyrights, patents, trademarks, trade
6 * secrets or other rights.
9 #if defined(ENABLE_TOUCH_EVENTS)
10 @interface DOMTouch
: DOMObject
11 @
property(readonly
, retain
) id
<DOMEventTarget
> target
;
12 @
property(readonly
) unsigned identifier
;
13 @
property(readonly
) int clientX
;
14 @
property(readonly
) int clientY
;
15 @
property(readonly
) int pageX
;
16 @
property(readonly
) int pageY
;
17 @
property(readonly
) int screenX
;
18 @
property(readonly
) int screenY
;
21 @interface DOMTouchEvent
: DOMUIEvent
22 @
property(readonly
, retain
) DOMTouchList
*touches
;
23 @
property(readonly
, retain
) DOMTouchList
*targetTouches
;
24 @
property(readonly
, retain
) DOMTouchList
*changedTouches
;
25 @
property(readonly
) float scale
;
26 @
property(readonly
) float rotation
;
27 @
property(readonly
) BOOL ctrlKey
;
28 @
property(readonly
) BOOL shiftKey
;
29 @
property(readonly
) BOOL altKey
;
30 @
property(readonly
) BOOL metaKey
;
32 - (void)initTouchEvent
:(NSString
*)type canBubble
:(BOOL
)canBubble cancelable
:(BOOL
)cancelable view
:(DOMAbstractView
*)view detail
:(int)detail screenX
:(int)screenX screenY
:(int)screenY clientX
:(int)clientX clientY
:(int)clientY ctrlKey
:(BOOL
)ctrlKey altKey
:(BOOL
)altKey shiftKey
:(BOOL
)shiftKey metaKey
:(BOOL
)metaKey touches
:(DOMTouchList
*)touches targetTouches
:(DOMTouchList
*)targetTouches changedTouches
:(DOMTouchList
*)changedTouches scale
:(float)scale rotation
:(float)rotation
;
35 @interface DOMGestureEvent
: DOMUIEvent
36 @
property(readonly
, retain
) id
<DOMEventTarget
> target
;
37 @
property(readonly
) float scale
;
38 @
property(readonly
) float rotation
;
39 @
property(readonly
) BOOL ctrlKey
;
40 @
property(readonly
) BOOL shiftKey
;
41 @
property(readonly
) BOOL altKey
;
42 @
property(readonly
) BOOL metaKey
;
44 - (void)initGestureEvent
:(NSString
*)type canBubble
:(BOOL
)canBubble cancelable
:(BOOL
)cancelable view
:(DOMAbstractView
*)view detail
:(int)detail screenX
:(int)screenX screenY
:(int)screenY clientX
:(int)clientX clientY
:(int)clientY ctrlKey
:(BOOL
)ctrlKey altKey
:(BOOL
)altKey shiftKey
:(BOOL
)shiftKey metaKey
:(BOOL
)metaKey target
:(id
<DOMEventTarget
>)target scale
:(float)scale rotation
:(float)rotation
;
46 #endif // ENABLE(TOUCH_EVENTS)