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

Side by Side Diff: ash/public/interfaces/session_controller.mojom

Issue 2770693002: ash: HiDPI user avatar for SessionController (Closed)
Patch Set: nits, and gn check Created 3 years, 9 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/public/interfaces/BUILD.gn ('k') | chrome/browser/ui/ash/session_controller_client.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 module ash.mojom; 5 module ash.mojom;
6 6
7 import "components/signin/public/interfaces/account_id.mojom"; 7 import "components/signin/public/interfaces/account_id.mojom";
8 import "skia/public/interfaces/bitmap.mojom"; 8 import "ui/gfx/image/mojo/image.mojom";
9 9
10 // Matches session_manager::SessionState. 10 // Matches session_manager::SessionState.
11 enum SessionState { 11 enum SessionState {
12 // Default value, when session state hasn't been initialized yet. 12 // Default value, when session state hasn't been initialized yet.
13 UNKNOWN, 13 UNKNOWN,
14 14
15 // Running out of box UI. 15 // Running out of box UI.
16 OOBE, 16 OOBE,
17 17
18 // Running login UI (primary user) but user sign in hasn't completed yet. 18 // Running login UI (primary user) but user sign in hasn't completed yet.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // A user session id for the user session. It is generated by session manager 76 // A user session id for the user session. It is generated by session manager
77 // (chrome) when a user session starts and never changes during the lifetime 77 // (chrome) when a user session starts and never changes during the lifetime
78 // of the session manager. The number starts at 1 for the first user session 78 // of the session manager. The number starts at 1 for the first user session
79 // and incremented by one for each subsequent user session. 79 // and incremented by one for each subsequent user session.
80 uint32 session_id; 80 uint32 session_id;
81 81
82 UserType type; 82 UserType type;
83 signin.mojom.AccountId account_id; 83 signin.mojom.AccountId account_id;
84 string display_name; 84 string display_name;
85 string display_email; 85 string display_email;
86 skia.mojom.Bitmap avatar; 86 gfx.mojom.ImageSkia avatar;
87 }; 87 };
88 88
89 // Matches ash::AddUserSessionPolicy. 89 // Matches ash::AddUserSessionPolicy.
90 enum AddUserSessionPolicy { 90 enum AddUserSessionPolicy {
91 // Adding a user session is allowed. 91 // Adding a user session is allowed.
92 ALLOWED, 92 ALLOWED,
93 93
94 // Disallowed due to primary user's policy. 94 // Disallowed due to primary user's policy.
95 ERROR_NOT_ALLOWED_PRIMARY_USER, 95 ERROR_NOT_ALLOWED_PRIMARY_USER,
96 96
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // Requests to lock screen. 141 // Requests to lock screen.
142 RequestLockScreen(); 142 RequestLockScreen();
143 143
144 // Switch to the active user with |account_id| (if the user has already signed 144 // Switch to the active user with |account_id| (if the user has already signed
145 // in). 145 // in).
146 SwitchActiveUser(signin.mojom.AccountId account_id); 146 SwitchActiveUser(signin.mojom.AccountId account_id);
147 147
148 // Switch the active user to the next or previous user. 148 // Switch the active user to the next or previous user.
149 CycleActiveUser(CycleUserDirection direction); 149 CycleActiveUser(CycleUserDirection direction);
150 }; 150 };
OLDNEW
« no previous file with comments | « ash/public/interfaces/BUILD.gn ('k') | chrome/browser/ui/ash/session_controller_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698