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

Side by Side 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, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray_user.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_SYSTEM_DELEGATE_H_ 5 #ifndef ASH_SYSTEM_SYSTEM_DELEGATE_H_
6 #define ASH_SYSTEM_SYSTEM_DELEGATE_H_ 6 #define ASH_SYSTEM_SYSTEM_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 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.
19 virtual 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 muted? 28 // Is the system muted?
22 virtual bool AudioMuted() = 0; 29 virtual bool AudioMuted() = 0;
23 30
24 // Mutes/Unmutes the system. 31 // Mutes/Unmutes the system.
25 virtual void SetAudioMuted(bool muted) = 0; 32 virtual void SetAudioMuted(bool muted) = 0;
26 33
27 // Gets volume level. 34 // Gets volume level.
28 virtual float VolumeLevel() = 0; 35 virtual float VolumeLevel() = 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_SYSTEM_DELEGATE_H_ 52 #endif // ASH_SYSTEM_SYSTEM_DELEGATE_H_
OLDNEW
« 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