| OLD | NEW |
| 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 <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 // Updates the internal state that indicates whether the session has been | 64 // Updates the internal state that indicates whether the session has been |
| 65 // fully started for the active user. If |active_user_session_started| is | 65 // fully started for the active user. If |active_user_session_started| is |
| 66 // |true|, |has_active_user_| is set to |true| as well (see below for the | 66 // |true|, |has_active_user_| is set to |true| as well (see below for the |
| 67 // difference between these two flags). | 67 // difference between these two flags). |
| 68 void SetActiveUserSessionStarted(bool active_user_session_started); | 68 void SetActiveUserSessionStarted(bool active_user_session_started); |
| 69 | 69 |
| 70 // Updates the internal state that indicates whether the screen can be locked. | 70 // Updates the internal state that indicates whether the screen can be locked. |
| 71 // Locking will only actually be allowed when this value is |true| and there | 71 // Locking will only actually be allowed when this value is |true| and there |
| 72 // is an active user. | 72 // is an active user. |
| 73 void SetCanLockScreen(bool can_lock_screen); | 73 static void SetCanLockScreen(bool can_lock_screen); |
| 74 | 74 |
| 75 // Updates |should_lock_screen_before_suspending_|. | 75 // Updates |should_lock_screen_before_suspending_|. |
| 76 void SetShouldLockScreenBeforeSuspending(bool should_lock); | 76 void SetShouldLockScreenBeforeSuspending(bool should_lock); |
| 77 | 77 |
| 78 // Updates the internal state that indicates whether user adding screen is | 78 // Updates the internal state that indicates whether user adding screen is |
| 79 // running now. | 79 // running now. |
| 80 void SetUserAddingScreenRunning(bool user_adding_screen_running); | 80 void SetUserAddingScreenRunning(bool user_adding_screen_running); |
| 81 | 81 |
| 82 // Setting non NULL image enables avatar icon. | 82 // Setting non NULL image enables avatar icon. |
| 83 void SetUserImage(const gfx::ImageSkia& user_image); | 83 void SetUserImage(const gfx::ImageSkia& user_image); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 113 // before the profile and browser UI are available. | 113 // before the profile and browser UI are available. |
| 114 SessionState session_state_; | 114 SessionState session_state_; |
| 115 | 115 |
| 116 DISALLOW_COPY_AND_ASSIGN(TestSessionStateDelegate); | 116 DISALLOW_COPY_AND_ASSIGN(TestSessionStateDelegate); |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace test | 119 } // namespace test |
| 120 } // namespace ash | 120 } // namespace ash |
| 121 | 121 |
| 122 #endif // ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ | 122 #endif // ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ |
| OLD | NEW |