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

Unified Diff: components/exo/wayland/server.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 | « no previous file | ui/events/blink/web_input_event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/wayland/server.cc
diff --git a/components/exo/wayland/server.cc b/components/exo/wayland/server.cc
index 004f9d956fe9d7d420b5ec34c22244b25c01b14b..122aaee598c8506598cfdbd8d4c6b16903adb491 100644
--- a/components/exo/wayland/server.cc
+++ b/components/exo/wayland/server.cc
@@ -2963,6 +2963,8 @@ class WaylandPointerStylusDelegate : public PointerStylusDelegate {
uint wayland_type = ZWP_POINTER_STYLUS_V1_TOOL_TYPE_MOUSE;
if (type == ui::EventPointerType::POINTER_TYPE_PEN)
wayland_type = ZWP_POINTER_STYLUS_V1_TOOL_TYPE_PEN;
+ else if (type == ui::EventPointerType::POINTER_TYPE_ERASER)
+ wayland_type = ZWP_POINTER_STYLUS_V1_TOOL_TYPE_ERASER;
zwp_pointer_stylus_v1_send_tool_change(resource_, wayland_type);
}
void OnPointerForce(base::TimeTicks time_stamp, float force) override {
« no previous file with comments | « no previous file | ui/events/blink/web_input_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698