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

Unified Diff: ui/aura/mus/window_tree_host_mus.cc

Issue 2918553003: Implement a MoveCursorToScreenLocation for just the window manager. (Closed)
Patch Set: Fix up a few comments. Created 3 years, 7 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/mus/window_tree_client.cc ('k') | ui/aura/mus/window_tree_host_mus_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_tree_host_mus.cc
diff --git a/ui/aura/mus/window_tree_host_mus.cc b/ui/aura/mus/window_tree_host_mus.cc
index 85cdf6a4dbffecb270771c8ea66f2d378295362c..e3d32ae33c7b66c8bb979457c971a9952cf764af 100644
--- a/ui/aura/mus/window_tree_host_mus.cc
+++ b/ui/aura/mus/window_tree_host_mus.cc
@@ -200,10 +200,11 @@ gfx::ICCProfile WindowTreeHostMus::GetICCProfileForCurrentDisplay() {
void WindowTreeHostMus::MoveCursorToScreenLocationInPixels(
const gfx::Point& location_in_pixels) {
- // TODO: this needs to message the server http://crbug.com/693340. Setting
- // the location is really only appropriate in tests, outside of tests this
- // value is ignored.
- NOTIMPLEMENTED();
+ gfx::Point dip_location = location_in_pixels;
+ ConvertScreenInPixelsToDIP(&dip_location);
riajiang 2017/06/01 21:27:30 EventDispatcher::SetMousePointerDisplayLocation ex
Elliot Glaysher 2017/06/01 22:05:23 Done, though I remain confused about when and wher
riajiang 2017/06/01 22:20:18 Event root_location has changed to be in pixels in
+ delegate_->OnWindowTreeHostMoveCursorToDisplayLocation(dip_location,
+ display_id_);
+
Env::GetInstance()->set_last_mouse_location(location_in_pixels);
}
« no previous file with comments | « ui/aura/mus/window_tree_client.cc ('k') | ui/aura/mus/window_tree_host_mus_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698