OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 class SkBitmap; |
| 10 |
9 namespace ash { | 11 namespace ash { |
10 | 12 |
11 class SystemTrayDelegate { | 13 class SystemTrayDelegate { |
12 public: | 14 public: |
13 virtual ~SystemTrayDelegate() {} | 15 virtual ~SystemTrayDelegate() {} |
14 | 16 |
| 17 // Gets information about the logged in user. |
| 18 virtual const std::string GetUserDisplayName() = 0; |
| 19 virtual const std::string GetUserEmail() = 0; |
| 20 virtual const SkBitmap& GetUserImage() = 0; |
| 21 |
15 // Shows settings. | 22 // Shows settings. |
16 virtual void ShowSettings() = 0; | 23 virtual void ShowSettings() = 0; |
17 | 24 |
18 // Shows help. | 25 // Shows help. |
19 virtual void ShowHelp() = 0; | 26 virtual void ShowHelp() = 0; |
20 | 27 |
21 // Is the system audio muted? | 28 // Is the system audio muted? |
22 virtual bool IsAudioMuted() const = 0; | 29 virtual bool IsAudioMuted() const = 0; |
23 | 30 |
24 // Mutes/Unmutes the audio system. | 31 // Mutes/Unmutes the audio system. |
25 virtual void SetAudioMuted(bool muted) = 0; | 32 virtual void SetAudioMuted(bool muted) = 0; |
26 | 33 |
27 // Gets the volume level. | 34 // Gets the volume level. |
28 virtual float GetVolumeLevel() const = 0; | 35 virtual float GetVolumeLevel() const = 0; |
29 | 36 |
30 // Sets the volume level. | 37 // Sets the volume level. |
31 virtual void SetVolumeLevel(float level) = 0; | 38 virtual void SetVolumeLevel(float level) = 0; |
| 39 |
| 40 // Attempts to shut down the system. |
| 41 virtual void ShutDown() = 0; |
| 42 |
| 43 // Attempts to sign out the user. |
| 44 virtual void SignOut() = 0; |
| 45 |
| 46 // Attempts to lock the screen. |
| 47 virtual void LockScreen() = 0; |
32 }; | 48 }; |
33 | 49 |
34 } // namespace ash | 50 } // namespace ash |
35 | 51 |
36 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 52 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
OLD | NEW |