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

Unified Diff: ui/aura/test/ui_controls_factory_aurawin.cc

Issue 162943004: [Refactor] Always pass in screen coordinates to UIControlsAura::SendMouseMove() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/test/ui_controls_factory_ash.cc ('k') | ui/aura/test/ui_controls_factory_aurax11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/ui_controls_factory_aurawin.cc
diff --git a/ui/aura/test/ui_controls_factory_aurawin.cc b/ui/aura/test/ui_controls_factory_aurawin.cc
index a9a2a8bdc5aed3139f65c916a3f1427385b7b082..2b2d6f6ae94273bc6ba5f3da58a2e836082aea3d 100644
--- a/ui/aura/test/ui_controls_factory_aurawin.cc
+++ b/ui/aura/test/ui_controls_factory_aurawin.cc
@@ -54,15 +54,13 @@ class UIControlsWin : public UIControlsAura {
native_window->GetDispatcher()->host()->GetAcceleratedWidget();
return SendKeyPressImpl(window, key, control, shift, alt, task);
}
- virtual bool SendMouseMove(long x, long y) {
- gfx::Point point(x, y);
- return SendMouseMoveImpl(point.x(), point.y(), base::Closure());
+ virtual bool SendMouseMove(long screen_x, long screen_y) {
+ return SendMouseMoveImpl(screen_x, screen_y, base::Closure());
}
- virtual bool SendMouseMoveNotifyWhenDone(long x,
- long y,
+ virtual bool SendMouseMoveNotifyWhenDone(long screen_x,
+ long screen_y,
const base::Closure& task) {
- gfx::Point point(x, y);
- return SendMouseMoveImpl(point.x(), point.y(), task);
+ return SendMouseMoveImpl(screen_x, screen_y, task);
}
virtual bool SendMouseEvents(MouseButton type, int state) {
return SendMouseEventsImpl(type, state, base::Closure());
« no previous file with comments | « ash/test/ui_controls_factory_ash.cc ('k') | ui/aura/test/ui_controls_factory_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698