Chromium Code Reviews| Index: ui/aura/root_window.cc |
| diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc |
| index 968a25ce6edd18ff3a3bcac12f54f85e287bc8aa..4b5ed44591a7de33f7397e959e6bb1bfba9baa49 100644 |
| --- a/ui/aura/root_window.cc |
| +++ b/ui/aura/root_window.cc |
| @@ -301,6 +301,21 @@ void RootWindow::MoveCursorTo(const gfx::Point& location_in_dip) { |
| } |
| } |
| +void RootWindow::MoveCursorToInHost(const gfx::Point& host_location) { |
|
oshima
2013/04/22 18:29:37
On second thought, MoveCursorToHostLoation is prob
yoshiki
2013/04/22 18:43:30
Done.
|
| + host_->MoveCursorTo(host_location); |
| + gfx::Point root_location(host_location); |
| + ConvertPointFromHost(&root_location); |
| + SetLastMouseLocation(this, root_location); |
| + client::CursorClient* cursor_client = client::GetCursorClient(this); |
| + if (cursor_client) { |
| + const gfx::Display& display = |
| + gfx::Screen::GetScreenFor(this)->GetDisplayNearestWindow(this); |
| + cursor_client->SetDisplay(display); |
| + } |
| + |
| + synthesize_mouse_move_ = false; |
| +} |
| + |
| bool RootWindow::ConfineCursorToWindow() { |
| // We would like to be able to confine the cursor to that window. However, |
| // currently, we do not have such functionality in X. So we just confine |