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

Unified Diff: ui/events/event_utils.h

Issue 2540433002: Reland "Propagate information about how ARC apps are launched" (Closed)
Patch Set: Fixed unit tests Created 4 years, 1 month 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/events/event_utils.h
diff --git a/ui/events/event_utils.h b/ui/events/event_utils.h
index c7a51aab0abb3ffe0dd50e08512f524e41dbac28..35a9b73194175c8421b3787a38bf6c79c8e5b3ae 100644
--- a/ui/events/event_utils.h
+++ b/ui/events/event_utils.h
@@ -181,6 +181,12 @@ EVENTS_EXPORT void UpdateX11EventForChangedButtonFlags(MouseEvent* event);
// Registers a custom event type.
EVENTS_EXPORT int RegisterCustomEventType();
+// Returns true if |event_flags| indicate the event came from a mouse event.
+EVENTS_EXPORT bool IsMouseEventFromFlags(int event_flags);
+
+// Returns true if |event_flags| indicate the event came from a touch event.
+EVENTS_EXPORT bool IsTouchEventFromFlags(int event_flags);
+
} // namespace ui
#endif // UI_EVENTS_EVENT_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698