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

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

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
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_BUTTON_TRAY_H_ 5 #ifndef ASH_SYSTEM_CHROMEOS_SESSION_LOGOUT_BUTTON_TRAY_H_
6 #define ASH_SYSTEM_CHROMEOS_SESSION_LOGOUT_BUTTON_TRAY_H_ 6 #define ASH_SYSTEM_CHROMEOS_SESSION_LOGOUT_BUTTON_TRAY_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/system/chromeos/session/logout_button_observer.h" 9 #include "ash/system/chromeos/session/logout_button_observer.h"
10 #include "ash/system/tray/tray_background_view.h" 10 #include "ash/system/tray/tray_background_view.h"
11 #include "ash/system/user/login_status.h" 11 #include "ash/system/user/login_status.h"
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "ui/views/controls/button/button.h" 15 #include "ui/views/controls/button/button.h"
16 16
17 namespace views { 17 namespace views {
18 class LabelButton; 18 class LabelButton;
19 } 19 }
20 20
21 namespace ash { 21 namespace ash {
22 namespace internal {
23
24 class StatusAreaWidget; 22 class StatusAreaWidget;
25 23
26 // Adds a logout button to the launcher's status area if enabled by the 24 // Adds a logout button to the launcher's status area if enabled by the
27 // kShowLogoutButtonInTray pref. 25 // kShowLogoutButtonInTray pref.
28 class ASH_EXPORT LogoutButtonTray : public TrayBackgroundView, 26 class ASH_EXPORT LogoutButtonTray : public TrayBackgroundView,
29 public LogoutButtonObserver, 27 public LogoutButtonObserver,
30 public views::ButtonListener { 28 public views::ButtonListener {
31 public: 29 public:
32 explicit LogoutButtonTray(StatusAreaWidget* status_area_widget); 30 explicit LogoutButtonTray(StatusAreaWidget* status_area_widget);
33 virtual ~LogoutButtonTray(); 31 virtual ~LogoutButtonTray();
(...skipping 19 matching lines...) Expand all
53 void UpdateVisibility(); 51 void UpdateVisibility();
54 52
55 views::LabelButton* button_; 53 views::LabelButton* button_;
56 user::LoginStatus login_status_; 54 user::LoginStatus login_status_;
57 bool show_logout_button_in_tray_; 55 bool show_logout_button_in_tray_;
58 base::TimeDelta dialog_duration_; 56 base::TimeDelta dialog_duration_;
59 57
60 DISALLOW_COPY_AND_ASSIGN(LogoutButtonTray); 58 DISALLOW_COPY_AND_ASSIGN(LogoutButtonTray);
61 }; 59 };
62 60
63 } // namespace internal
64 } // namespace ash 61 } // namespace ash
65 62
66 #endif // ASH_SYSTEM_CHROMEOS_SESSION_LOGOUT_BUTTON_TRAY_H_ 63 #endif // ASH_SYSTEM_CHROMEOS_SESSION_LOGOUT_BUTTON_TRAY_H_
OLDNEW
« no previous file with comments | « ash/system/chromeos/session/last_window_closed_logout_reminder.cc ('k') | ash/system/chromeos/session/logout_button_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698