diff options
| author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-06-20 13:01:08 +0200 |
|---|---|---|
| committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-06-20 13:01:08 +0200 |
| commit | 49233e234e5c787396cadb2cea33b31ae0cd65c1 (patch) | |
| tree | 5410cb9a8fd53168bb60d62c54b654d86f03c38d /Source/WebKit/chromium/public/WebInputEvent.h | |
| parent | b211c645d8ab690f713515dfdc84d80b11c27d2c (diff) | |
| download | qtwebkit-49233e234e5c787396cadb2cea33b31ae0cd65c1.tar.gz | |
Imported WebKit commit 3a8c29f35d00659d2ce7a0ccdfa8304f14e82327 (http://svn.webkit.org/repository/webkit/trunk@120813)
New snapshot with Windows build fixes
Diffstat (limited to 'Source/WebKit/chromium/public/WebInputEvent.h')
| -rw-r--r-- | Source/WebKit/chromium/public/WebInputEvent.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/Source/WebKit/chromium/public/WebInputEvent.h b/Source/WebKit/chromium/public/WebInputEvent.h index 6ac9f1f57..b7a5ecbd2 100644 --- a/Source/WebKit/chromium/public/WebInputEvent.h +++ b/Source/WebKit/chromium/public/WebInputEvent.h @@ -116,6 +116,7 @@ public: GestureTap, GestureTapDown, GestureDoubleTap, + GestureTwoFingerTap, GestureLongPress, GesturePinchBegin, GesturePinchEnd, @@ -197,16 +198,25 @@ public: || type == TouchEnd; } - // Returns true if the WebInputEvent |type| should be handled as scroll gesture. - static bool isScrollGestureEventType(int type) + // Returns true if the WebInputEvent is a gesture event. + static bool isGestureEventType(int type) { return type == GestureScrollBegin || type == GestureScrollEnd || type == GestureScrollUpdate || type == GestureFlingStart || type == GestureFlingCancel + || type == GesturePinchBegin + || type == GesturePinchEnd + || type == GesturePinchUpdate + || type == GestureTap || type == GestureTapDown - || type == GestureTap; // FIXME: Why is GestureTap on this list? + || type == GestureDoubleTap + || type == GestureTwoFingerTap + || type == GestureLongPress + || type == GesturePinchBegin + || type == GesturePinchEnd + || type == GesturePinchUpdate; } }; @@ -379,7 +389,9 @@ public: class WebTouchEvent : public WebInputEvent { public: - enum { touchesLengthCap = 8 }; + // Maximum number of simultaneous touches supported on + // Ash/Aura. + enum { touchesLengthCap = 12 }; unsigned touchesLength; // List of all touches which are currently down. |
