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

Unified Diff: ui/views/test/ui_controls_factory_desktop_aurax11.cc

Issue 251743004: aura: Remove WindowTreeHost::QueryMouseLocation(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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
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) {

Powered by Google App Engine
This is Rietveld 408576698