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

Side by Side Diff: ash/system/chromeos/session/logout_confirmation_dialog.h

Issue 800983006: Update {virtual,override,final} to follow C++11 style in ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Workaround Created 5 years, 11 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 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 19
20 class LogoutConfirmationController; 20 class LogoutConfirmationController;
21 21
22 // 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
23 // 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
24 // choice is made before the countdown has expired. 24 // choice is made before the countdown has expired.
25 class LogoutConfirmationDialog : public views::DialogDelegateView { 25 class LogoutConfirmationDialog : public views::DialogDelegateView {
26 public: 26 public:
27 LogoutConfirmationDialog(LogoutConfirmationController* controller, 27 LogoutConfirmationDialog(LogoutConfirmationController* controller,
28 base::TimeTicks logout_time); 28 base::TimeTicks logout_time);
29 virtual ~LogoutConfirmationDialog(); 29 ~LogoutConfirmationDialog() override;
30 30
31 void Update(base::TimeTicks logout_time); 31 void Update(base::TimeTicks logout_time);
32 32
33 // views::DialogDelegateView: 33 // views::DialogDelegateView:
34 virtual bool Accept() override; 34 bool Accept() override;
35 virtual ui::ModalType GetModalType() const override; 35 ui::ModalType GetModalType() const override;
36 virtual base::string16 GetWindowTitle() const override; 36 base::string16 GetWindowTitle() const override;
37 virtual base::string16 GetDialogButtonLabel(ui::DialogButton button) const 37 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
38 override; 38 void OnClosed() override;
39 virtual void OnClosed() override; 39 void DeleteDelegate() override;
40 virtual void DeleteDelegate() override;
41 40
42 private: 41 private:
43 void UpdateLabel(); 42 void UpdateLabel();
44 43
45 LogoutConfirmationController* controller_; 44 LogoutConfirmationController* controller_;
46 base::TimeTicks logout_time_; 45 base::TimeTicks logout_time_;
47 46
48 views::Label* label_; 47 views::Label* label_;
49 48
50 base::RepeatingTimer<LogoutConfirmationDialog> update_timer_; 49 base::RepeatingTimer<LogoutConfirmationDialog> update_timer_;
51 50
52 DISALLOW_COPY_AND_ASSIGN(LogoutConfirmationDialog); 51 DISALLOW_COPY_AND_ASSIGN(LogoutConfirmationDialog);
53 }; 52 };
54 53
55 } // namespace ash 54 } // namespace ash
56 55
57 #endif // ASH_SYSTEM_CHROMEOS_SESSION_LOGOUT_CONFIRMATION_DIALOG_H_ 56 #endif // ASH_SYSTEM_CHROMEOS_SESSION_LOGOUT_CONFIRMATION_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698