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

Unified Diff: ui/base/events.h

Issue 10912063: events: Get rid of GestureStatus in favour of EventResult. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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 | « ui/aura/window_unittest.cc ('k') | ui/base/events/event_handler.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 69d04f88edc9ebfe2b2e1d69a429ff124df38d2a..891fc3245ace4c415faeb00c4d5ee791de347ccd 100644
--- a/ui/base/events.h
+++ b/ui/base/events.h
@@ -95,6 +95,16 @@ enum MouseEventFlags {
// from an unconsumed touch/gesture event.
};
+// Result of dispatching an event.
+enum EventResult {
+ ER_UNHANDLED = 0, // The event hasn't been handled. The event can be
+ // propagated to other handlers.
+ ER_HANDLED, // The event has already been handled, but it can still be
+ // propagated to other handlers.
+ ER_CONSUMED, // The event has been handled, and it should not be
+ // propagated to other handlers.
+};
+
enum TouchStatus {
TOUCH_STATUS_UNKNOWN = 0, // Unknown touch status. This is used to indicate
// that the touch event was not handled.
@@ -118,13 +128,6 @@ 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.
-};
-
// Get the EventType from a native event.
UI_EXPORT EventType EventTypeFromNative(const base::NativeEvent& native_event);
« no previous file with comments | « ui/aura/window_unittest.cc ('k') | ui/base/events/event_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698