Chromium Code Reviews| 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 |