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

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

Issue 2724163002: ash: Use enum for SessionController::CycleActiveUser (Closed)
Patch Set: 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
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..e5cedbfb886a133880feef71d29269904b37c35b 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::CycleUser.
+enum CycleUser {
+ CYCLE_TO_NEXT_USER, // Cycle to the next user.
+ CYCLE_TO_PREVIOUS_USER, // 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(CycleUser cycle_user);
};

Powered by Google App Engine
This is Rietveld 408576698