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

Unified Diff: ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h

Issue 797483002: ozone: evdev: Populate keyboard list on DeviceDataManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/libgestures_glue/event_reader_libevdev_cros.h
diff --git a/ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h b/ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h
index e50ac73a312f611817b3776fc033ced422e8d474..f203cdf1312ddf2e5cf0bfca0ac1acf08d96faab 100644
--- a/ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h
+++ b/ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h
@@ -10,6 +10,7 @@
#include "base/files/file_path.h"
#include "base/message_loop/message_loop.h"
#include "ui/events/ozone/evdev/event_converter_evdev.h"
+#include "ui/events/ozone/evdev/event_device_info.h"
namespace ui {
@@ -39,11 +40,13 @@ class EventReaderLibevdevCros : public EventConverterEvdev {
const base::FilePath& path,
int id,
InputDeviceType type,
+ const EventDeviceInfo& devinfo,
scoped_ptr<Delegate> delegate);
~EventReaderLibevdevCros();
// EventConverterEvdev:
void OnFileCanReadWithoutBlocking(int fd) override;
+ bool HasKeyboard() const override;
private:
static void OnSynReport(void* data,
@@ -51,6 +54,9 @@ class EventReaderLibevdevCros : public EventConverterEvdev {
struct timeval* tv);
static void OnLogMessage(void*, int level, const char*, ...);
+ // Input modalities for this device.
+ bool has_keyboard_;
+
// Libevdev state.
Evdev evdev_;

Powered by Google App Engine
This is Rietveld 408576698