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

Unified Diff: ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h

Issue 869613003: [PATCH 5/11] ozone: evdev: Replace dispatch callbacks with an interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: namespace ui 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/libgestures_glue/gesture_interpreter_libevdev_cros.h
diff --git a/ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h b/ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h
index 76bc6b896a0b250d013955b6d365485b090c7315..1300ec4e0cfa5dfc6e8ebfb5d3f7f360f8915495 100644
--- a/ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h
+++ b/ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h
@@ -18,6 +18,7 @@
namespace ui {
+class DeviceEventDispatcherEvdev;
class EventDeviceInfo;
class CursorDelegateEvdev;
struct GestureDeviceProperties;
@@ -39,15 +40,10 @@ class GesturePropertyProvider;
class EVENTS_OZONE_EVDEV_EXPORT GestureInterpreterLibevdevCros
: public EventReaderLibevdevCros::Delegate {
public:
- GestureInterpreterLibevdevCros(
- int id,
- CursorDelegateEvdev* cursor,
- GesturePropertyProvider* property_provider,
- const KeyEventDispatchCallback& key_callback,
- const MouseMoveEventDispatchCallback& mouse_move_callback,
- const MouseButtonEventDispatchCallback& mouse_button_callback,
- const MouseWheelEventDispatchCallback& mouse_wheel_callback,
- const ScrollEventDispatchCallback& scroll_callback);
+ GestureInterpreterLibevdevCros(int id,
+ CursorDelegateEvdev* cursor,
+ GesturePropertyProvider* property_provider,
+ DeviceEventDispatcherEvdev* dispatcher);
~GestureInterpreterLibevdevCros() override;
// Overriden from ui::EventReaderLibevdevCros::Delegate
@@ -100,12 +96,8 @@ class EVENTS_OZONE_EVDEV_EXPORT GestureInterpreterLibevdevCros
// Shared gesture property provider.
GesturePropertyProvider* property_provider_;
- // Callbacks for dispatching events.
- KeyEventDispatchCallback key_callback_;
- MouseMoveEventDispatchCallback mouse_move_callback_;
- MouseButtonEventDispatchCallback mouse_button_callback_;
- MouseWheelEventDispatchCallback mouse_wheel_callback_;
- ScrollEventDispatchCallback scroll_callback_;
+ // Dispatcher for events.
+ DeviceEventDispatcherEvdev* dispatcher_;
// Gestures interpretation state.
gestures::GestureInterpreter* interpreter_;

Powered by Google App Engine
This is Rietveld 408576698