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

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

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 | « components/exo/wayland/server.cc ('k') | ui/events/test/event_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/event_generator.h
diff --git a/ui/events/test/event_generator.h b/ui/events/test/event_generator.h
index c20dc79a8570363c0b1e539af36b561a230a8ec0..8d40e577ca47ddb829024a52486f4f44fcb146d2 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();
« no previous file with comments | « components/exo/wayland/server.cc ('k') | ui/events/test/event_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698