summaryrefslogtreecommitdiffstats
path: root/WebCore/loader/EmptyClients.h
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-01-22 10:39:19 +0000
committerBen Murdoch <benm@google.com>2010-01-27 11:22:26 +0000
commitd1919980a4bbb7f3aa73a6a83110fbec0c220e59 (patch)
treee0b2113b83c604a6e3e4cb47dab5a83bdf89122f /WebCore/loader/EmptyClients.h
parenta1b54e49e6889c50c6cad8c7162db86ad27f430d (diff)
downloadexternal_webkit-d1919980a4bbb7f3aa73a6a83110fbec0c220e59.zip
external_webkit-d1919980a4bbb7f3aa73a6a83110fbec0c220e59.tar.gz
external_webkit-d1919980a4bbb7f3aa73a6a83110fbec0c220e59.tar.bz2
Stop forwarding touch events from Java when the top level document is detached rather than when eventHandlers are cleared for a frame.
Also no longer keep track of the number of touch event handlers that a page has registered. If a page requests touch events, always send them from Java until a new page is loaded. This simplifies the logic when dealing with the page cache as otherwise as well as restoring the forwarding of touch events when a page is restored from the page cache, we would need to restore the number of touch handlers that have been registered. Change-Id: I0269e1632a37ccbf105bac658c2cb7f1d5cd3052
Diffstat (limited to 'WebCore/loader/EmptyClients.h')
-rw-r--r--WebCore/loader/EmptyClients.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/WebCore/loader/EmptyClients.h b/WebCore/loader/EmptyClients.h
index e4b9af5..e5385c5 100644
--- a/WebCore/loader/EmptyClients.h
+++ b/WebCore/loader/EmptyClients.h
@@ -169,6 +169,10 @@ public:
virtual void setNeedsOneShotDrawingSynchronization() {};
virtual void scheduleCompositingLayerSync() {};
#endif
+
+#if ENABLE(TOUCH_EVENTS)
+ virtual void needTouchEvents(bool) { }
+#endif
};
class EmptyFrameLoaderClient : public FrameLoaderClient {