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

Unified Diff: ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc

Issue 1294523004: ozone: Handle pressure and tilt for stylus devices (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-pe-details
Patch Set: Drop now unused mutators. Created 5 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
« no previous file with comments | « ui/events/ozone/evdev/input_injector_evdev.cc ('k') | ui/events/ozone/evdev/tablet_event_converter_evdev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0947ad48cc86031937bc2663a9c6d9e81cbc3a12..1ef23c33819ba9170be22f8d0d0363d5853e4326 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
@@ -270,8 +270,10 @@ 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(), StimeToTimedelta(gesture->end_time)));
+ dispatcher_->DispatchMouseMoveEvent(
+ MouseMoveEventParams(id_, cursor_->GetLocation(),
+ PointerDetails(EventPointerType::POINTER_TYPE_MOUSE),
+ StimeToTimedelta(gesture->end_time)));
}
void GestureInterpreterLibevdevCros::OnGestureScroll(
@@ -420,9 +422,10 @@ void GestureInterpreterLibevdevCros::DispatchMouseButton(unsigned int button,
return; // No change.
bool allow_remap = is_mouse_;
- dispatcher_->DispatchMouseButtonEvent(
- MouseButtonEventParams(id_, cursor_->GetLocation(), button, down,
- allow_remap, StimeToTimedelta(time)));
+ dispatcher_->DispatchMouseButtonEvent(MouseButtonEventParams(
+ id_, cursor_->GetLocation(), button, down, allow_remap,
+ PointerDetails(EventPointerType::POINTER_TYPE_MOUSE),
+ StimeToTimedelta(time)));
}
void GestureInterpreterLibevdevCros::DispatchChangedKeys(
« no previous file with comments | « ui/events/ozone/evdev/input_injector_evdev.cc ('k') | ui/events/ozone/evdev/tablet_event_converter_evdev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698