]> git.saurik.com Git - iphone-api.git/blob - WebCore/DocumentIPhone.h
Adding the WebCore headers (for Cydget).
[iphone-api.git] / WebCore / DocumentIPhone.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 ENABLE(TOUCH_EVENTS)
10 public:
11 PassRefPtr<Touch> createTouch(DOMWindow* view, EventTarget* target, long identifier, long pageX, long pageY, long screenX, long screenY, ExceptionCode&);
12 PassRefPtr<TouchList> createTouchList(ExceptionCode&);
13
14 typedef HashMap< RefPtr<Node>, unsigned > TouchListenerMap;
15
16 void setInTouchEventHandling(bool handling);
17
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; }
23 private:
24 bool m_inTouchEventHandling;
25 bool m_touchEventRegionsDirty;
26 TouchListenerMap m_touchEventListeners;
27 Timer<Document> m_touchEventsChangedTimer;
28 public:
29 #endif