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

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

Issue 10823218: ash: Add some test coverage for WM gestures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: doc Created 8 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 | « ash/wm/system_gesture_event_filter_unittest.cc ('k') | ui/aura/test/event_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/event_generator.h
diff --git a/ui/aura/test/event_generator.h b/ui/aura/test/event_generator.h
index 0a4ad7d2e53d50c6731b7060c41e922a85f2c698..8ce97aadd7625719e8893688628cece32239c536 100644
--- a/ui/aura/test/event_generator.h
+++ b/ui/aura/test/event_generator.h
@@ -129,6 +129,20 @@ class EventGenerator {
const base::TimeDelta& duration,
int steps);
+ // Generates press, move, release touch-events to generate a sequence of
+ // multi-finger scroll events. |count| specifies the number of touch-points
+ // that should generate the scroll events. |start| are the starting positions
+ // of all the touch points. |steps| and |event_separation_time_ms| are
+ // relevant when testing velocity/fling/swipe, otherwise these can be any
+ // non-zero value. |delta_x| and |delta_y| are the amount that each finger
+ // should be moved.
+ void GestureMultiFingerScroll(int count,
+ const gfx::Point* start,
+ int event_separation_time_ms,
+ int steps,
+ int move_x,
+ int move_y);
+
// Generates a key press event. On platforms except Windows and X11, a key
// event without native_event() is generated. Note that ui::EF_ flags should
// be passed as |flags|, not the native ones like 'ShiftMask' in <X11/X.h>.
« no previous file with comments | « ash/wm/system_gesture_event_filter_unittest.cc ('k') | ui/aura/test/event_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698