Index: ui/events/ozone/evdev/event_converter_evdev.h |
diff --git a/ui/events/ozone/evdev/event_converter_evdev.h b/ui/events/ozone/evdev/event_converter_evdev.h |
index 5dd9988f811082752e92ec4aaf5d045ce9c948a6..7f6223d854ec8af3a55c0c330c380501996e422a 100644 |
--- a/ui/events/ozone/evdev/event_converter_evdev.h |
+++ b/ui/events/ozone/evdev/event_converter_evdev.h |
@@ -15,16 +15,15 @@ namespace ui { |
class Event; |
class EventModifiersEvdev; |
+typedef base::Callback<void(Event*)> EventDispatchCallback; |
+ |
// Base class for device-specific evdev event conversion. |
class EVENTS_EXPORT EventConverterEvdev { |
public: |
EventConverterEvdev(); |
+ explicit EventConverterEvdev(const EventDispatchCallback& callback); |
virtual ~EventConverterEvdev(); |
- void SetDispatchCallback(base::Callback<void(void*)> callback) { |
- dispatch_callback_ = callback; |
- } |
- |
// Start converting events. |
virtual void Start() = 0; |
@@ -37,7 +36,7 @@ class EVENTS_EXPORT EventConverterEvdev { |
virtual void DispatchEventToCallback(ui::Event* event); |
private: |
- base::Callback<void(void*)> dispatch_callback_; |
+ EventDispatchCallback dispatch_callback_; |
DISALLOW_COPY_AND_ASSIGN(EventConverterEvdev); |
}; |