| Index: ui/events/ozone/evdev/touch_event_converter.cc
|
| diff --git a/ui/events/ozone/evdev/touch_event_converter.cc b/ui/events/ozone/evdev/touch_event_converter.cc
|
| index 70752baf6a3b355e8bc0aff150af37adc66ebcf7..d95ebb6c5279dd649a03140ca5bbe8947b5f2d22 100644
|
| --- a/ui/events/ozone/evdev/touch_event_converter.cc
|
| +++ b/ui/events/ozone/evdev/touch_event_converter.cc
|
| @@ -146,7 +146,7 @@ void TouchEventConverterEvdev::OnFileCanReadWithoutBlocking(int fd) {
|
| altered_slots_.set(current_slot_);
|
| break;
|
| default:
|
| - NOTREACHED();
|
| + NOTREACHED() << "invalid code for EV_ABS: " << input.code;
|
| }
|
| } else if (input.type == EV_SYN) {
|
| switch (input.code) {
|
| @@ -178,11 +178,18 @@ void TouchEventConverterEvdev::OnFileCanReadWithoutBlocking(int fd) {
|
| case SYN_MT_REPORT:
|
| case SYN_CONFIG:
|
| case SYN_DROPPED:
|
| - NOTREACHED() << "SYN_MT events not supported.";
|
| + NOTREACHED() << "invalid code for EV_SYN: " << input.code;
|
| break;
|
| }
|
| + } else if (input.type == EV_KEY) {
|
| + switch (input.code) {
|
| + case BTN_TOUCH:
|
| + break;
|
| + default:
|
| + NOTREACHED() << "invalid code for EV_KEY: " << input.code;
|
| + }
|
| } else {
|
| - NOTREACHED();
|
| + NOTREACHED() << "invalid type: " << input.type;
|
| }
|
| }
|
| }
|
|
|