OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_UI_IDLE_LOGOUT_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_UI_IDLE_LOGOUT_DIALOG_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_UI_IDLE_LOGOUT_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_UI_IDLE_LOGOUT_DIALOG_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 void Show(); | 66 void Show(); |
67 void Close(); | 67 void Close(); |
68 | 68 |
69 void UpdateCountdown(); | 69 void UpdateCountdown(); |
70 | 70 |
71 // For testing. | 71 // For testing. |
72 static IdleLogoutDialogView* current_instance(); | 72 static IdleLogoutDialogView* current_instance(); |
73 static void set_settings_provider(IdleLogoutSettingsProvider* provider); | 73 static void set_settings_provider(IdleLogoutSettingsProvider* provider); |
74 | 74 |
75 views::Label* restart_label_; | 75 views::Label* restart_label_; |
| 76 views::Label* warning_label_; |
76 | 77 |
77 // Time at which the countdown is over and we should close the dialog. | 78 // Time at which the countdown is over and we should close the dialog. |
78 base::Time countdown_end_time_; | 79 base::Time countdown_end_time_; |
79 | 80 |
80 base::RepeatingTimer<IdleLogoutDialogView> timer_; | 81 base::RepeatingTimer<IdleLogoutDialogView> timer_; |
81 | 82 |
82 base::WeakPtrFactory<IdleLogoutDialogView> weak_ptr_factory_; | 83 base::WeakPtrFactory<IdleLogoutDialogView> weak_ptr_factory_; |
83 | 84 |
84 static IdleLogoutSettingsProvider* provider_; | 85 static IdleLogoutSettingsProvider* provider_; |
85 | 86 |
86 DISALLOW_COPY_AND_ASSIGN(IdleLogoutDialogView); | 87 DISALLOW_COPY_AND_ASSIGN(IdleLogoutDialogView); |
87 }; | 88 }; |
88 | 89 |
89 } // namespace chromeos | 90 } // namespace chromeos |
90 | 91 |
91 #endif // CHROME_BROWSER_CHROMEOS_UI_IDLE_LOGOUT_DIALOG_VIEW_H_ | 92 #endif // CHROME_BROWSER_CHROMEOS_UI_IDLE_LOGOUT_DIALOG_VIEW_H_ |
OLD | NEW |