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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h

Issue 228553002: Preference dis/allowing supervised users creation is now available as owner setting, not only as de… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 // Show wrong hwid screen. 165 // Show wrong hwid screen.
166 virtual void ShowWrongHWIDScreen() = 0; 166 virtual void ShowWrongHWIDScreen() = 0;
167 167
168 // Let the delegate know about the handler it is supposed to be using. 168 // Let the delegate know about the handler it is supposed to be using.
169 virtual void SetWebUIHandler(LoginDisplayWebUIHandler* webui_handler) = 0; 169 virtual void SetWebUIHandler(LoginDisplayWebUIHandler* webui_handler) = 0;
170 170
171 // Returns users list to be shown. 171 // Returns users list to be shown.
172 virtual const UserList& GetUsers() const = 0; 172 virtual const UserList& GetUsers() const = 0;
173 173
174 // Whether login as guest is available. 174 // Whether login as supervised user is available.
175 virtual bool IsShowSupervised() const = 0;
176
177 // Whether user names are shown on sign in.
175 virtual bool IsShowGuest() const = 0; 178 virtual bool IsShowGuest() const = 0;
176 179
177 // Whether login as guest is available. 180 // Whether login as guest is available.
178 virtual bool IsShowUsers() const = 0; 181 virtual bool IsShowUsers() const = 0;
179 182
180 // Whether new user pod is available. 183 // Whether new user pod is available.
181 virtual bool IsShowNewUser() const = 0; 184 virtual bool IsShowNewUser() const = 0;
182 185
183 // Returns true if sign in is in progress. 186 // Returns true if sign in is in progress.
184 virtual bool IsSigninInProgress() const = 0; 187 virtual bool IsSigninInProgress() const = 0;
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 524
522 content::NotificationRegistrar registrar_; 525 content::NotificationRegistrar registrar_;
523 526
524 // Whether there is an auth UI pending. This flag is set on receiving 527 // Whether there is an auth UI pending. This flag is set on receiving
525 // NOTIFICATION_AUTH_NEEDED and reset on either NOTIFICATION_AUTH_SUPPLIED or 528 // NOTIFICATION_AUTH_NEEDED and reset on either NOTIFICATION_AUTH_SUPPLIED or
526 // NOTIFICATION_AUTH_CANCELLED. 529 // NOTIFICATION_AUTH_CANCELLED.
527 bool has_pending_auth_ui_; 530 bool has_pending_auth_ui_;
528 531
529 scoped_ptr<CrosSettings::ObserverSubscription> allow_new_user_subscription_; 532 scoped_ptr<CrosSettings::ObserverSubscription> allow_new_user_subscription_;
530 scoped_ptr<CrosSettings::ObserverSubscription> allow_guest_subscription_; 533 scoped_ptr<CrosSettings::ObserverSubscription> allow_guest_subscription_;
534 scoped_ptr<CrosSettings::ObserverSubscription> allow_supervised_subscription_;
531 scoped_ptr<AutoEnrollmentController::ProgressCallbackList::Subscription> 535 scoped_ptr<AutoEnrollmentController::ProgressCallbackList::Subscription>
532 auto_enrollment_progress_subscription_; 536 auto_enrollment_progress_subscription_;
533 537
534 bool caps_lock_enabled_; 538 bool caps_lock_enabled_;
535 539
536 base::Closure kiosk_enable_flow_aborted_callback_for_test_; 540 base::Closure kiosk_enable_flow_aborted_callback_for_test_;
537 541
538 // Map of callbacks run when the custom button on a user pod is clicked. 542 // Map of callbacks run when the custom button on a user pod is clicked.
539 std::map<std::string, base::Closure> user_pod_button_callback_map_; 543 std::map<std::string, base::Closure> user_pod_button_callback_map_;
540 544
541 // Map of usernames to their current authentication type. If a user is not 545 // Map of usernames to their current authentication type. If a user is not
542 // contained in the map, it is using the default authentication type. 546 // contained in the map, it is using the default authentication type.
543 std::map<std::string, LoginDisplay::AuthType> user_auth_type_map_; 547 std::map<std::string, LoginDisplay::AuthType> user_auth_type_map_;
544 548
545 // Non-owning ptr. 549 // Non-owning ptr.
546 // TODO (ygorshenin@): remove this dependency. 550 // TODO (ygorshenin@): remove this dependency.
547 GaiaScreenHandler* gaia_screen_handler_; 551 GaiaScreenHandler* gaia_screen_handler_;
548 552
549 // Helper that retrieves the authenticated user's e-mail address. 553 // Helper that retrieves the authenticated user's e-mail address.
550 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_; 554 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_;
551 555
552 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); 556 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler);
553 }; 557 };
554 558
555 } // namespace chromeos 559 } // namespace chromeos
556 560
557 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 561 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698