OLD | NEW |
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 Loading... |
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 user names are shown on sign in. |
175 virtual bool IsShowGuest() const = 0; | 175 virtual bool IsShowGuest() const = 0; |
176 | 176 |
177 // Whether login as guest is available. | 177 // Whether login as guest is available. |
178 virtual bool IsShowUsers() const = 0; | 178 virtual bool IsShowUsers() const = 0; |
179 | 179 |
180 // Whether new user pod is available. | 180 // Whether new user pod is available. |
181 virtual bool IsShowNewUser() const = 0; | 181 virtual bool IsShowNewUser() const = 0; |
182 | 182 |
183 // Returns true if sign in is in progress. | 183 // Returns true if sign in is in progress. |
184 virtual bool IsSigninInProgress() const = 0; | 184 virtual bool IsSigninInProgress() const = 0; |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 | 521 |
522 content::NotificationRegistrar registrar_; | 522 content::NotificationRegistrar registrar_; |
523 | 523 |
524 // Whether there is an auth UI pending. This flag is set on receiving | 524 // 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 | 525 // NOTIFICATION_AUTH_NEEDED and reset on either NOTIFICATION_AUTH_SUPPLIED or |
526 // NOTIFICATION_AUTH_CANCELLED. | 526 // NOTIFICATION_AUTH_CANCELLED. |
527 bool has_pending_auth_ui_; | 527 bool has_pending_auth_ui_; |
528 | 528 |
529 scoped_ptr<CrosSettings::ObserverSubscription> allow_new_user_subscription_; | 529 scoped_ptr<CrosSettings::ObserverSubscription> allow_new_user_subscription_; |
530 scoped_ptr<CrosSettings::ObserverSubscription> allow_guest_subscription_; | 530 scoped_ptr<CrosSettings::ObserverSubscription> allow_guest_subscription_; |
| 531 scoped_ptr<CrosSettings::ObserverSubscription> allow_supervised_subscription_; |
531 scoped_ptr<AutoEnrollmentController::ProgressCallbackList::Subscription> | 532 scoped_ptr<AutoEnrollmentController::ProgressCallbackList::Subscription> |
532 auto_enrollment_progress_subscription_; | 533 auto_enrollment_progress_subscription_; |
533 | 534 |
534 bool caps_lock_enabled_; | 535 bool caps_lock_enabled_; |
535 | 536 |
536 base::Closure kiosk_enable_flow_aborted_callback_for_test_; | 537 base::Closure kiosk_enable_flow_aborted_callback_for_test_; |
537 | 538 |
538 // Map of callbacks run when the custom button on a user pod is clicked. | 539 // 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_; | 540 std::map<std::string, base::Closure> user_pod_button_callback_map_; |
540 | 541 |
541 // Map of usernames to their current authentication type. If a user is not | 542 // 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. | 543 // contained in the map, it is using the default authentication type. |
543 std::map<std::string, LoginDisplay::AuthType> user_auth_type_map_; | 544 std::map<std::string, LoginDisplay::AuthType> user_auth_type_map_; |
544 | 545 |
545 // Non-owning ptr. | 546 // Non-owning ptr. |
546 // TODO (ygorshenin@): remove this dependency. | 547 // TODO (ygorshenin@): remove this dependency. |
547 GaiaScreenHandler* gaia_screen_handler_; | 548 GaiaScreenHandler* gaia_screen_handler_; |
548 | 549 |
549 // Helper that retrieves the authenticated user's e-mail address. | 550 // Helper that retrieves the authenticated user's e-mail address. |
550 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_; | 551 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_; |
551 | 552 |
552 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 553 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
553 }; | 554 }; |
554 | 555 |
555 } // namespace chromeos | 556 } // namespace chromeos |
556 | 557 |
557 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 558 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
OLD | NEW |