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

Unified Diff: ui/events/test/event_generator.cc

Issue 2562803002: exo: Replace pointer based stylus and replace with touch based stylus (Closed)
Patch Set: updated deps in gn file Created 4 years 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/test/event_generator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/event_generator.cc
diff --git a/ui/events/test/event_generator.cc b/ui/events/test/event_generator.cc
index f2d59af0dc4592ec85526844c143cbaff6070c3a..57fed244e08bfc9b6dae590989d9f428d058cc77 100644
--- a/ui/events/test/event_generator.cc
+++ b/ui/events/test/event_generator.cc
@@ -274,6 +274,11 @@ void EventGenerator::SetTouchRadius(float x, float y) {
touch_pointer_details_.radius_y = y;
}
+void EventGenerator::SetTouchTilt(float x, float y) {
+ touch_pointer_details_.tilt_x = x;
+ touch_pointer_details_.tilt_y = y;
+}
+
void EventGenerator::PressTouch() {
PressTouchId(0);
}
« no previous file with comments | « ui/events/test/event_generator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698