]> git.saurik.com Git - iphone-api.git/blob - WebCore/PublicDOMInterfacesIPhone.h
Add support for new WinterBoard Settings features.
[iphone-api.git] / WebCore / PublicDOMInterfacesIPhone.h
1 /*
2 * Copyright (C) 2008, Apple Inc. All rights reserved.
3 *
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.
7 */
8
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;
19 @end
20
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;
31
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;
33 @end
34
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;
43
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;
45 @end
46 #endif // ENABLE(TOUCH_EVENTS)