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

Unified Diff: ui/events/ozone/evdev/event_dispatch_callback.h

Issue 872883003: [PATCH 2/11] ozone: evdev: Move KeyboardEvdev usage during dispatch to EventFactoryEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add KeyEventParams object for consistency Created 5 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
Index: ui/events/ozone/evdev/event_dispatch_callback.h
diff --git a/ui/events/ozone/evdev/event_dispatch_callback.h b/ui/events/ozone/evdev/event_dispatch_callback.h
index 487c9a062668ed732ca291857befabc6b57e831b..ffdbbb2c0eb1f660bc228b58c7d314b0d4319fb6 100644
--- a/ui/events/ozone/evdev/event_dispatch_callback.h
+++ b/ui/events/ozone/evdev/event_dispatch_callback.h
@@ -27,6 +27,19 @@ class Event;
typedef base::Callback<void(scoped_ptr<Event>)> EventDispatchCallback;
+struct EVENTS_OZONE_EVDEV_EXPORT KeyEventParams {
+ KeyEventParams(int device_id, unsigned int code, bool down);
+ KeyEventParams(const KeyEventParams& other);
+ ~KeyEventParams();
+
+ int device_id;
+ unsigned int code;
+ bool down;
+};
+
+typedef base::Callback<void(const KeyEventParams& params)>
+ KeyEventDispatchCallback;
+
struct EVENTS_OZONE_EVDEV_EXPORT TouchEventParams {
TouchEventParams(int device_id,
int touch_id,
« no previous file with comments | « ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc ('k') | ui/events/ozone/evdev/event_dispatch_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698