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

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

Issue 618283003: Adds special support to the device manager for keyboards devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to master. Created 6 years, 2 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/keyboard_device.cc ('k') | ui/events/touchscreen_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/event_factory_evdev.cc
diff --git a/ui/events/ozone/evdev/event_factory_evdev.cc b/ui/events/ozone/evdev/event_factory_evdev.cc
index 170d3a66c2102f321c5267cf8b00740fd9151440..0a0d674ef38767fad312b57e19d9516590425fa1 100644
--- a/ui/events/ozone/evdev/event_factory_evdev.cc
+++ b/ui/events/ozone/evdev/event_factory_evdev.cc
@@ -295,9 +295,11 @@ void EventFactoryEvdev::NotifyHotplugEventObserver(
std::vector<TouchscreenDevice> touchscreens;
for (auto it = converters_.begin(); it != converters_.end(); ++it) {
if (it->second->HasTouchscreen()) {
- touchscreens.push_back(TouchscreenDevice(it->second->id(),
- it->second->GetTouchscreenSize(),
- false /* is_internal */));
+ touchscreens.push_back(
+ TouchscreenDevice(it->second->id(),
+ InputDeviceType::INPUT_DEVICE_EXTERNAL,
+ std::string(), /* Device name */
+ it->second->GetTouchscreenSize()));
}
}
« no previous file with comments | « ui/events/keyboard_device.cc ('k') | ui/events/touchscreen_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698