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

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

Issue 2278033003: Revert of Add POINTER_TYPE_ERASER to EventPointerType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « ui/events/ozone/evdev/tablet_event_converter_evdev.cc ('k') | no next file » | 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 88b04aa1cfef8991d174175f9bab678efa60fa5c..e0c9d2d2fa6a656c34ad10f7a2f0ab12df913874 100644
--- a/ui/events/ozone/evdev/touch_event_converter_evdev.cc
+++ b/ui/events/ozone/evdev/touch_event_converter_evdev.cc
@@ -85,9 +85,6 @@
case BTN_TOOL_PEN:
type = ui::EventPointerType::POINTER_TYPE_PEN;
break;
- case BTN_TOOL_RUBBER:
- type = ui::EventPointerType::POINTER_TYPE_ERASER;
- break;
default:
type = ui::EventPointerType::POINTER_TYPE_TOUCH;
}
@@ -333,7 +330,6 @@
switch (input.code) {
case BTN_TOUCH:
case BTN_LEFT:
- case BTN_0:
events_[current_slot_].btn_left.down = input.value;
events_[current_slot_].btn_left.changed = true;
break;
@@ -346,7 +342,6 @@
events_[current_slot_].btn_middle.changed = true;
break;
case BTN_TOOL_PEN:
- case BTN_TOOL_RUBBER:
// Do not change tool types while touching to prevent inconsistencies
// from switching between Mouse and TouchEvents.
if (events_[current_slot_].was_touching)
« no previous file with comments | « ui/events/ozone/evdev/tablet_event_converter_evdev.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698