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>. |