Commit 490ebe11 authored by antrim@chromium.org's avatar antrim@chromium.org

Hide cursor upon lock animation

BUG=173944


Review URL: https://chromiumcodereview.appspot.com/13637009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192979 0039d316-1c4b-4281-b951-d872f2087c98
parent f282ad0d
......@@ -263,6 +263,7 @@ void SessionStateControllerImpl2::CancelShutdownAnimation() {
shutdown_after_lock_ = false;
return;
}
animator_->StartGlobalAnimation(
internal::SessionStateAnimator::ANIMATION_UNDO_GRAYSCALE_BRIGHTNESS,
internal::SessionStateAnimator::ANIMATION_SPEED_REVERT_SHUTDOWN);
......@@ -311,6 +312,11 @@ void SessionStateControllerImpl2::OnLockToShutdownTimeout() {
}
void SessionStateControllerImpl2::StartCancellableShutdownAnimation() {
Shell* shell = ash::Shell::GetInstance();
// Hide cursor, but let it reappear if the mouse moves.
shell->env_filter()->set_cursor_hidden_by_filter(true);
shell->cursor_manager()->HideCursor();
animator_->StartGlobalAnimation(
internal::SessionStateAnimator::ANIMATION_GRAYSCALE_BRIGHTNESS,
internal::SessionStateAnimator::ANIMATION_SPEED_SHUTDOWN);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment