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

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

Issue 506303002: ozone: evdev: Fix ghost touches aligned with first touch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add unit test Created 6 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 | « no previous file | ui/events/ozone/evdev/touch_event_converter_evdev_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/touch_event_converter_evdev.cc
diff --git a/ui/events/ozone/evdev/touch_event_converter_evdev.cc b/ui/events/ozone/evdev/touch_event_converter_evdev.cc
index b460b25c8a9a391aa509945e6f24f39c585dd4ec..2a5b37f5bc57e7e48805ac13538a96d2e3bc1c55 100644
--- a/ui/events/ozone/evdev/touch_event_converter_evdev.cc
+++ b/ui/events/ozone/evdev/touch_event_converter_evdev.cc
@@ -203,7 +203,6 @@ void TouchEventConverterEvdev::ProcessAbs(const input_event& input) {
altered_slots_.set(current_slot_);
events_[current_slot_].major_ = input.value;
break;
- case ABS_X:
case ABS_MT_POSITION_X:
altered_slots_.set(current_slot_);
events_[current_slot_].x_ = TuxelsToPixels(input.value,
@@ -212,7 +211,6 @@ void TouchEventConverterEvdev::ProcessAbs(const input_event& input) {
x_min_pixels_,
x_num_pixels_);
break;
- case ABS_Y:
case ABS_MT_POSITION_Y:
altered_slots_.set(current_slot_);
events_[current_slot_].y_ = TuxelsToPixels(input.value,
@@ -231,7 +229,6 @@ void TouchEventConverterEvdev::ProcessAbs(const input_event& input) {
}
break;
case ABS_MT_PRESSURE:
- case ABS_PRESSURE:
altered_slots_.set(current_slot_);
events_[current_slot_].pressure_ = input.value - pressure_min_;
events_[current_slot_].pressure_ /= pressure_max_ - pressure_min_;
@@ -241,7 +238,7 @@ void TouchEventConverterEvdev::ProcessAbs(const input_event& input) {
altered_slots_.set(current_slot_);
break;
default:
- NOTIMPLEMENTED() << "invalid code for EV_ABS: " << input.code;
+ DVLOG(5) << "unhandled code for EV_ABS: " << input.code;
}
}
« no previous file with comments | « no previous file | ui/events/ozone/evdev/touch_event_converter_evdev_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698