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

Side by Side Diff: ash/system/tray/test_system_tray_delegate.h

Issue 14756019: Adding new user menu section to the SystemTrayMenu & refactoring of user access (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More windows breakages addressed Created 7 years, 7 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
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_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ 5 #ifndef ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_
6 #define ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ 6 #define ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_
7 7
8 #include "ash/system/tray/system_tray_delegate.h" 8 #include "ash/system/tray/system_tray_delegate.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 11
12 // TODO(oshima/stevenjb): Move this to ash/test. crbug.com/159693. 12 // TODO(oshima/stevenjb): Move this to ash/test. crbug.com/159693.
13 13
14 namespace ash { 14 namespace ash {
15 namespace test { 15 namespace test {
16 16
17 class TestSystemTrayDelegate : public SystemTrayDelegate { 17 class TestSystemTrayDelegate : public SystemTrayDelegate {
18 public: 18 public:
19 TestSystemTrayDelegate(); 19 TestSystemTrayDelegate();
20 20
21 virtual ~TestSystemTrayDelegate(); 21 virtual ~TestSystemTrayDelegate();
22 22
23 public: 23 public:
24 virtual void Initialize() OVERRIDE; 24 virtual void Initialize() OVERRIDE;
25 virtual void Shutdown() OVERRIDE; 25 virtual void Shutdown() OVERRIDE;
26 virtual bool GetTrayVisibilityOnStartup() OVERRIDE; 26 virtual bool GetTrayVisibilityOnStartup() OVERRIDE;
27 27
28 // Overridden from SystemTrayDelegate: 28 // Overridden from SystemTrayDelegate:
29 virtual const base::string16 GetUserDisplayName() const OVERRIDE;
30 virtual const std::string GetUserEmail() const OVERRIDE;
31 virtual const gfx::ImageSkia& GetUserImage() const OVERRIDE;
32 virtual user::LoginStatus GetUserLoginStatus() const OVERRIDE; 29 virtual user::LoginStatus GetUserLoginStatus() const OVERRIDE;
33 virtual bool IsOobeCompleted() const OVERRIDE; 30 virtual bool IsOobeCompleted() const OVERRIDE;
34 virtual void GetLoggedInUsers(UserEmailList* users) OVERRIDE;
35 virtual void SwitchActiveUser(const std::string& email) OVERRIDE;
36 virtual void ChangeProfilePicture() OVERRIDE; 31 virtual void ChangeProfilePicture() OVERRIDE;
37 virtual const std::string GetEnterpriseDomain() const OVERRIDE; 32 virtual const std::string GetEnterpriseDomain() const OVERRIDE;
38 virtual const base::string16 GetEnterpriseMessage() const OVERRIDE; 33 virtual const base::string16 GetEnterpriseMessage() const OVERRIDE;
39 virtual const std::string GetLocallyManagedUserManager() const OVERRIDE; 34 virtual const std::string GetLocallyManagedUserManager() const OVERRIDE;
40 virtual const base::string16 GetLocallyManagedUserMessage() const OVERRIDE; 35 virtual const base::string16 GetLocallyManagedUserMessage() const OVERRIDE;
41 virtual bool SystemShouldUpgrade() const OVERRIDE; 36 virtual bool SystemShouldUpgrade() const OVERRIDE;
42 virtual base::HourClockType GetHourClockType() const OVERRIDE; 37 virtual base::HourClockType GetHourClockType() const OVERRIDE;
43 virtual void ShowSettings() OVERRIDE; 38 virtual void ShowSettings() OVERRIDE;
44 virtual void ShowDateSettings() OVERRIDE; 39 virtual void ShowDateSettings() OVERRIDE;
45 virtual void ShowNetworkSettings() OVERRIDE; 40 virtual void ShowNetworkSettings() OVERRIDE;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 virtual int GetSystemTrayMenuWidth() OVERRIDE; 110 virtual int GetSystemTrayMenuWidth() OVERRIDE;
116 virtual base::string16 FormatTimeDuration( 111 virtual base::string16 FormatTimeDuration(
117 const base::TimeDelta& delta) const OVERRIDE; 112 const base::TimeDelta& delta) const OVERRIDE;
118 virtual void MaybeSpeak(const std::string& utterance) const OVERRIDE; 113 virtual void MaybeSpeak(const std::string& utterance) const OVERRIDE;
119 114
120 private: 115 private:
121 bool wifi_enabled_; 116 bool wifi_enabled_;
122 bool cellular_enabled_; 117 bool cellular_enabled_;
123 bool bluetooth_enabled_; 118 bool bluetooth_enabled_;
124 bool caps_lock_enabled_; 119 bool caps_lock_enabled_;
125 gfx::ImageSkia null_image_;
126 scoped_ptr<VolumeControlDelegate> volume_control_delegate_; 120 scoped_ptr<VolumeControlDelegate> volume_control_delegate_;
127 121
128 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate); 122 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate);
129 }; 123 };
130 124
131 } // namespace test 125 } // namespace test
132 } // namespace ash 126 } // namespace ash
133 127
134 #endif // ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ 128 #endif // ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698