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

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

Issue 561243002: ozone: evdev: Move read polling into EventConverterEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/ozone/evdev/event_converter_evdev.cc ('k') | ui/events/ozone/evdev/key_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/key_event_converter_evdev.h
diff --git a/ui/events/ozone/evdev/key_event_converter_evdev.h b/ui/events/ozone/evdev/key_event_converter_evdev.h
index 26615d9494236ca163ef43e34b50f734af2dee00..29175dac20f71c0da0a2869071b83c7205b270fd 100644
--- a/ui/events/ozone/evdev/key_event_converter_evdev.h
+++ b/ui/events/ozone/evdev/key_event_converter_evdev.h
@@ -17,8 +17,7 @@ struct input_event;
namespace ui {
class EVENTS_OZONE_EVDEV_EXPORT KeyEventConverterEvdev
- : public EventConverterEvdev,
- public base::MessagePumpLibevent::Watcher {
+ : public EventConverterEvdev {
public:
KeyEventConverterEvdev(int fd,
base::FilePath path,
@@ -26,22 +25,14 @@ class EVENTS_OZONE_EVDEV_EXPORT KeyEventConverterEvdev
const EventDispatchCallback& dispatch);
virtual ~KeyEventConverterEvdev();
- // Start & stop watching for events.
- virtual void Start() OVERRIDE;
- virtual void Stop() OVERRIDE;
-
- // Overidden from base::MessagePumpLibevent::Watcher.
+ // EventConverterEvdev:
virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE;
- virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE;
void ProcessEvents(const struct input_event* inputs, int count);
private:
- // File descriptor for the /dev/input/event* instance.
- int fd_;
-
- // Path to input device.
- base::FilePath path_;
+ // Callback for dispatching events.
+ EventDispatchCallback callback_;
// Shared modifier state.
EventModifiersEvdev* modifiers_;
« no previous file with comments | « ui/events/ozone/evdev/event_converter_evdev.cc ('k') | ui/events/ozone/evdev/key_event_converter_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698