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

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

Issue 2248933002: Support pen in TouchEventConverterEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 4 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/input_injector_evdev.cc
diff --git a/ui/events/ozone/evdev/input_injector_evdev.cc b/ui/events/ozone/evdev/input_injector_evdev.cc
index 0e5d1dba16ce91fb4ab67cf0306eff0a769002f1..233575fdd6deee1282a8b9ec23d86c37106de161 100644
--- a/ui/events/ozone/evdev/input_injector_evdev.cc
+++ b/ui/events/ozone/evdev/input_injector_evdev.cc
@@ -48,7 +48,7 @@ void InputInjectorEvdev::InjectMouseButton(EventFlags button, bool down) {
}
dispatcher_->DispatchMouseButtonEvent(MouseButtonEventParams(
- kDeviceIdForInjection, cursor_->GetLocation(), code, down,
+ kDeviceIdForInjection, EF_NONE, cursor_->GetLocation(), code, down,
false /* allow_remap */,
PointerDetails(EventPointerType::POINTER_TYPE_MOUSE), EventTimeForNow()));
}
@@ -66,7 +66,7 @@ void InputInjectorEvdev::MoveCursorTo(const gfx::PointF& location) {
cursor_->MoveCursorTo(location);
dispatcher_->DispatchMouseMoveEvent(MouseMoveEventParams(
- kDeviceIdForInjection, cursor_->GetLocation(),
+ kDeviceIdForInjection, EF_NONE, cursor_->GetLocation(),
PointerDetails(EventPointerType::POINTER_TYPE_MOUSE), EventTimeForNow()));
}

Powered by Google App Engine
This is Rietveld 408576698