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

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

Issue 2545723003: ash: Add SessionController/Client mojo interfaces (Closed)
Patch Set: rebase, use ash_util::GetAshServiceName Created 4 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 | « ash/common/session/session_controller_unittest.cc ('k') | ash/common/wm_shell.h » ('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_COMMON_SESSION_SESSION_STATE_DELEGATE_H_ 5 #ifndef ASH_COMMON_SESSION_SESSION_STATE_DELEGATE_H_
6 #define ASH_COMMON_SESSION_SESSION_STATE_DELEGATE_H_ 6 #define ASH_COMMON_SESSION_SESSION_STATE_DELEGATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/public/cpp/session_types.h" 9 #include "ash/public/cpp/session_types.h"
10 #include "components/session_manager/session_manager_types.h" 10 #include "components/session_manager/session_manager_types.h"
11 11
12 class AccountId; 12 class AccountId;
13 13
14 namespace gfx { 14 namespace gfx {
15 class ImageSkia; 15 class ImageSkia;
16 } 16 }
17 17
18 namespace user_manager { 18 namespace user_manager {
19 class UserInfo; 19 class UserInfo;
20 } 20 }
21 21
22 namespace ash { 22 namespace ash {
23 23
24 class SessionStateObserver; 24 class SessionStateObserver;
25 class WmWindow; 25 class WmWindow;
26 26
27 // Delegate for checking and modifying the session state. 27 // Delegate for checking and modifying the session state.
28 // DEPRECATED in favor of SessionController/SessionControllerClient for mash.
29 // TODO(xiyuan): Remove this when SessionController etc are ready.
28 class ASH_EXPORT SessionStateDelegate { 30 class ASH_EXPORT SessionStateDelegate {
29 public: 31 public:
30 // Defines the cycle direction for |CycleActiveUser|. 32 // Defines the cycle direction for |CycleActiveUser|.
31 enum CycleUser { 33 enum CycleUser {
32 CYCLE_TO_NEXT_USER = 0, // Cycle to the next user. 34 CYCLE_TO_NEXT_USER = 0, // Cycle to the next user.
33 CYCLE_TO_PREVIOUS_USER, // Cycle to the previous user. 35 CYCLE_TO_PREVIOUS_USER, // Cycle to the previous user.
34 }; 36 };
35 37
36 virtual ~SessionStateDelegate() {} 38 virtual ~SessionStateDelegate() {}
37 39
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // Adds or removes sessions state observer. 102 // Adds or removes sessions state observer.
101 virtual void AddSessionStateObserver(SessionStateObserver* observer) = 0; 103 virtual void AddSessionStateObserver(SessionStateObserver* observer) = 0;
102 virtual void RemoveSessionStateObserver(SessionStateObserver* observer) = 0; 104 virtual void RemoveSessionStateObserver(SessionStateObserver* observer) = 0;
103 105
104 bool IsInSecondaryLoginScreen() const; 106 bool IsInSecondaryLoginScreen() const;
105 }; 107 };
106 108
107 } // namespace ash 109 } // namespace ash
108 110
109 #endif // ASH_COMMON_SESSION_SESSION_STATE_DELEGATE_H_ 111 #endif // ASH_COMMON_SESSION_SESSION_STATE_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/common/session/session_controller_unittest.cc ('k') | ash/common/wm_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698