Index: ui/views/test/ui_controls_factory_desktop_aurax11.cc |
diff --git a/ui/views/test/ui_controls_factory_desktop_aurax11.cc b/ui/views/test/ui_controls_factory_desktop_aurax11.cc |
index d574f6668b4d7a0285e8d3c48005d0c5aa6b3501..a7982bfbb100e6f960dc1f50dfad4c1d484c54ea 100644 |
--- a/ui/views/test/ui_controls_factory_desktop_aurax11.cc |
+++ b/ui/views/test/ui_controls_factory_desktop_aurax11.cc |
@@ -14,6 +14,7 @@ |
#include "base/logging.h" |
#include "ui/aura/client/screen_position_client.h" |
#include "ui/aura/env.h" |
+#include "ui/aura/test/aura_test_utils.h" |
#include "ui/aura/test/ui_controls_factory_aura.h" |
#include "ui/aura/window_event_dispatcher.h" |
#include "ui/base/test/ui_controls_aura.h" |
@@ -142,8 +143,8 @@ class UIControlsDesktopX11 : public UIControlsAura { |
} |
aura::WindowTreeHost* host = root_window->GetHost(); |
- gfx::Point root_current_location; |
- host->QueryMouseLocation(&root_current_location); |
+ gfx::Point root_current_location = |
+ aura::test::QueryLatestMousePositionRequestInHost(host); |
host->ConvertPointFromHost(&root_current_location); |
if (root_location != root_current_location && button_down_mask == 0) { |