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

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

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
Index: ui/events/test/event_generator.h
diff --git a/ui/events/test/event_generator.h b/ui/events/test/event_generator.h
index afa2e50e771be98d29bee6e519df59f4fec9f481..d205fa186284478b19ef7018f70b8314eeb90943 100644
--- a/ui/events/test/event_generator.h
+++ b/ui/events/test/event_generator.h
@@ -239,6 +239,17 @@ class EventGenerator {
// Set radius of touch PointerDetails.
void SetTouchRadius(float x, float y);
+ // Set tilt of touch PointerDetails.
+ void SetTouchTilt(float x, float y);
+
+ // Set pointer type of touch PointerDetails.
+ void SetTouchPointerType(ui::EventPointerType type) {
+ touch_pointer_details_.pointer_type = type;
+ }
+
+ // Set force of touch PointerDetails.
+ void SetTouchForce(float force) { touch_pointer_details_.force = force; }
+
// Generates a touch press event.
void PressTouch();

Powered by Google App Engine
This is Rietveld 408576698