Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Side by Side Diff: ash/wm/lock_state_controller.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ash/wm/immersive_fullscreen_controller.h ('k') | ash/wm/system_gesture_event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698