diff options
author | John Reck <jreck@google.com> | 2012-05-24 14:31:43 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-05-24 17:54:31 -0700 |
commit | 91f41286e33b387859e4841711f3054bcf75c748 (patch) | |
tree | 383ce5fea572c95125d9b9b3fd826d5499bcc466 /Source/WebCore/platform | |
parent | e5d2bf33ff91f1c00fb2ecd73879ba8d3a8298a7 (diff) | |
download | external_webkit-91f41286e33b387859e4841711f3054bcf75c748.zip external_webkit-91f41286e33b387859e4841711f3054bcf75c748.tar.gz external_webkit-91f41286e33b387859e4841711f3054bcf75c748.tar.bz2 |
Support skipping a touch stream due to lack of handlers
Bug: 6317798
Change-Id: I8c4cd3bf4c538aff202ed0e3f84982fb112936a1
Diffstat (limited to 'Source/WebCore/platform')
-rw-r--r-- | Source/WebCore/platform/PlatformTouchEvent.h | 5 | ||||
-rw-r--r-- | Source/WebCore/platform/android/PlatformTouchEventAndroid.cpp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Source/WebCore/platform/PlatformTouchEvent.h b/Source/WebCore/platform/PlatformTouchEvent.h index f7524b4..d1de018 100644 --- a/Source/WebCore/platform/PlatformTouchEvent.h +++ b/Source/WebCore/platform/PlatformTouchEvent.h @@ -68,6 +68,8 @@ public: PlatformTouchEvent(QTouchEvent*); #elif PLATFORM(ANDROID) PlatformTouchEvent(const Vector<int>&, const Vector<IntPoint>&, TouchEventType, const Vector<PlatformTouchPoint::State>&, int metaState); + bool hitTouchHandler() { return m_hitTouchHandler; } + void setHitTouchHandler() { m_hitTouchHandler = true; } #elif PLATFORM(BREWMP) PlatformTouchEvent(AEEEvent, uint16 wParam, uint32 dwParam); #elif PLATFORM(EFL) @@ -93,6 +95,9 @@ protected: bool m_shiftKey; bool m_metaKey; double m_timestamp; +#if PLATFORM(ANDROID) + bool m_hitTouchHandler; +#endif }; } diff --git a/Source/WebCore/platform/android/PlatformTouchEventAndroid.cpp b/Source/WebCore/platform/android/PlatformTouchEventAndroid.cpp index dd06400..579461a 100644 --- a/Source/WebCore/platform/android/PlatformTouchEventAndroid.cpp +++ b/Source/WebCore/platform/android/PlatformTouchEventAndroid.cpp @@ -42,6 +42,7 @@ PlatformTouchEvent::PlatformTouchEvent(const Vector<int>& ids, const Vector<IntP : m_type(type) , m_metaKey(false) , m_timestamp(WTF::currentTime()) + , m_hitTouchHandler(false) { m_touchPoints.reserveCapacity(windowPoints.size()); for (unsigned c = 0; c < windowPoints.size(); c++) |