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

Unified Diff: ash/system/logout_button/logout_button_observer.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: minor fixes; use scoped_ptr; fix timer Created 7 years, 1 month 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_observer.h
diff --git a/ash/system/logout_button/logout_button_observer.h b/ash/system/logout_button/logout_button_observer.h
index 9234c7d758d9c80b13ab2526543ddc2a035655a1..1d1d721cdac421d864dc5a68566f406a1368830b 100644
--- a/ash/system/logout_button/logout_button_observer.h
+++ b/ash/system/logout_button/logout_button_observer.h
@@ -5,16 +5,24 @@
#ifndef ASH_SYSTEM_LOGOUT_BUTTON_LOGOUT_BUTTON_OBSERVER_H_
#define ASH_SYSTEM_LOGOUT_BUTTON_LOGOUT_BUTTON_OBSERVER_H_
+#include "base/time/time.h"
+
namespace ash {
-// Observer for the value of the kShowLogoutButtonInTray pref that determines
-// whether a logout button should be shown in the system tray during a session.
+// Observer for the values of the kShowLogoutButtonInTray pref and
bartfab (slow) 2013/11/20 18:00:44 Nit 1: s/pref// Nit 2: The reference to kShowLogo
+// kLogoutDialogDurationMs prefs. kShowLogoutButtonInTray determines whether a
+// logout button should be shown in the system tray during a session.
+// kLogoutDialogDurationMs is the duration in milliseconds of the logout
+// confirmation dialog after user pressed logout button.
class LogoutButtonObserver {
public:
virtual ~LogoutButtonObserver() {}
// Called when the value of the kShowLogoutButtonInTray pref changes.
virtual void OnShowLogoutButtonInTrayChanged(bool show) = 0;
+
+ // Called when the value of the kLogoutDialogDurationMs pref changes.
+ virtual void OnLogoutDialogDurationChanged(base::TimeDelta duration) = 0;
};
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698