diff options
Diffstat (limited to 'ui/aura/test/event_generator.h')
-rw-r--r-- | ui/aura/test/event_generator.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/ui/aura/test/event_generator.h b/ui/aura/test/event_generator.h index 7859010..94bdfdaf 100644 --- a/ui/aura/test/event_generator.h +++ b/ui/aura/test/event_generator.h @@ -47,12 +47,21 @@ class EventGenerator { void DoubleClickLeftButton(); // Generates events to move mouse to be the given |point|. - void MoveMouseTo(const gfx::Point& point); - + void MoveMouseTo(const gfx::Point& point, int count); + void MoveMouseTo(const gfx::Point& point) { + MoveMouseTo(point, 1); + } void MoveMouseTo(int x, int y) { MoveMouseTo(gfx::Point(x, y)); } + // Generates events to move mouse to be the given |point| in |window|'s + // coordinates. + void MoveMouseRelativeTo(const Window* window, const gfx::Point& point); + void MoveMouseRelativeTo(const Window* window, int x, int y) { + MoveMouseRelativeTo(window, gfx::Point(x, y)); + } + void MoveMouseBy(int x, int y) { MoveMouseTo(current_location_.Add(gfx::Point(x, y))); } |