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

Unified Diff: ui/aura/test/ui_controls_factory_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
« no previous file with comments | « ui/aura/test/aura_test_utils.cc ('k') | ui/aura/window_event_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « ui/aura/test/aura_test_utils.cc ('k') | ui/aura/window_event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698