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

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: 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
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..5e3f5296ac1e86f97b2471867d2fee53e0668748 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,
+ PointerDetails(EventPointerType::POINTER_TYPE_MOUSE), timestamp));
}
void EventConverterEvdevImpl::FlushEvents(const input_event& input) {
@@ -237,6 +238,7 @@ void EventConverterEvdevImpl::FlushEvents(const input_event& input) {
dispatcher_->DispatchMouseMoveEvent(
MouseMoveEventParams(input_device_.id, cursor_->GetLocation(),
+ PointerDetails(EventPointerType::POINTER_TYPE_MOUSE),
TimeDeltaFromInputEvent(input)));
x_offset_ = 0;
« no previous file with comments | « ui/events/ozone/evdev/device_event_dispatcher_evdev.cc ('k') | ui/events/ozone/evdev/event_factory_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698