Chromium Code Reviews| Index: chrome/browser/ui/ash/palette_delegate_chromeos.cc |
| diff --git a/chrome/browser/ui/ash/palette_delegate_chromeos.cc b/chrome/browser/ui/ash/palette_delegate_chromeos.cc |
| index 0342a30c08b6f48a81a9f6cb3efed1d5a9b91b31..965a0a6f52c748543c0b98057b98b352a59d37fb 100644 |
| --- a/chrome/browser/ui/ash/palette_delegate_chromeos.cc |
| +++ b/chrome/browser/ui/ash/palette_delegate_chromeos.cc |
| @@ -4,10 +4,23 @@ |
| #include "chrome/browser/ui/ash/palette_delegate_chromeos.h" |
| +#include "ash/shell.h" |
| + |
| namespace chromeos { |
| PaletteDelegateChromeOS::PaletteDelegateChromeOS() {} |
| PaletteDelegateChromeOS::~PaletteDelegateChromeOS() {} |
| +void PaletteDelegateChromeOS::OnLaserModeEnabled() { |
| + // We lock the cursor after we hide it because it is always being updated by |
| + // compound_event_filter.cc to be shown on every mouse movement. |
|
jdufault
2016/08/12 19:58:00
Can you clarify "to be shown on every mouse moveme
sammiequon
2016/08/16 17:00:06
Done.
|
| + ash::Shell::GetInstance()->cursor_manager()->HideCursor(); |
| + ash::Shell::GetInstance()->cursor_manager()->LockCursor(); |
| +} |
| + |
| +void PaletteDelegateChromeOS::OnLaserModeDisabled() { |
| + ash::Shell::GetInstance()->cursor_manager()->UnlockCursor(); |
| + ash::Shell::GetInstance()->cursor_manager()->ShowCursor(); |
| +} |
| } // namespace chromeos |