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

Unified Diff: ash/public/interfaces/session_controller.mojom

Issue 2724163002: ash: Use enum for SessionController::CycleActiveUser (Closed)
Patch Set: fix ash_shell_with_content compile Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/public/cpp/session_types.h ('k') | ash/public/interfaces/session_controller.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/public/interfaces/session_controller.mojom
diff --git a/ash/public/interfaces/session_controller.mojom b/ash/public/interfaces/session_controller.mojom
index aea9449dd3db34a209f3d59761a70e5eed58dafe..9531590e0a17b6a256df9f9009373f7345f317f2 100644
--- a/ash/public/interfaces/session_controller.mojom
+++ b/ash/public/interfaces/session_controller.mojom
@@ -65,6 +65,12 @@ enum UserType {
ACTIVE_DIRECTORY,
};
+// Matches ash::CycleUserDirection.
+enum CycleUserDirection {
+ NEXT, // Cycle to the next user.
+ PREVIOUS, // Cycle to the previous user.
+};
+
// Info about a user session in ash.
struct UserSession {
// A user session id for the user session. It is generated by session manager
@@ -140,5 +146,5 @@ interface SessionControllerClient {
SwitchActiveUser(signin.mojom.AccountId account_id);
// Switch the active user to the next or previous user.
- CycleActiveUser(bool next_user);
+ CycleActiveUser(CycleUserDirection direction);
};
« no previous file with comments | « ash/public/cpp/session_types.h ('k') | ash/public/interfaces/session_controller.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698