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..4ea9bc8445531e812d84e6cc380344c7a8a51732 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,9 @@ class UIControlsDesktopX11 : public UIControlsAura { |
} |
aura::WindowTreeHost* host = root_window->GetHost(); |
- gfx::Point root_current_location; |
- host->QueryMouseLocation(&root_current_location); |
+ aura::WindowTreeHostTestApi host_test_api(host); |
+ gfx::Point root_current_location = |
+ host_test_api.last_cursor_request_position_in_host(); |
host->ConvertPointFromHost(&root_current_location); |
if (root_location != root_current_location && button_down_mask == 0) { |