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

Unified Diff: ui/events/event.cc

Issue 1073573002: Ozone support for device special cases in keyboard event rewriting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments Created 5 years, 8 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/event.cc
diff --git a/ui/events/event.cc b/ui/events/event.cc
index 0cdf70d873394a0b5b5bd532df720c1a84ec3eb3..544401991feb1700d1331a1b2fdba26e9b364e5e 100644
--- a/ui/events/event.cc
+++ b/ui/events/event.cc
@@ -246,6 +246,10 @@ Event::Event(const base::NativeEvent& native_event,
source_device_id_ = xiev->sourceid;
}
#endif
+#if defined(USE_OZONE)
+ source_device_id_ =
+ static_cast<const Event*>(native_event)->source_device_id();
+#endif
}
Event::Event(const Event& copy)

Powered by Google App Engine
This is Rietveld 408576698