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

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: Fix blocked devices not updating. 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
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 88ec979fb35f4f3a3809cfcbb61d479d164b4d14..e92b982b7b1c79f2b624803880a3a37f34f97b87 100644
--- a/ui/events/ozone/evdev/event_factory_evdev.cc
+++ b/ui/events/ozone/evdev/event_factory_evdev.cc
@@ -260,9 +260,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::EXTERNAL,
+ "", /* Device name */
+ it->second->GetTouchscreenSize()));
}
}

Powered by Google App Engine
This is Rietveld 408576698