Chromium Code Reviews| 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..5e60905d5d1ed4472219b716b4076597c99e40cd 100644 |
| --- a/ui/aura/mus/window_tree_host_mus.cc |
| +++ b/ui/aura/mus/window_tree_host_mus.cc |
| @@ -200,10 +200,12 @@ 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 screen_location_in_pixels = location_in_pixels; |
| + gfx::Point location = GetLocationOnScreenInPixels(); |
|
sky
2017/06/01 22:13:20
I'm confused, all the calculations here are in pix
Elliot Glaysher
2017/06/01 23:05:42
This was me not changing variable names after Ria'
|
| + screen_location_in_pixels.Offset(-location.x(), -location.y()); |
| + delegate_->OnWindowTreeHostMoveCursorToDisplayLocation( |
| + screen_location_in_pixels, display_id_); |
| + |
| Env::GetInstance()->set_last_mouse_location(location_in_pixels); |
| } |