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

Side by Side Diff: ash/session_state_delegate_stub.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: 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_SESSION_STATE_DELEGATE_STUB_H_ 5 #ifndef ASH_SESSION_STATE_DELEGATE_STUB_H_
6 #define ASH_SESSION_STATE_DELEGATE_STUB_H_ 6 #define ASH_SESSION_STATE_DELEGATE_STUB_H_
7 7
8 #include "ash/session_state_delegate.h" 8 #include "ash/session_state_delegate.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "ui/gfx/image/image_skia.h"
11 12
12 namespace ash { 13 namespace ash {
13 14
14 // Stub implementation of SessionStateDelegate for testing. 15 // Stub implementation of SessionStateDelegate for testing.
15 class SessionStateDelegateStub : public SessionStateDelegate { 16 class SessionStateDelegateStub : public SessionStateDelegate {
16 public: 17 public:
17 SessionStateDelegateStub(); 18 SessionStateDelegateStub();
18 virtual ~SessionStateDelegateStub(); 19 virtual ~SessionStateDelegateStub();
19 20
20 // SessionStateDelegate: 21 // SessionStateDelegate:
21 virtual bool HasActiveUser() const OVERRIDE; 22 virtual int NumberOfLoggedInUsers() const OVERRIDE;
22 virtual bool IsActiveUserSessionStarted() const OVERRIDE; 23 virtual bool IsActiveUserSessionStarted() const OVERRIDE;
23 virtual bool CanLockScreen() const OVERRIDE; 24 virtual bool CanLockScreen() const OVERRIDE;
24 virtual bool IsScreenLocked() const OVERRIDE; 25 virtual bool IsScreenLocked() const OVERRIDE;
25 virtual void LockScreen() OVERRIDE; 26 virtual void LockScreen() OVERRIDE;
26 virtual void UnlockScreen() OVERRIDE; 27 virtual void UnlockScreen() OVERRIDE;
28 virtual const base::string16 GetUserDisplayName(
29 ash::MultiProfileIndex index) const OVERRIDE;
30 virtual const std::string GetUserEmail(
31 ash::MultiProfileIndex index) const OVERRIDE;
32 virtual const gfx::ImageSkia& GetUserImage(
33 ash::MultiProfileIndex index) const OVERRIDE;
34 virtual void GetLoggedInUsers(UserEmailList* users) OVERRIDE;
35 virtual void SwitchActiveUser(const std::string& email) OVERRIDE;
27 36
28 private: 37 private:
29 bool screen_locked_; 38 bool screen_locked_;
30 39
40 // A pseudo user image.
41 gfx::ImageSkia null_image_;
42
31 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateStub); 43 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateStub);
32 }; 44 };
33 45
34 } // namespace ash 46 } // namespace ash
35 47
36 #endif // ASH_SESSION_STATE_DELEGATE_STUB_H_ 48 #endif // ASH_SESSION_STATE_DELEGATE_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698