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

Unified Diff: ash/magnifier/magnification_controller_unittest.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
« no previous file with comments | « no previous file | ash/wm/ash_native_cursor_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/magnifier/magnification_controller_unittest.cc
diff --git a/ash/magnifier/magnification_controller_unittest.cc b/ash/magnifier/magnification_controller_unittest.cc
index 72edf410180b2d4d63d3bff1d4ddada2ce4c6091..54daf88eba900c9e15e8d22301b099305ec37adf 100644
--- a/ash/magnifier/magnification_controller_unittest.cc
+++ b/ash/magnifier/magnification_controller_unittest.cc
@@ -10,6 +10,7 @@
#include "base/strings/stringprintf.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/env.h"
+#include "ui/aura/test/aura_test_utils.h"
#include "ui/aura/test/event_generator.h"
#include "ui/aura/window_tree_host.h"
#include "ui/gfx/rect_conversions.h"
@@ -53,9 +54,10 @@ class MagnificationControllerTest: public test::AshTestBase {
}
std::string GetHostMouseLocation() {
- gfx::Point point;
- GetRootWindow()->GetHost()->QueryMouseLocation(&point);
- return point.ToString();
+ const gfx::Point& location =
+ aura::test::QueryLatestMousePositionRequestInHost(
+ GetRootWindow()->GetHost());
+ return location.ToString();
}
ash::MagnificationController* GetMagnificationController() const {
« no previous file with comments | « no previous file | ash/wm/ash_native_cursor_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698