Index: ui/events/ozone/evdev/event_converter_evdev_impl.cc |
diff --git a/ui/events/ozone/evdev/event_converter_evdev_impl.cc b/ui/events/ozone/evdev/event_converter_evdev_impl.cc |
index 78da21fdf6f281e1b49eae9a5db1be3f65d03aed..9654ec4cecd49d373a66419a514968025ac645f4 100644 |
--- a/ui/events/ozone/evdev/event_converter_evdev_impl.cc |
+++ b/ui/events/ozone/evdev/event_converter_evdev_impl.cc |
@@ -19,12 +19,14 @@ EventConverterEvdevImpl::EventConverterEvdevImpl( |
base::FilePath path, |
int id, |
InputDeviceType type, |
+ const EventDeviceInfo& devinfo, |
EventModifiersEvdev* modifiers, |
MouseButtonMapEvdev* button_map, |
CursorDelegateEvdev* cursor, |
KeyboardEvdev* keyboard, |
const EventDispatchCallback& callback) |
: EventConverterEvdev(fd, path, id, type), |
+ has_keyboard_(devinfo.HasKeyboard()), |
x_offset_(0), |
y_offset_(0), |
cursor_(cursor), |
@@ -55,6 +57,10 @@ void EventConverterEvdevImpl::OnFileCanReadWithoutBlocking(int fd) { |
ProcessEvents(inputs, read_size / sizeof(*inputs)); |
} |
+bool EventConverterEvdevImpl::HasKeyboard() const { |
+ return has_keyboard_; |
+} |
+ |
void EventConverterEvdevImpl::ProcessEvents(const input_event* inputs, |
int count) { |
for (int i = 0; i < count; ++i) { |