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

Unified Diff: ui/events/gestures/motion_event_aura.cc

Issue 2235933002: Add POINTER_TYPE_ERASER to EventPointerType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/event_constants.h ('k') | ui/events/ozone/evdev/tablet_event_converter_evdev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gestures/motion_event_aura.cc
diff --git a/ui/events/gestures/motion_event_aura.cc b/ui/events/gestures/motion_event_aura.cc
index 965f6a0a9948f0e15d9e3bdad68dba235e95aba8..5a414d794ef621a0694dd0ee7d07844a0bf8c0f2 100644
--- a/ui/events/gestures/motion_event_aura.cc
+++ b/ui/events/gestures/motion_event_aura.cc
@@ -21,6 +21,8 @@ MotionEvent::ToolType EventPointerTypeToMotionEventToolType(
return MotionEvent::TOOL_TYPE_STYLUS;
case EventPointerType::POINTER_TYPE_TOUCH:
return MotionEvent::TOOL_TYPE_FINGER;
+ case EventPointerType::POINTER_TYPE_ERASER:
+ return MotionEvent::TOOL_TYPE_ERASER;
}
return MotionEvent::TOOL_TYPE_UNKNOWN;
« no previous file with comments | « ui/events/event_constants.h ('k') | ui/events/ozone/evdev/tablet_event_converter_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698