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

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

Issue 14293028: [CleanUp] Add MoveMouseToInHost to aura::test::EventGenerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 7 years, 8 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/display/display_manager_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 46fc8fff4d3a5485154d4212a1b32fa4ffd7f086..1256e1b819bc6d394253412dd9194b90cbb4cffa 100644
--- a/ui/aura/test/event_generator.h
+++ b/ui/aura/test/event_generator.h
@@ -111,10 +111,18 @@ class EventGenerator {
// Generates a right button release event.
void ReleaseRightButton();
- // Generates events to move mouse to be the given |point|.
- void MoveMouseTo(const gfx::Point& point, int count);
- void MoveMouseTo(const gfx::Point& point) {
- MoveMouseTo(point, 1);
+ // Generates events to move mouse to be the given |point| in the
+ // |current_root_window_|'s host window coordinates.
+ void MoveMouseToInHost(const gfx::Point& point_in_host);
+ void MoveMouseToInHost(int x, int y) {
+ MoveMouseToInHost(gfx::Point(x, y));
+ }
+
+ // Generates events to move mouse to be the given |point| in screen
+ // coordinates.
+ void MoveMouseTo(const gfx::Point& point_in_screen, int count);
+ void MoveMouseTo(const gfx::Point& point_in_screen) {
+ MoveMouseTo(point_in_screen, 1);
}
void MoveMouseTo(int x, int y) {
MoveMouseTo(gfx::Point(x, y));
« no previous file with comments | « ash/display/display_manager_unittest.cc ('k') | ui/aura/test/event_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698