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..201179c5012f3168ebe8798287f6af317775ca01 100644 |
--- a/ui/aura/test/event_generator.h |
+++ b/ui/aura/test/event_generator.h |
@@ -36,6 +36,12 @@ class EventGenerator { |
virtual ~EventGenerator(); |
+ // Explicitly sets the location used by mouse/touch events. This is set by the |
+ // various methods that take a location but can be manipulated directly, |
+ // typically for touch. |
+ void set_current_location(const gfx::Point& location) { |
+ current_location_ = location; |
+ } |
const gfx::Point& current_location() const { return current_location_; } |
// Resets the event flags bitmask. |
@@ -90,6 +96,9 @@ class EventGenerator { |
// Generates a touch press event. |
void PressTouch(); |
+ // Generates a ET_TOUCH_MOVED event to |point|. |
+ void MoveTouch(const gfx::Point& point); |
+ |
// Generates a touch release event. |
void ReleaseTouch(); |