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

Side by Side Diff: ash/test/test_session_state_delegate.h

Issue 15718003: Add SessionStateObserver with ActiveUserChanged() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge & add SessionStateDelegateChromeos Created 7 years, 6 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/user/tray_user_unittest.cc ('k') | ash/test/test_session_state_delegate.cc » ('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) 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_TEST_TEST_SESSION_STATE_DELEGATE_H_ 5 #ifndef ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_
6 #define ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ 6 #define ASH_TEST_TEST_SESSION_STATE_DELEGATE_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"
(...skipping 17 matching lines...) Expand all
28 virtual bool CanLockScreen() const OVERRIDE; 28 virtual bool CanLockScreen() const OVERRIDE;
29 virtual bool IsScreenLocked() const OVERRIDE; 29 virtual bool IsScreenLocked() const OVERRIDE;
30 virtual void LockScreen() OVERRIDE; 30 virtual void LockScreen() OVERRIDE;
31 virtual void UnlockScreen() OVERRIDE; 31 virtual void UnlockScreen() OVERRIDE;
32 virtual const base::string16 GetUserDisplayName( 32 virtual const base::string16 GetUserDisplayName(
33 ash::MultiProfileIndex index) const OVERRIDE; 33 ash::MultiProfileIndex index) const OVERRIDE;
34 virtual const std::string GetUserEmail( 34 virtual const std::string GetUserEmail(
35 ash::MultiProfileIndex index) const OVERRIDE; 35 ash::MultiProfileIndex index) const OVERRIDE;
36 virtual const gfx::ImageSkia& GetUserImage( 36 virtual const gfx::ImageSkia& GetUserImage(
37 ash::MultiProfileIndex index) const OVERRIDE; 37 ash::MultiProfileIndex index) const OVERRIDE;
38 virtual void GetLoggedInUsers(UserEmailList* users) OVERRIDE; 38 virtual void GetLoggedInUsers(UserIdList* users) OVERRIDE;
39 virtual void SwitchActiveUser(const std::string& email) OVERRIDE; 39 virtual void SwitchActiveUser(const std::string& email) OVERRIDE;
40 virtual void AddSessionStateObserver(
41 ash::SessionStateObserver* observer) OVERRIDE;
42 virtual void RemoveSessionStateObserver(
43 ash::SessionStateObserver* observer) OVERRIDE;
40 44
41 // Updates the internal state that indicates whether a session is in progress 45 // Updates the internal state that indicates whether a session is in progress
42 // and there is an active user. If |has_active_user| is |false|, 46 // and there is an active user. If |has_active_user| is |false|,
43 // |active_user_session_started_| is reset to |false| as well (see below for 47 // |active_user_session_started_| is reset to |false| as well (see below for
44 // the difference between these two flags). 48 // the difference between these two flags).
45 void SetHasActiveUser(bool has_active_user); 49 void SetHasActiveUser(bool has_active_user);
46 50
47 // Updates the internal state that indicates whether the session has been 51 // Updates the internal state that indicates whether the session has been
48 // fully started for the active user. If |active_user_session_started| is 52 // fully started for the active user. If |active_user_session_started| is
49 // |true|, |has_active_user_| is set to |true| as well (see below for the 53 // |true|, |has_active_user_| is set to |true| as well (see below for the
(...skipping 30 matching lines...) Expand all
80 // A test user image. 84 // A test user image.
81 gfx::ImageSkia null_image_; 85 gfx::ImageSkia null_image_;
82 86
83 DISALLOW_COPY_AND_ASSIGN(TestSessionStateDelegate); 87 DISALLOW_COPY_AND_ASSIGN(TestSessionStateDelegate);
84 }; 88 };
85 89
86 } // namespace test 90 } // namespace test
87 } // namespace ash 91 } // namespace ash
88 92
89 #endif // ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ 93 #endif // ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/system/user/tray_user_unittest.cc ('k') | ash/test/test_session_state_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698