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

Unified Diff: ui/events/ozone/evdev/event_converter_evdev.h

Issue 193813003: ozone: evdev: Add libgestures bindings for touchpad & mouse support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moved 1 space by 1 character Created 6 years, 8 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
« no previous file with comments | « ui/events/events.gyp ('k') | ui/events/ozone/evdev/event_converter_evdev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « ui/events/events.gyp ('k') | ui/events/ozone/evdev/event_converter_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698