| OLD | NEW |
| 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/common/login_status.h" |
| 9 #include "ash/common/system/tray/tray_background_view.h" | 10 #include "ash/common/system/tray/tray_background_view.h" |
| 10 #include "ash/system/chromeos/session/logout_button_observer.h" | 11 #include "ash/system/chromeos/session/logout_button_observer.h" |
| 11 #include "ash/system/user/login_status.h" | |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.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 |
| 22 class StatusAreaWidget; | 23 class StatusAreaWidget; |
| 23 | 24 |
| 24 // Adds a logout button to the launcher's status area if enabled by the | 25 // Adds a logout button to the launcher's status area if enabled by the |
| 25 // kShowLogoutButtonInTray pref. | 26 // kShowLogoutButtonInTray pref. |
| 26 class ASH_EXPORT LogoutButtonTray : public TrayBackgroundView, | 27 class ASH_EXPORT LogoutButtonTray : public TrayBackgroundView, |
| 27 public LogoutButtonObserver, | 28 public LogoutButtonObserver, |
| 28 public views::ButtonListener { | 29 public views::ButtonListener { |
| 29 public: | 30 public: |
| 30 explicit LogoutButtonTray(StatusAreaWidget* status_area_widget); | 31 explicit LogoutButtonTray(StatusAreaWidget* status_area_widget); |
| 31 ~LogoutButtonTray() override; | 32 ~LogoutButtonTray() override; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 52 LoginStatus login_status_; | 53 LoginStatus login_status_; |
| 53 bool show_logout_button_in_tray_; | 54 bool show_logout_button_in_tray_; |
| 54 base::TimeDelta dialog_duration_; | 55 base::TimeDelta dialog_duration_; |
| 55 | 56 |
| 56 DISALLOW_COPY_AND_ASSIGN(LogoutButtonTray); | 57 DISALLOW_COPY_AND_ASSIGN(LogoutButtonTray); |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 } // namespace ash | 60 } // namespace ash |
| 60 | 61 |
| 61 #endif // ASH_SYSTEM_CHROMEOS_SESSION_LOGOUT_BUTTON_TRAY_H_ | 62 #endif // ASH_SYSTEM_CHROMEOS_SESSION_LOGOUT_BUTTON_TRAY_H_ |
| OLD | NEW |