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

Unified Diff: ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.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/libgestures_glue/gesture_interpreter_libevdev_cros.cc
diff --git a/ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc b/ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc
index 540ffd7a5c6cdfa68586c25af178bc68cca27960..d4f5af789ad1e6ce201fb4205c618eb50376a8cf 100644
--- a/ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc
+++ b/ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc
@@ -272,7 +272,7 @@ void GestureInterpreterLibevdevCros::OnGestureMove(const Gesture* gesture,
cursor_->MoveCursor(gfx::Vector2dF(move->dx, move->dy));
// TODO(spang): Use move->ordinal_dx, move->ordinal_dy
dispatcher_->DispatchMouseMoveEvent(
- MouseMoveEventParams(id_, cursor_->GetLocation(),
+ MouseMoveEventParams(id_, EF_NONE, cursor_->GetLocation(),
PointerDetails(EventPointerType::POINTER_TYPE_MOUSE),
StimeToTimeTicks(gesture->end_time)));
}
@@ -443,7 +443,7 @@ void GestureInterpreterLibevdevCros::DispatchMouseButton(unsigned int button,
bool allow_remap = is_mouse_;
dispatcher_->DispatchMouseButtonEvent(MouseButtonEventParams(
- id_, cursor_->GetLocation(), button, down, allow_remap,
+ id_, EF_NONE, cursor_->GetLocation(), button, down, allow_remap,
PointerDetails(EventPointerType::POINTER_TYPE_MOUSE),
StimeToTimeTicks(time)));
}

Powered by Google App Engine
This is Rietveld 408576698