summaryrefslogtreecommitdiff
path: root/chromium/ash/system/logout_button/logout_button_observer.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ash/system/logout_button/logout_button_observer.h')
-rw-r--r--chromium/ash/system/logout_button/logout_button_observer.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/chromium/ash/system/logout_button/logout_button_observer.h b/chromium/ash/system/logout_button/logout_button_observer.h
new file mode 100644
index 00000000000..9234c7d758d
--- /dev/null
+++ b/chromium/ash/system/logout_button/logout_button_observer.h
@@ -0,0 +1,22 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_SYSTEM_LOGOUT_BUTTON_LOGOUT_BUTTON_OBSERVER_H_
+#define ASH_SYSTEM_LOGOUT_BUTTON_LOGOUT_BUTTON_OBSERVER_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.
+class LogoutButtonObserver {
+ public:
+ virtual ~LogoutButtonObserver() {}
+
+ // Called when the value of the kShowLogoutButtonInTray pref changes.
+ virtual void OnShowLogoutButtonInTrayChanged(bool show) = 0;
+};
+
+} // namespace ash
+
+#endif // ASH_SYSTEM_LOGOUT_BUTTON_LOGOUT_BUTTON_OBSERVER_H_