Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Unified Diff: Source/WebKit/chromium/public/WebInputEvent.h

Issue 7051008: Merge 85977 - 2011-05-06 Justin Schuh <jschuh@chromium.org> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebKit/chromium/public/WebInputEvent.h
===================================================================
--- Source/WebKit/chromium/public/WebInputEvent.h (revision 86856)
+++ Source/WebKit/chromium/public/WebInputEvent.h (working copy)
@@ -165,6 +165,16 @@
|| type == TouchEnd
|| type == TouchCancel;
}
+
+ // Returns true if the WebInputEvent |type| should be handled as user gesture.
+ static bool isUserGestureEventType(int type)
+ {
+ return isKeyboardEventType(type)
+ || type == MouseDown
+ || type == MouseUp
+ || type == TouchStart
+ || type == TouchEnd;
+ }
};
// WebKeyboardEvent -----------------------------------------------------------
« no previous file with comments | « LayoutTests/fast/events/popup-blocked-from-mousemove-expected.txt ('k') | Source/WebKit/chromium/src/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698