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

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

Issue 2562803002: exo: Replace pointer based stylus and replace with touch based stylus (Closed)
Patch Set: rebase 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
« ui/events/test/event_generator.h ('K') | « 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 297d8b0f1c99a7fa3f65916e7590d56378153c22..ee174c262194112f126fb36c6c597470ca2bd3f5 100644
--- a/ui/events/test/event_generator.cc
+++ b/ui/events/test/event_generator.cc
@@ -279,6 +279,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);
}
« ui/events/test/event_generator.h ('K') | « ui/events/test/event_generator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698