Index: ash/system/logout_button/logout_button_tray.h |
diff --git a/ash/system/logout_button/logout_button_tray.h b/ash/system/logout_button/logout_button_tray.h |
index 5683e5e2654c13f52e1d2e9efe0a9403e91b9cf2..bbfc4a101242c9eac2c3cafdef73e2cdd4c1a3d3 100644 |
--- a/ash/system/logout_button/logout_button_tray.h |
+++ b/ash/system/logout_button/logout_button_tray.h |
@@ -10,6 +10,8 @@ |
#include "ash/system/user/login_status.h" |
#include "base/basictypes.h" |
#include "base/compiler_specific.h" |
+#include "base/memory/weak_ptr.h" |
+#include "base/time/time.h" |
#include "ui/views/controls/button/button.h" |
namespace views { |
@@ -20,6 +22,7 @@ namespace ash { |
namespace internal { |
class StatusAreaWidget; |
+class LogoutConfirmationDialogView; |
bartfab (slow)
2013/10/30 11:17:28
Nit: alphabetize
binjin
2013/11/19 14:43:46
Done.
|
// Adds a logout button to the launcher's status area if enabled by the |
// kShowLogoutButtonInTray pref. |
@@ -30,6 +33,9 @@ class LogoutButtonTray : public TrayBackgroundView, |
explicit LogoutButtonTray(StatusAreaWidget* status_area_widget); |
virtual ~LogoutButtonTray(); |
+ void EnsureConfirmationDialogIsShowing(); |
+ void EnsureConfirmationDialogIsClosed(); |
+ |
// TrayBackgroundView: |
virtual void SetShelfAlignment(ShelfAlignment alignment) OVERRIDE; |
virtual base::string16 GetAccessibleNameForTray() OVERRIDE; |
@@ -39,6 +45,7 @@ class LogoutButtonTray : public TrayBackgroundView, |
// LogoutButtonObserver: |
virtual void OnShowLogoutButtonInTrayChanged(bool show) OVERRIDE; |
+ virtual void OnLogoutDialogDurationChanged(int duration) OVERRIDE; |
// views::ButtonListener: |
virtual void ButtonPressed(views::Button* sender, |
@@ -52,6 +59,9 @@ class LogoutButtonTray : public TrayBackgroundView, |
views::LabelButton* button_; // Not owned. |
user::LoginStatus login_status_; |
bool show_logout_button_in_tray_; |
+ base::TimeDelta dialog_duration_; |
+ |
+ base::WeakPtr<LogoutConfirmationDialogView> confirmation_dialog_; |
bartfab (slow)
2013/10/30 11:17:28
This needs to be a scoped_ptr. Making the ownershi
binjin
2013/11/19 14:43:46
Done.
|
DISALLOW_COPY_AND_ASSIGN(LogoutButtonTray); |
}; |