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 8a1d2648402f454cc4d27e4854000475f7b33b04..4ccfc3ea8c92a8d95d8dd1a05f79e9c77fa77b33 100644 |
--- a/chrome/browser/ui/ash/palette_delegate_chromeos.cc |
+++ b/chrome/browser/ui/ash/palette_delegate_chromeos.cc |
@@ -172,4 +172,15 @@ void PaletteDelegateChromeOS::OnStylusStateChanged(ui::StylusState state) { |
on_stylus_state_changed_.Run(state); |
} |
+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 |