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

Unified Diff: ash/system/tray/system_tray_delegate.h

Issue 9561003: ash uber tray: Add a tray item for the user. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GetUserDisplayName instead of GetUserName Created 8 years, 10 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
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray_user.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray_delegate.h
diff --git a/ash/system/tray/system_tray_delegate.h b/ash/system/tray/system_tray_delegate.h
index 1dd44bbccdec2dcf85c91c0ed4c103dfa5a8986c..0c00325cdfc770c52c22b5a328b7d9bacbe77aef 100644
--- a/ash/system/tray/system_tray_delegate.h
+++ b/ash/system/tray/system_tray_delegate.h
@@ -6,12 +6,19 @@
#define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
#pragma once
+class SkBitmap;
+
namespace ash {
class SystemTrayDelegate {
public:
virtual ~SystemTrayDelegate() {}
+ // Gets information about the logged in user.
+ virtual const std::string GetUserDisplayName() = 0;
+ virtual const std::string GetUserEmail() = 0;
+ virtual const SkBitmap& GetUserImage() = 0;
+
// Shows settings.
virtual void ShowSettings() = 0;
@@ -29,6 +36,15 @@ class SystemTrayDelegate {
// Sets the volume level.
virtual void SetVolumeLevel(float level) = 0;
+
+ // Attempts to shut down the system.
+ virtual void ShutDown() = 0;
+
+ // Attempts to sign out the user.
+ virtual void SignOut() = 0;
+
+ // Attempts to lock the screen.
+ virtual void LockScreen() = 0;
};
} // namespace ash
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray_user.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698