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

Unified Diff: content/browser/renderer_host/input/motion_event_web.cc

Issue 2289273002: Eraser tool type plumbing from ui/events to web events and PPAPI. (Closed)
Patch Set: add pen modifier and version uprev of ppapi 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 | « no previous file | content/renderer/pepper/event_conversion.cc » ('j') | ppapi/api/ppb_input_event.idl » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/motion_event_web.cc
diff --git a/content/browser/renderer_host/input/motion_event_web.cc b/content/browser/renderer_host/input/motion_event_web.cc
index 2fccea6133a3f7437bda08dbed24f44f511aa5f7..166d34d58fbe3445faef5e192ece05ce556224ed 100644
--- a/content/browser/renderer_host/input/motion_event_web.cc
+++ b/content/browser/renderer_host/input/motion_event_web.cc
@@ -205,6 +205,8 @@ ui::MotionEvent::ToolType MotionEventWeb::GetToolType(
return TOOL_TYPE_MOUSE;
case WebPointerProperties::PointerType::Pen:
return TOOL_TYPE_STYLUS;
+ case WebPointerProperties::PointerType::Eraser:
+ return TOOL_TYPE_ERASER;
case WebPointerProperties::PointerType::Touch:
return TOOL_TYPE_FINGER;
}
« no previous file with comments | « no previous file | content/renderer/pepper/event_conversion.cc » ('j') | ppapi/api/ppb_input_event.idl » ('J')

Powered by Google App Engine
This is Rietveld 408576698