OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef ASH_SYSTEM_LOGOUT_BUTTON_LOGOUT_CONFIRMATION_DIALOG_VIEW_H_ | |
6 #define ASH_SYSTEM_LOGOUT_BUTTON_LOGOUT_CONFIRMATION_DIALOG_VIEW_H_ | |
7 | |
8 #include "base/timer/timer.h" | |
9 #include "ui/views/window/dialog_delegate.h" | |
10 | |
11 namespace views { | |
12 class Label; | |
bartfab (slow)
2013/10/24 13:11:02
Do not indent class declarations.
binjin
2013/10/25 13:03:10
Done.
| |
13 } | |
14 | |
15 namespace ash { | |
16 | |
17 namespace internal { | |
18 | |
19 class LogoutButtonTray; | |
20 | |
21 // dialog view class for logout confirmation | |
bartfab (slow)
2013/10/24 13:11:02
This should be a complete sentence, starting with
binjin
2013/10/25 13:03:10
Done.
| |
22 class LogoutConfirmationDialogView : public views::DialogDelegateView { | |
23 public: | |
24 | |
bartfab (slow)
2013/10/24 13:11:02
Remove blank line.
binjin
2013/10/25 13:03:10
Done.
| |
25 // views::DialogDelegateView: | |
26 virtual bool Accept(); | |
bartfab (slow)
2013/10/24 13:11:02
Add OVERRIDE.
binjin
2013/10/25 13:03:10
Done.
| |
27 virtual int GetDialogButtons() const OVERRIDE; | |
bartfab (slow)
2013/10/24 13:11:02
#include "base/compiler_specific.h"
binjin
2013/10/25 13:03:10
Done.
| |
28 virtual ui::ModalType GetModalType() const OVERRIDE; | |
29 virtual string16 GetWindowTitle() const OVERRIDE; | |
30 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; | |
31 | |
32 private: | |
33 | |
bartfab (slow)
2013/10/24 13:11:02
Remove blank line.
binjin
2013/10/25 13:03:10
Done.
| |
34 friend class LogoutButtonTray; | |
bartfab (slow)
2013/10/24 13:11:02
Make the methods public and remove the friend decl
binjin
2013/10/25 13:03:10
Done.
| |
35 | |
36 LogoutConfirmationDialogView(LogoutButtonTray *owner); | |
bartfab (slow)
2013/10/24 13:11:02
- Put the * on the data type, not the argument nam
binjin
2013/10/25 13:03:10
Done.
| |
37 virtual ~LogoutConfirmationDialogView(); | |
38 | |
39 void InitAndShow(); | |
40 | |
41 void Show(); | |
42 | |
43 void UpdateCountdown(); | |
44 | |
45 views::Label *display_label_; | |
bartfab (slow)
2013/10/24 13:11:02
Put the * on the data type, not the member name.
binjin
2013/10/25 13:03:10
Done.
| |
46 | |
47 base::Time countdown_end_time_; | |
bartfab (slow)
2013/10/24 13:11:02
- Use base::TimeTicks instead: base::Time changes
binjin
2013/10/25 13:03:10
Done.
| |
48 | |
49 base::RepeatingTimer<LogoutConfirmationDialogView> timer_; | |
50 | |
51 LogoutButtonTray *owner_; | |
bartfab (slow)
2013/10/24 13:11:02
Put the * on the data type, not the member name.
binjin
2013/10/25 13:03:10
Done.
| |
52 | |
53 DISALLOW_COPY_AND_ASSIGN(LogoutConfirmationDialogView); | |
bartfab (slow)
2013/10/24 13:11:02
#include "base/basictypes.h"
binjin
2013/10/25 13:03:10
Done.
| |
54 }; | |
55 | |
56 } // namespace internal | |
57 | |
58 } // namespace ash | |
59 | |
60 #endif // ASH_SYSTEM_LOGOUT_BUTTON_LOGOUT_CONFIRMATION_DIALOG_VIEW_H_ | |
bartfab (slow)
2013/10/24 13:11:02
Add blank line at end of file.
binjin
2013/10/25 13:03:10
Done.
| |
OLD | NEW |