Index: ui/aura/test/ui_controls_factory_aurax11.cc |
diff --git a/ui/aura/test/ui_controls_factory_aurax11.cc b/ui/aura/test/ui_controls_factory_aurax11.cc |
index 1bfe1065f11e58548969cc544904db519b38aace..b7be2389a2efca6a21e778ebadbc2821ba119fa3 100644 |
--- a/ui/aura/test/ui_controls_factory_aurax11.cc |
+++ b/ui/aura/test/ui_controls_factory_aurax11.cc |
@@ -9,6 +9,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.h" |
#include "ui/aura/window_tree_host.h" |
@@ -110,7 +111,9 @@ class UIControlsX11 : public UIControlsAura { |
&root_location); |
} |
gfx::Point root_current_location; |
- host_->QueryMouseLocation(&root_current_location); |
+ WindowTreeHostTestApi host_test_api(host_); |
sky
2014/04/25 22:46:19
How about a static function that does all this? It
sadrul
2014/04/26 01:34:58
Done. (moved WindowTreeHostTestApi into the cc fil
|
+ 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) { |