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

Unified Diff: ui/events/ozone/evdev/event_converter_evdev_impl.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: Address spang@ feedback 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
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 ebc77fa2771cda1cd8dcf772e870f4817dd6c788..5c4d941843b1a687c2d1b42954b513186b3c2de8 100644
--- a/ui/events/ozone/evdev/event_converter_evdev_impl.cc
+++ b/ui/events/ozone/evdev/event_converter_evdev_impl.cc
@@ -226,7 +226,8 @@ void EventConverterEvdevImpl::OnButtonChange(int code,
dispatcher_->DispatchMouseButtonEvent(MouseButtonEventParams(
input_device_.id, cursor_->GetLocation(), code, down,
- /* allow_remap */ true, timestamp));
+ /* allow_remap */ true, EventPointerType::POINTER_TYPE_MOUSE,
+ /* force */ 0.0f, /* tilt_x */ 0.0f, /* tilt_y */ 0.0f, timestamp));
}
void EventConverterEvdevImpl::FlushEvents(const input_event& input) {
@@ -237,7 +238,9 @@ void EventConverterEvdevImpl::FlushEvents(const input_event& input) {
dispatcher_->DispatchMouseMoveEvent(
MouseMoveEventParams(input_device_.id, cursor_->GetLocation(),
- TimeDeltaFromInputEvent(input)));
+ EventPointerType::POINTER_TYPE_MOUSE,
+ /* force */ 0.0f, /* tilt_x */ 0.0f,
+ /* tilt_y */ 0.0f, TimeDeltaFromInputEvent(input)));
x_offset_ = 0;
y_offset_ = 0;

Powered by Google App Engine
This is Rietveld 408576698