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

Unified Diff: ui/base/events.h

Issue 8364039: Initial views touchui GestureRecognizer support (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Wired gesture events into RootView and commandline switch enable-gesture Created 9 years, 2 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: ui/base/events.h
diff --git a/ui/base/events.h b/ui/base/events.h
index 1e834797eefe41d9f977569c4d491e1ea680270f..f403213358f68fcf0b07c059267f59a56b489338 100644
--- a/ui/base/events.h
+++ b/ui/base/events.h
@@ -35,6 +35,14 @@ enum EventType {
ET_TOUCH_CANCELLED,
ET_DROP_TARGET_EVENT,
ET_FOCUS_CHANGE,
+
+ // GestureEvent types.
+ ET_GESTURE_SCROLL_BEGIN,
+ ET_GESTURE_SCROLL_END,
+ ET_GESTURE_SCROLL_UPDATE,
+ ET_GESTURE_TAP,
+ ET_GESTURE_TAP_DOWN,
+ ET_GESTURE_DOUBLE_TAP,
};
// Event flags currently supported
@@ -70,6 +78,16 @@ enum TouchStatus {
// unused touch event was handled.
};
+enum GestureStatus {
+ GESTURE_STATUS_UNKNOWN = 0, // Unknown Gesture status. This is used to
+ // indicate that the Gesture event was not
+ // handled.
+ GESTURE_STATUS_CONSUMED, // The Gesture event got consumed.
+ GESTURE_STATUS_SYNTH_MOUSE // The Gesture event was not processed, but a
+ // synthetic mouse event generated from the
+ // unused Gesture event was handled.
+};
+
// Get the EventType from a native event.
UI_EXPORT EventType EventTypeFromNative(const base::NativeEvent& native_event);

Powered by Google App Engine
This is Rietveld 408576698