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

Side by Side Diff: ash/session/session_state_delegate.h

Issue 783663003: Special check on Supervised User creation flow added to prevent misleading shelf alignment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | ash/shelf/shelf_layout_manager.cc » ('j') | ash/shelf/shelf_layout_manager.cc » ('J')
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_SESSION_SESSION_STATE_DELEGATE_H_ 5 #ifndef ASH_SESSION_SESSION_STATE_DELEGATE_H_
6 #define ASH_SESSION_SESSION_STATE_DELEGATE_H_ 6 #define ASH_SESSION_SESSION_STATE_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 virtual void LockScreen() = 0; 113 virtual void LockScreen() = 0;
114 114
115 // Unlocks the screen. 115 // Unlocks the screen.
116 virtual void UnlockScreen() = 0; 116 virtual void UnlockScreen() = 0;
117 117
118 // Returns |true| if user session blocked by some overlying UI. It can be 118 // Returns |true| if user session blocked by some overlying UI. It can be
119 // login screen, lock screen or screen for adding users into multi-profile 119 // login screen, lock screen or screen for adding users into multi-profile
120 // session. 120 // session.
121 virtual bool IsUserSessionBlocked() const = 0; 121 virtual bool IsUserSessionBlocked() const = 0;
122 122
123 // Returns true if at any Supervised User creation screen.
124 virtual bool IsInSupervisedUserCreationFlow() const = 0;
125
126 virtual void SetIsInSupervisedUserCreationFlow(bool is_in_flow) = 0;
127
123 // Returns current session state. 128 // Returns current session state.
124 virtual SessionState GetSessionState() const = 0; 129 virtual SessionState GetSessionState() const = 0;
125 130
126 // TODO(oshima): consolidate these two GetUserInfo. 131 // TODO(oshima): consolidate these two GetUserInfo.
127 132
128 // Gets the user info for the user with the given |index|. 133 // Gets the user info for the user with the given |index|.
129 // Note that |index| can at maximum be |NumberOfLoggedInUsers() - 1|. 134 // Note that |index| can at maximum be |NumberOfLoggedInUsers() - 1|.
130 virtual const user_manager::UserInfo* GetUserInfo( 135 virtual const user_manager::UserInfo* GetUserInfo(
131 MultiProfileIndex index) const = 0; 136 MultiProfileIndex index) const = 0;
132 137
(...skipping 18 matching lines...) Expand all
151 // Adds or removes sessions state observer. 156 // Adds or removes sessions state observer.
152 virtual void AddSessionStateObserver(SessionStateObserver* observer) = 0; 157 virtual void AddSessionStateObserver(SessionStateObserver* observer) = 0;
153 virtual void RemoveSessionStateObserver(SessionStateObserver* observer) = 0; 158 virtual void RemoveSessionStateObserver(SessionStateObserver* observer) = 0;
154 159
155 bool IsInSecondaryLoginScreen() const; 160 bool IsInSecondaryLoginScreen() const;
156 }; 161 };
157 162
158 } // namespace ash 163 } // namespace ash
159 164
160 #endif // ASH_SESSION_SESSION_STATE_DELEGATE_H_ 165 #endif // ASH_SESSION_SESSION_STATE_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | ash/shelf/shelf_layout_manager.cc » ('j') | ash/shelf/shelf_layout_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698