From 93c5873f5b657487f7166d2958f78b46a668600b Mon Sep 17 00:00:00 2001 From: jonross Date: Fri, 7 Nov 2014 06:45:23 -0800 Subject: Hide Mouse Cursor when entering Maximize Mode When disabling the touchpad also hide the cursor. TEST=Manual: place mouse in middle of screen, enter TouchView mode. BUG=429769 Review URL: https://codereview.chromium.org/707013003 Cr-Commit-Position: refs/heads/master@{#303234} --- ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ash/wm') diff --git a/ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc b/ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc index 4093e6e..6b14045 100644 --- a/ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc +++ b/ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc @@ -13,6 +13,7 @@ #include "ash/shell.h" #include "base/memory/scoped_ptr.h" #include "base/strings/string_util.h" +#include "ui/aura/client/cursor_client.h" #include "ui/aura/client/screen_position_client.h" #include "ui/aura/env.h" #include "ui/aura/window.h" @@ -83,6 +84,8 @@ ScopedDisableInternalMouseAndKeyboardX11:: if (device_name == kInternalTouchpadName) { touchpad_device_id_ = xi_dev_list[i].deviceid; device_data_manager->DisableDevice(touchpad_device_id_); + aura::client::GetCursorClient( + Shell::GetInstance()->GetPrimaryRootWindow())->HideCursor(); } else if (device_name == kInternalKeyboardName) { keyboard_device_id_ = xi_dev_list[i].deviceid; device_data_manager->DisableDevice(keyboard_device_id_); -- cgit v1.1