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

Unified Diff: ui/base/events.h

Issue 9076002: Initial views touchui Gesture Recognizer support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win release build Created 8 years, 11 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
« no previous file with comments | « no previous file | ui/views/events/event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/events.h
diff --git a/ui/base/events.h b/ui/base/events.h
index 62bebf42184804becfeca9456f68e01291aa45f9..1c0a2736fb75998f50f746f86d974ca5492fdf0a 100644
--- a/ui/base/events.h
+++ b/ui/base/events.h
@@ -38,6 +38,14 @@ enum EventType {
ET_SCROLL,
ET_TRANSLATED_KEY_PRESS,
ET_TRANSLATED_KEY_RELEASE,
+
+ // 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
@@ -76,6 +84,16 @@ enum TouchStatus {
// Updates the list of devices for cached properties.
UI_EXPORT void UpdateDeviceList();
+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);
« no previous file with comments | « no previous file | ui/views/events/event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698