| 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 9e74b3cb72b0853c873bedc748170b5dc54cf732..8400fe849416b9be3569625ce00bdf67e2d7a014 100644
|
| --- a/chrome/browser/ui/ash/palette_delegate_chromeos.cc
|
| +++ b/chrome/browser/ui/ash/palette_delegate_chromeos.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "chrome/browser/ui/ash/palette_delegate_chromeos.h"
|
|
|
| +#include "ash/shell.h"
|
| #include "chrome/browser/chromeos/note_taking_app_utils.h"
|
| #include "chrome/browser/profiles/profile_manager.h"
|
|
|
| @@ -28,4 +29,15 @@ bool PaletteDelegateChromeOS::HasNoteApp() {
|
| return chromeos::IsNoteTakingAppAvailable(GetProfile());
|
| }
|
|
|
| +void PaletteDelegateChromeOS::OnLaserPointerEnabled() {
|
| + // We lock the cursor after we hide it because compound_event_filter.cc will
|
| + // attempt to call ShowCursor every time it recieves a mouse event.
|
| + ash::Shell::GetInstance()->cursor_manager()->HideCursor();
|
| + ash::Shell::GetInstance()->cursor_manager()->LockCursor();
|
| +}
|
| +
|
| +void PaletteDelegateChromeOS::OnLaserPointerDisabled() {
|
| + ash::Shell::GetInstance()->cursor_manager()->UnlockCursor();
|
| + ash::Shell::GetInstance()->cursor_manager()->ShowCursor();
|
| +}
|
| } // namespace chromeos
|
|
|