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

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

Issue 137273009: evdev: Factor common code out of key & touch converters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove duplicate variables & unneeded #include Created 6 years, 11 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/ozone/evdev/event_converter.cc ('k') | ui/events/ozone/evdev/key_event_converter.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.cc
diff --git a/ui/events/ozone/evdev/event_factory.cc b/ui/events/ozone/evdev/event_factory.cc
index 95f86a396e922685bb8e62582ad7cf0f13627a5a..8142742cc5f6a3a8e2da0dccd28b9077b4c649c3 100644
--- a/ui/events/ozone/evdev/event_factory.cc
+++ b/ui/events/ozone/evdev/event_factory.cc
@@ -66,7 +66,7 @@ void EventFactoryEvdev::AttachInputDevice(const base::FilePath& path) {
// TODO(spang) Add more device types. Support hot-plugging.
scoped_ptr<EventConverterOzone> converter;
if (IsTouchScreen(devinfo))
- converter.reset(new TouchEventConverterEvdev(fd, path));
+ converter.reset(new TouchEventConverterEvdev(fd, path, &modifiers_));
else if (devinfo.HasEventType(EV_KEY))
converter.reset(new KeyEventConverterEvdev(fd, path, &modifiers_));
« no previous file with comments | « ui/events/ozone/evdev/event_converter.cc ('k') | ui/events/ozone/evdev/key_event_converter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698