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

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: . 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 795936143d65d4473a6b9730a393406631d38a18..88c547cbaa44fc8d02d63a47de9e59fc8e34558c 100644
--- a/ash/system/tray/system_tray_delegate.h
+++ b/ash/system/tray/system_tray_delegate.h
@@ -6,12 +6,19 @@
#define ASH_SYSTEM_SYSTEM_DELEGATE_H_
#pragma once
+class SkBitmap;
+
namespace ash {
class SystemTrayDelegate {
public:
virtual ~SystemTrayDelegate(){}
+ // Gets information about the logged in user.
+ virtual std::string GetUserName() = 0;
tfarina 2012/03/01 00:46:23 nit: could you make these three new methods const?
sadrul 2012/03/01 01:35:10 Done.
+ virtual 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