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

Unified Diff: ui/events/ozone/evdev/event_converter_evdev_impl.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/event_converter_evdev_impl.h
diff --git a/ui/events/ozone/evdev/event_converter_evdev_impl.h b/ui/events/ozone/evdev/event_converter_evdev_impl.h
index 29e0f6d22e170c559a6d7ea098a77e683ffb8055..c7e66fe983b384cf62855599cc72effeed388675 100644
--- a/ui/events/ozone/evdev/event_converter_evdev_impl.h
+++ b/ui/events/ozone/evdev/event_converter_evdev_impl.h
@@ -11,6 +11,7 @@
#include "ui/events/event.h"
#include "ui/events/ozone/evdev/cursor_delegate_evdev.h"
#include "ui/events/ozone/evdev/event_converter_evdev.h"
+#include "ui/events/ozone/evdev/event_device_info.h"
#include "ui/events/ozone/evdev/event_modifiers_evdev.h"
#include "ui/events/ozone/evdev/events_ozone_evdev_export.h"
#include "ui/events/ozone/evdev/keyboard_evdev.h"
@@ -27,6 +28,7 @@ class EVENTS_OZONE_EVDEV_EXPORT EventConverterEvdevImpl
base::FilePath path,
int id,
InputDeviceType type,
+ const EventDeviceInfo& info,
EventModifiersEvdev* modifiers,
MouseButtonMapEvdev* button_map,
CursorDelegateEvdev* cursor,
@@ -36,6 +38,7 @@ class EVENTS_OZONE_EVDEV_EXPORT EventConverterEvdevImpl
// EventConverterEvdev:
void OnFileCanReadWithoutBlocking(int fd) override;
+ bool HasKeyboard() const override;
void ProcessEvents(const struct input_event* inputs, int count);
@@ -50,6 +53,9 @@ class EVENTS_OZONE_EVDEV_EXPORT EventConverterEvdevImpl
// non-axis-aligned movement properly.
void FlushEvents();
+ // Input modalities for this device.
+ bool has_keyboard_;
+
// Save x-axis events of relative devices to be flushed at EV_SYN time.
int x_offset_;

Powered by Google App Engine
This is Rietveld 408576698