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

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

Issue 2248933002: Support pen in TouchEventConverterEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit 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/event_converter_evdev_impl.cc
diff --git a/ui/events/ozone/evdev/event_converter_evdev_impl.cc b/ui/events/ozone/evdev/event_converter_evdev_impl.cc
index 7d4554bec6cfafa5d9d3877b85e6636db8b264c0..8b44230bdabc48979d4fe388fdd14a505f350437 100644
--- a/ui/events/ozone/evdev/event_converter_evdev_impl.cc
+++ b/ui/events/ozone/evdev/event_converter_evdev_impl.cc
@@ -226,7 +226,7 @@ void EventConverterEvdevImpl::OnButtonChange(int code,
mouse_button_state_.set(button_offset, down);
dispatcher_->DispatchMouseButtonEvent(MouseButtonEventParams(
- input_device_.id, cursor_->GetLocation(), code, down,
+ input_device_.id, EF_NONE, cursor_->GetLocation(), code, down,
/* allow_remap */ true,
PointerDetails(EventPointerType::POINTER_TYPE_MOUSE), timestamp));
}
@@ -238,7 +238,7 @@ void EventConverterEvdevImpl::FlushEvents(const input_event& input) {
cursor_->MoveCursor(gfx::Vector2dF(x_offset_, y_offset_));
dispatcher_->DispatchMouseMoveEvent(
- MouseMoveEventParams(input_device_.id, cursor_->GetLocation(),
+ MouseMoveEventParams(input_device_.id, EF_NONE, cursor_->GetLocation(),
PointerDetails(EventPointerType::POINTER_TYPE_MOUSE),
TimeTicksFromInputEvent(input)));

Powered by Google App Engine
This is Rietveld 408576698