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

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

Issue 1022673006: Remove support for type A touchscreens from TouchEventConverterEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/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 3aaaa315ba28df765aca924afa6efc9d139e583e..2be21ce9ba0e4dcac3100dcd25b578dafb754914 100644
--- a/ui/events/ozone/evdev/touch_event_converter_evdev.cc
+++ b/ui/events/ozone/evdev/touch_event_converter_evdev.cc
@@ -80,7 +80,6 @@ TouchEventConverterEvdev::TouchEventConverterEvdev(
: EventConverterEvdev(fd, path, id, type),
dispatcher_(dispatcher),
syn_dropped_(false),
- is_type_a_(false),
touch_points_(0),
current_slot_(0) {
}
@@ -255,16 +254,6 @@ void TouchEventConverterEvdev::ProcessSyn(const input_event& input) {
} else {
ReportEvents(EventConverterEvdev::TimeDeltaFromInputEvent(input));
}
- if (is_type_a_)
- current_slot_ = 0;
- break;
- case SYN_MT_REPORT:
- // For type A devices, we just get a stream of all current contacts,
- // in some arbitrary order.
- events_[current_slot_].type_ = ET_TOUCH_PRESSED;
- if (events_.size() - 1 > current_slot_)
- current_slot_++;
- is_type_a_ = true;
break;
case SYN_DROPPED:
// Some buffer has overrun. We ignore all events up to and
« no previous file with comments | « ui/events/ozone/evdev/touch_event_converter_evdev.h ('k') | 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