| 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
|
|
|