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 ENABLE(TOUCH_EVENTS)
11 PassRefPtr
<Touch
> createTouch(DOMWindow
* view
, EventTarget
* target
, long identifier
, long pageX
, long pageY
, long screenX
, long screenY
, ExceptionCode
&);
12 PassRefPtr
<TouchList
> createTouchList(ExceptionCode
&);
14 typedef HashMap
< RefPtr
<Node
>, unsigned > TouchListenerMap
;
16 void setInTouchEventHandling(bool handling
);
18 void addTouchEventListener(Node
*);
19 void removeTouchEventListener(Node
*, bool removeAll
= false);
20 void setTouchEventListenersDirty(bool);
21 void touchEventsChangedTimerFired(Timer
<Document
>*);
22 const TouchListenerMap
& touchEventListeners() const { return m_touchEventListeners
; }
24 bool m_inTouchEventHandling
;
25 bool m_touchEventRegionsDirty
;
26 TouchListenerMap m_touchEventListeners
;
27 Timer
<Document
> m_touchEventsChangedTimer
;