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

Unified Diff: ui/events/ozone/evdev/event_converter_evdev_impl.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: updates for events_unittests 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_converter_evdev_impl.h
diff --git a/ui/events/ozone/evdev/event_converter_evdev_impl.h b/ui/events/ozone/evdev/event_converter_evdev_impl.h
index 848a3767459e0b870ccd40d2eb41c999c478416f..eef569e85cc0fed3a43ed8eb783ebf346d728d70 100644
--- a/ui/events/ozone/evdev/event_converter_evdev_impl.h
+++ b/ui/events/ozone/evdev/event_converter_evdev_impl.h
@@ -23,19 +23,18 @@ struct input_event;
namespace ui {
+class DeviceEventDispatcherEvdev;
+
class EVENTS_OZONE_EVDEV_EXPORT EventConverterEvdevImpl
: public EventConverterEvdev {
public:
- EventConverterEvdevImpl(
- int fd,
- base::FilePath path,
- int id,
- InputDeviceType type,
- const EventDeviceInfo& info,
- CursorDelegateEvdev* cursor,
- const KeyEventDispatchCallback& key_callback,
- const MouseMoveEventDispatchCallback& mouse_move_callback,
- const MouseButtonEventDispatchCallback& mouse_button_callback);
+ EventConverterEvdevImpl(int fd,
+ base::FilePath path,
+ int id,
+ InputDeviceType type,
+ const EventDeviceInfo& info,
+ CursorDelegateEvdev* cursor,
+ DeviceEventDispatcherEvdev* dispatcher);
~EventConverterEvdevImpl() override;
// EventConverterEvdev:
@@ -79,9 +78,7 @@ class EVENTS_OZONE_EVDEV_EXPORT EventConverterEvdevImpl
CursorDelegateEvdev* cursor_;
// Callbacks for dispatching events.
- KeyEventDispatchCallback key_callback_;
- MouseMoveEventDispatchCallback mouse_move_callback_;
- MouseButtonEventDispatchCallback mouse_button_callback_;
+ DeviceEventDispatcherEvdev* dispatcher_;
DISALLOW_COPY_AND_ASSIGN(EventConverterEvdevImpl);
};

Powered by Google App Engine
This is Rietveld 408576698