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

Unified Diff: ui/events/ozone/evdev/tablet_event_converter_evdev.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/tablet_event_converter_evdev.h
diff --git a/ui/events/ozone/evdev/tablet_event_converter_evdev.h b/ui/events/ozone/evdev/tablet_event_converter_evdev.h
index 6d386bbef4ad804903aff5ff884ad42859f1fa3b..02ca08eea1f8f35e0fe43f712916dd60856bf5aa 100644
--- a/ui/events/ozone/evdev/tablet_event_converter_evdev.h
+++ b/ui/events/ozone/evdev/tablet_event_converter_evdev.h
@@ -18,18 +18,18 @@ struct input_event;
namespace ui {
+class DeviceEventDispatcherEvdev;
+
class EVENTS_OZONE_EVDEV_EXPORT TabletEventConverterEvdev
: public EventConverterEvdev {
public:
- TabletEventConverterEvdev(
- int fd,
- base::FilePath path,
- int id,
- InputDeviceType type,
- CursorDelegateEvdev* cursor,
- const EventDeviceInfo& info,
- const MouseMoveEventDispatchCallback& mouse_move_callback,
- const MouseButtonEventDispatchCallback& mouse_button_callback);
+ TabletEventConverterEvdev(int fd,
+ base::FilePath path,
+ int id,
+ InputDeviceType type,
+ CursorDelegateEvdev* cursor,
+ const EventDeviceInfo& info,
+ DeviceEventDispatcherEvdev* dispatcher);
~TabletEventConverterEvdev() override;
// EventConverterEvdev:
@@ -54,9 +54,8 @@ class EVENTS_OZONE_EVDEV_EXPORT TabletEventConverterEvdev
// Shared cursor state.
CursorDelegateEvdev* cursor_;
- // Callbacks for dispatching events.
- MouseMoveEventDispatchCallback mouse_move_callback_;
- MouseButtonEventDispatchCallback mouse_button_callback_;
+ // Dispatcher for events.
+ DeviceEventDispatcherEvdev* dispatcher_;
int y_abs_location_;
int x_abs_location_;

Powered by Google App Engine
This is Rietveld 408576698