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

Unified Diff: ui/events/ozone/evdev/touch_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/touch_event_converter_evdev.h
diff --git a/ui/events/ozone/evdev/touch_event_converter_evdev.h b/ui/events/ozone/evdev/touch_event_converter_evdev.h
index f27d18de7834f073890082d4f19a4b277b6e9bab..edf0ef945b3b3b34203a99961ff20fc43abb917b 100644
--- a/ui/events/ozone/evdev/touch_event_converter_evdev.h
+++ b/ui/events/ozone/evdev/touch_event_converter_evdev.h
@@ -19,6 +19,8 @@ namespace ui {
class TouchEvent;
+class DeviceEventDispatcherEvdev;
+
class EVENTS_OZONE_EVDEV_EXPORT TouchEventConverterEvdev
: public EventConverterEvdev {
public:
@@ -29,7 +31,7 @@ class EVENTS_OZONE_EVDEV_EXPORT TouchEventConverterEvdev
base::FilePath path,
int id,
InputDeviceType type,
- const TouchEventDispatchCallback& touch_callback);
+ DeviceEventDispatcherEvdev* dispatcher);
~TouchEventConverterEvdev() override;
// EventConverterEvdev:
@@ -69,8 +71,8 @@ class EVENTS_OZONE_EVDEV_EXPORT TouchEventConverterEvdev
const InProgressEvents& event, const base::TimeDelta& delta);
void ReportEvents(base::TimeDelta delta);
- // Callback for dispatching events.
- TouchEventDispatchCallback touch_callback_;
+ // Dispatcher for events.
+ DeviceEventDispatcherEvdev* dispatcher_;
// Set if we have seen a SYN_DROPPED and not yet re-synced with the device.
bool syn_dropped_;
« no previous file with comments | « ui/events/ozone/evdev/tablet_event_converter_evdev_unittest.cc ('k') | ui/events/ozone/evdev/touch_event_converter_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698