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

Unified Diff: ui/events/ozone/events_ozone.cc

Issue 755883002: Input Injection API on Ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add unit test Created 6 years, 1 month 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/input_injector_evdev_unittest.cc ('k') | ui/events/ozone/events_ozone.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/events_ozone.cc
diff --git a/ui/events/ozone/events_ozone.cc b/ui/events/ozone/events_ozone.cc
index d2e1e33b5775e8874ffb814599f6c01068a8f5f8..ba11d3366ab71152067845d9c887ae550f527b71 100644
--- a/ui/events/ozone/events_ozone.cc
+++ b/ui/events/ozone/events_ozone.cc
@@ -184,6 +184,9 @@ void DispatchEventFromNativeUiEvent(const base::NativeEvent& native_event,
if (native_ui_event->IsKeyEvent()) {
ui::KeyEvent key_event(native_event);
callback.Run(&key_event);
+ } else if (native_ui_event->IsMouseWheelEvent()) {
+ ui::MouseWheelEvent wheel_event(native_event);
+ callback.Run(&wheel_event);
} else if (native_ui_event->IsMouseEvent()) {
ui::MouseEvent mouse_event(native_event);
callback.Run(&mouse_event);
« no previous file with comments | « ui/events/ozone/evdev/input_injector_evdev_unittest.cc ('k') | ui/events/ozone/events_ozone.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698