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

Side by Side Diff: ash/system/logout_button/logout_confirmation_dialog_view.h

Issue 40053002: Implements the dialog view for logout button tray in public sessions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 2 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
(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.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698