| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_WM_LOCK_STATE_CONTROLLER_H_ | 5 #ifndef ASH_WM_LOCK_STATE_CONTROLLER_H_ |
| 6 #define ASH_WM_LOCK_STATE_CONTROLLER_H_ | 6 #define ASH_WM_LOCK_STATE_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/shell_observer.h" | 9 #include "ash/shell_observer.h" |
| 10 #include "ash/wm/lock_state_observer.h" | 10 #include "ash/wm/lock_state_observer.h" |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 // Indicates that lock animation can be undone. | 305 // Indicates that lock animation can be undone. |
| 306 bool can_cancel_lock_animation_; | 306 bool can_cancel_lock_animation_; |
| 307 | 307 |
| 308 scoped_ptr<UnlockedStateProperties> unlocked_properties_; | 308 scoped_ptr<UnlockedStateProperties> unlocked_properties_; |
| 309 | 309 |
| 310 // How long has it been since the request to lock the screen? | 310 // How long has it been since the request to lock the screen? |
| 311 scoped_ptr<base::ElapsedTimer> lock_duration_timer_; | 311 scoped_ptr<base::ElapsedTimer> lock_duration_timer_; |
| 312 | 312 |
| 313 // Started when we request that the screen be locked. When it fires, we | 313 // Started when we request that the screen be locked. When it fires, we |
| 314 // assume that our request got dropped. | 314 // assume that our request got dropped. |
| 315 base::OneShotTimer<LockStateController> lock_fail_timer_; | 315 base::OneShotTimer lock_fail_timer_; |
| 316 | 316 |
| 317 // Started when the screen is locked while the power button is held. Adds a | 317 // Started when the screen is locked while the power button is held. Adds a |
| 318 // delay between the appearance of the lock screen and the beginning of the | 318 // delay between the appearance of the lock screen and the beginning of the |
| 319 // pre-shutdown animation. | 319 // pre-shutdown animation. |
| 320 base::OneShotTimer<LockStateController> lock_to_shutdown_timer_; | 320 base::OneShotTimer lock_to_shutdown_timer_; |
| 321 | 321 |
| 322 // Started when we begin displaying the pre-shutdown animation. When it | 322 // Started when we begin displaying the pre-shutdown animation. When it |
| 323 // fires, we start the shutdown animation and get ready to request shutdown. | 323 // fires, we start the shutdown animation and get ready to request shutdown. |
| 324 base::OneShotTimer<LockStateController> pre_shutdown_timer_; | 324 base::OneShotTimer pre_shutdown_timer_; |
| 325 | 325 |
| 326 // Started when we display the shutdown animation. When it fires, we actually | 326 // Started when we display the shutdown animation. When it fires, we actually |
| 327 // request shutdown. Gives the animation time to complete before Chrome, X, | 327 // request shutdown. Gives the animation time to complete before Chrome, X, |
| 328 // etc. are shut down. | 328 // etc. are shut down. |
| 329 base::OneShotTimer<LockStateController> real_shutdown_timer_; | 329 base::OneShotTimer real_shutdown_timer_; |
| 330 | 330 |
| 331 base::Closure lock_screen_displayed_callback_; | 331 base::Closure lock_screen_displayed_callback_; |
| 332 | 332 |
| 333 base::WeakPtrFactory<LockStateController> weak_ptr_factory_; | 333 base::WeakPtrFactory<LockStateController> weak_ptr_factory_; |
| 334 | 334 |
| 335 DISALLOW_COPY_AND_ASSIGN(LockStateController); | 335 DISALLOW_COPY_AND_ASSIGN(LockStateController); |
| 336 }; | 336 }; |
| 337 | 337 |
| 338 } // namespace ash | 338 } // namespace ash |
| 339 | 339 |
| 340 #endif // ASH_WM_LOCK_STATE_CONTROLLER_H_ | 340 #endif // ASH_WM_LOCK_STATE_CONTROLLER_H_ |
| OLD | NEW |