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

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

Issue 2048443002: ABANDONED: mash: Move shell delegate interfaces to ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@moveshelfmodel
Patch Set: Created 4 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
« no previous file with comments | « ash/common/pointer_watcher_delegate.h ('k') | ash/common/session/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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_COMMON_SESSION_SESSION_STATE_DELEGATE_H_
6 #define ASH_SESSION_SESSION_STATE_DELEGATE_H_ 6 #define ASH_COMMON_SESSION_SESSION_STATE_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
11 #include "ash/session/session_types.h" 11 #include "ash/common/session/session_types.h"
12 12
13 class AccountId; 13 class AccountId;
14 14
15 namespace aura { 15 namespace aura {
16 class Window; 16 class Window;
sky 2016/06/06 23:29:09 Before you move this you need to remove the aura d
17 } 17 }
18 18
19 namespace gfx { 19 namespace gfx {
20 class ImageSkia; 20 class ImageSkia;
21 } 21 }
22 22
23 namespace user_manager { 23 namespace user_manager {
24 class UserInfo; 24 class UserInfo;
25 } 25 }
26 26
(...skipping 25 matching lines...) Expand all
52 52
53 // Inside user session (including lock screen), 53 // Inside user session (including lock screen),
54 // no login UI (primary or multi-profiles) is shown. 54 // no login UI (primary or multi-profiles) is shown.
55 SESSION_STATE_ACTIVE, 55 SESSION_STATE_ACTIVE,
56 56
57 // When secondary user login UI is shown i.e. other users are 57 // When secondary user login UI is shown i.e. other users are
58 // already logged in and is currently adding another user to the session. 58 // already logged in and is currently adding another user to the session.
59 SESSION_STATE_LOGIN_SECONDARY, 59 SESSION_STATE_LOGIN_SECONDARY,
60 }; 60 };
61 61
62 virtual ~SessionStateDelegate() {}; 62 virtual ~SessionStateDelegate() {};
sky 2016/06/06 23:29:09 nit: while you're here, nuke the ;
63 63
64 // Returns the maximum possible number of logged in users. 64 // Returns the maximum possible number of logged in users.
65 virtual int GetMaximumNumberOfLoggedInUsers() const = 0; 65 virtual int GetMaximumNumberOfLoggedInUsers() const = 0;
66 66
67 // Returns the number of signed in users. If 0 is returned, there is either 67 // Returns the number of signed in users. If 0 is returned, there is either
68 // no session in progress or no active user. 68 // no session in progress or no active user.
69 virtual int NumberOfLoggedInUsers() const = 0; 69 virtual int NumberOfLoggedInUsers() const = 0;
70 70
71 // Returns true if there is possible to add more users to multiprofile 71 // Returns true if there is possible to add more users to multiprofile
72 // session. Error is stored in |error| if it is not NULL and function 72 // session. Error is stored in |error| if it is not NULL and function
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 // Adds or removes sessions state observer. 129 // Adds or removes sessions state observer.
130 virtual void AddSessionStateObserver(SessionStateObserver* observer) = 0; 130 virtual void AddSessionStateObserver(SessionStateObserver* observer) = 0;
131 virtual void RemoveSessionStateObserver(SessionStateObserver* observer) = 0; 131 virtual void RemoveSessionStateObserver(SessionStateObserver* observer) = 0;
132 132
133 bool IsInSecondaryLoginScreen() const; 133 bool IsInSecondaryLoginScreen() const;
134 }; 134 };
135 135
136 } // namespace ash 136 } // namespace ash
137 137
138 #endif // ASH_SESSION_SESSION_STATE_DELEGATE_H_ 138 #endif // ASH_COMMON_SESSION_SESSION_STATE_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/common/pointer_watcher_delegate.h ('k') | ash/common/session/session_state_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698