| Index: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
|
| ===================================================================
|
| --- ui/views/widget/desktop_aura/desktop_root_window_host_win.cc (revision 231601)
|
| +++ ui/views/widget/desktop_aura/desktop_root_window_host_win.cc (working copy)
|
| @@ -467,13 +467,17 @@
|
| }
|
|
|
| bool DesktopRootWindowHostWin::ConfineCursorToRootWindow() {
|
| - return false;
|
| + RECT window_rect = root_window_->GetBoundsInScreen().ToRECT();
|
| + ::ClipCursor(&window_rect);
|
| + return true;
|
| }
|
|
|
| void DesktopRootWindowHostWin::UnConfineCursor() {
|
| + ::ClipCursor(NULL);
|
| }
|
|
|
| void DesktopRootWindowHostWin::OnCursorVisibilityChanged(bool show) {
|
| + ::ShowCursor(!!show);
|
| }
|
|
|
| void DesktopRootWindowHostWin::MoveCursorTo(const gfx::Point& location) {
|
|
|