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

Unified Diff: ash/system/logout_button/logout_button_tray.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 side-by-side diff with in-line comments
Download patch
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..f0617f04002e028e781c0a955438c825e435cabd 100644
--- a/ash/system/logout_button/logout_button_tray.h
+++ b/ash/system/logout_button/logout_button_tray.h
@@ -20,6 +20,7 @@ namespace ash {
namespace internal {
class StatusAreaWidget;
+class LogoutConfirmationDialogView;
// Adds a logout button to the launcher's status area if enabled by the
// kShowLogoutButtonInTray pref.
@@ -30,6 +31,10 @@ class LogoutButtonTray : public TrayBackgroundView,
explicit LogoutButtonTray(StatusAreaWidget* status_area_widget);
virtual ~LogoutButtonTray();
+ void ShowConfirmDialog();
bartfab (slow) 2013/10/24 13:11:02 - Here and elsewhere: s/confirm/confirmation/ - Al
binjin 2013/10/25 13:03:10 They are supposed to be accessed by LogoutConfirma
+ void CloseConfirmDialog();
+ void RemoveConfirmDialogInstance(LogoutConfirmationDialogView *instance);
+
// TrayBackgroundView:
virtual void SetShelfAlignment(ShelfAlignment alignment) OVERRIDE;
virtual base::string16 GetAccessibleNameForTray() OVERRIDE;
@@ -53,6 +58,8 @@ class LogoutButtonTray : public TrayBackgroundView,
user::LoginStatus login_status_;
bool show_logout_button_in_tray_;
+ LogoutConfirmationDialogView* confirm_dialog_;
bartfab (slow) 2013/10/24 13:11:02 As commented in logout_confirmation_dialog_view.cc
binjin 2013/10/25 13:03:10 Done.
+
DISALLOW_COPY_AND_ASSIGN(LogoutButtonTray);
};

Powered by Google App Engine
This is Rietveld 408576698