summaryrefslogtreecommitdiffstats
path: root/WebCore/dom/Document.h
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-10-15 17:12:52 +0100
committerBen Murdoch <benm@google.com>2010-10-15 17:33:53 +0100
commit9dfa8dc622519374a57a0b24ab9d7f73afe160ed (patch)
treecf85774d399aa30c22eee8eff8e50c3a6de2a621 /WebCore/dom/Document.h
parent09fce604f7e67802272bf991cb667509521c36b3 (diff)
downloadexternal_webkit-9dfa8dc622519374a57a0b24ab9d7f73afe160ed.zip
external_webkit-9dfa8dc622519374a57a0b24ab9d7f73afe160ed.tar.gz
external_webkit-9dfa8dc622519374a57a0b24ab9d7f73afe160ed.tar.bz2
Implement the document.createTouch and document.createTouchList APIs
These are Apple extensions to the document object present on iOS and are used by several sites to detect touch event support. See http://developer.apple.com/library/safari/#documentation/UserExperience/Reference/DocumentAdditionsReference/DocumentAdditions/DocumentAdditions.html for Apple's documentation. Upstreaming to webkit being tracked in https://bugs.webkit.org/show_bug.cgi?id=47676 Bug: 2996106 Change-Id: I761b1494af60b5095ad9c47d54eb7240d47ae985
Diffstat (limited to 'WebCore/dom/Document.h')
-rw-r--r--WebCore/dom/Document.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/WebCore/dom/Document.h b/WebCore/dom/Document.h
index fa3d9fb..41a486a 100644
--- a/WebCore/dom/Document.h
+++ b/WebCore/dom/Document.h
@@ -136,6 +136,11 @@ class XPathResult;
struct DashboardRegionValue;
#endif
+#if ENABLE(TOUCH_EVENTS)
+class Touch;
+class TouchList;
+#endif
+
typedef int ExceptionCode;
class FormElementKey {
@@ -1041,6 +1046,11 @@ public:
void decrementLoadEventDelayCount();
bool isDelayingLoadEvent() const { return m_loadEventDelayCount; }
+#if ENABLE(TOUCH_EVENTS)
+ PassRefPtr<Touch> createTouch(DOMWindow*, Node*, int identifier, int pageX, int pageY, int screenX, int screenY, ExceptionCode&) const;
+ PassRefPtr<TouchList> createTouchList(ExceptionCode&) const;
+#endif
+
protected:
Document(Frame*, const KURL& url, bool isXHTML, bool isHTML, const KURL& baseURL = KURL());