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

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

Issue 357323002: Tray elements behave appropriately on the multiple signin screen (more like lock screen) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed comments Created 6 years, 4 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
« no previous file with comments | « no previous file | ash/system/bluetooth/tray_bluetooth.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_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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // (if that user has already signed in). 130 // (if that user has already signed in).
131 virtual void SwitchActiveUser(const std::string& user_id) = 0; 131 virtual void SwitchActiveUser(const std::string& user_id) = 0;
132 132
133 // Switches the active user to the next or previous user, with the same 133 // Switches the active user to the next or previous user, with the same
134 // ordering as GetLoggedInUsers. 134 // ordering as GetLoggedInUsers.
135 virtual void CycleActiveUser(CycleUser cycle_user) = 0; 135 virtual void CycleActiveUser(CycleUser cycle_user) = 0;
136 136
137 // Adds or removes sessions state observer. 137 // Adds or removes sessions state observer.
138 virtual void AddSessionStateObserver(SessionStateObserver* observer) = 0; 138 virtual void AddSessionStateObserver(SessionStateObserver* observer) = 0;
139 virtual void RemoveSessionStateObserver(SessionStateObserver* observer) = 0; 139 virtual void RemoveSessionStateObserver(SessionStateObserver* observer) = 0;
140
141 bool IsInSecondaryLoginScreen() const {
oshima 2014/08/06 19:47:41 move this to (new) .cc (preferred). I'm fine to mo
Roman Sorokin (ftl) 2014/08/07 12:45:55 Done.
142 return GetSessionState() ==
143 ash::SessionStateDelegate::SESSION_STATE_LOGIN_SECONDARY;
144 }
140 }; 145 };
141 146
142 } // namespace ash 147 } // namespace ash
143 148
144 #endif // ASH_SESSION_SESSION_STATE_DELEGATE_H_ 149 #endif // ASH_SESSION_SESSION_STATE_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | ash/system/bluetooth/tray_bluetooth.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698