| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SYSTEM_CHROMEOS_SESSION_LOGOUT_CONFIRMATION_DIALOG_H_ | 5 #ifndef ASH_SYSTEM_CHROMEOS_SESSION_LOGOUT_CONFIRMATION_DIALOG_H_ |
| 6 #define ASH_SYSTEM_CHROMEOS_SESSION_LOGOUT_CONFIRMATION_DIALOG_H_ | 6 #define ASH_SYSTEM_CHROMEOS_SESSION_LOGOUT_CONFIRMATION_DIALOG_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "base/timer/timer.h" | 11 #include "base/timer/timer.h" |
| 12 #include "ui/views/window/dialog_delegate.h" | 12 #include "ui/views/window/dialog_delegate.h" |
| 13 | 13 |
| 14 namespace views { | 14 namespace views { |
| 15 class Label; | 15 class Label; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace ash { | 18 namespace ash { |
| 19 namespace internal { | |
| 20 | 19 |
| 21 class LogoutConfirmationController; | 20 class LogoutConfirmationController; |
| 22 | 21 |
| 23 // A dialog that asks the user to confirm or deny logout. The dialog shows a | 22 // A dialog that asks the user to confirm or deny logout. The dialog shows a |
| 24 // countdown and informs the user that a logout will happen automatically if no | 23 // countdown and informs the user that a logout will happen automatically if no |
| 25 // choice is made before the countdown has expired. | 24 // choice is made before the countdown has expired. |
| 26 class LogoutConfirmationDialog : public views::DialogDelegateView { | 25 class LogoutConfirmationDialog : public views::DialogDelegateView { |
| 27 public: | 26 public: |
| 28 LogoutConfirmationDialog(LogoutConfirmationController* controller, | 27 LogoutConfirmationDialog(LogoutConfirmationController* controller, |
| 29 base::TimeTicks logout_time); | 28 base::TimeTicks logout_time); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 46 LogoutConfirmationController* controller_; | 45 LogoutConfirmationController* controller_; |
| 47 base::TimeTicks logout_time_; | 46 base::TimeTicks logout_time_; |
| 48 | 47 |
| 49 views::Label* label_; | 48 views::Label* label_; |
| 50 | 49 |
| 51 base::RepeatingTimer<LogoutConfirmationDialog> update_timer_; | 50 base::RepeatingTimer<LogoutConfirmationDialog> update_timer_; |
| 52 | 51 |
| 53 DISALLOW_COPY_AND_ASSIGN(LogoutConfirmationDialog); | 52 DISALLOW_COPY_AND_ASSIGN(LogoutConfirmationDialog); |
| 54 }; | 53 }; |
| 55 | 54 |
| 56 } // namespace internal | |
| 57 } // namespace ash | 55 } // namespace ash |
| 58 | 56 |
| 59 #endif // ASH_SYSTEM_CHROMEOS_SESSION_LOGOUT_CONFIRMATION_DIALOG_H_ | 57 #endif // ASH_SYSTEM_CHROMEOS_SESSION_LOGOUT_CONFIRMATION_DIALOG_H_ |
| OLD | NEW |