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

Unified Diff: ui/events/ozone/evdev/event_converter_evdev_impl.cc

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.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) {

Powered by Google App Engine
This is Rietveld 408576698