| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 // Sign in into Guest session. | 72 // Sign in into Guest session. |
| 73 virtual void LoginAsGuest() = 0; | 73 virtual void LoginAsGuest() = 0; |
| 74 | 74 |
| 75 // Signs out if the screen is currently locked. | 75 // Signs out if the screen is currently locked. |
| 76 virtual void Signout() = 0; | 76 virtual void Signout() = 0; |
| 77 | 77 |
| 78 // Create a new Google account. | 78 // Create a new Google account. |
| 79 virtual void CreateAccount() = 0; | 79 virtual void CreateAccount() = 0; |
| 80 | 80 |
| 81 // Called user pod selection is canceled. | 81 // Load wallpaper for given |username|. |
| 82 virtual void OnUserDeselected() = 0; | 82 virtual void LoadWallpaper(const std::string& username) = 0; |
| 83 | 83 |
| 84 // Called when user pod with |username| is selected at login screen. | 84 // Loads the default sign-in wallpaper. |
| 85 // |username| is the email address of the selected user. | 85 virtual void LoadSigninWallpaper() = 0; |
| 86 virtual void OnUserSelected(const std::string& username) = 0; | |
| 87 | 86 |
| 88 // Attempts to remove given user. | 87 // Attempts to remove given user. |
| 89 virtual void RemoveUser(const std::string& username) = 0; | 88 virtual void RemoveUser(const std::string& username) = 0; |
| 90 | 89 |
| 91 // Shows Enterprise Enrollment screen. | 90 // Shows Enterprise Enrollment screen. |
| 92 virtual void ShowEnterpriseEnrollmentScreen() = 0; | 91 virtual void ShowEnterpriseEnrollmentScreen() = 0; |
| 93 | 92 |
| 94 // Shows Reset screen. | 93 // Shows Reset screen. |
| 95 virtual void ShowResetScreen() = 0; | 94 virtual void ShowResetScreen() = 0; |
| 96 | 95 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 void UpdateAddButtonStatus(); | 206 void UpdateAddButtonStatus(); |
| 208 | 207 |
| 209 // WebUI message handlers. | 208 // WebUI message handlers. |
| 210 void HandleCompleteLogin(const base::ListValue* args); | 209 void HandleCompleteLogin(const base::ListValue* args); |
| 211 void HandleGetUsers(const base::ListValue* args); | 210 void HandleGetUsers(const base::ListValue* args); |
| 212 void HandleAuthenticateUser(const base::ListValue* args); | 211 void HandleAuthenticateUser(const base::ListValue* args); |
| 213 void HandleLaunchDemoUser(const base::ListValue* args); | 212 void HandleLaunchDemoUser(const base::ListValue* args); |
| 214 void HandleLaunchIncognito(const base::ListValue* args); | 213 void HandleLaunchIncognito(const base::ListValue* args); |
| 215 void HandleOfflineLogin(const base::ListValue* args); | 214 void HandleOfflineLogin(const base::ListValue* args); |
| 216 void HandleShutdownSystem(const base::ListValue* args); | 215 void HandleShutdownSystem(const base::ListValue* args); |
| 217 void HandleUserDeselected(const base::ListValue* args); | 216 void HandleLoadWallpaper(const base::ListValue* args); |
| 218 void HandleUserSelected(const base::ListValue* args); | |
| 219 void HandleRemoveUser(const base::ListValue* args); | 217 void HandleRemoveUser(const base::ListValue* args); |
| 220 void HandleShowAddUser(const base::ListValue* args); | 218 void HandleShowAddUser(const base::ListValue* args); |
| 221 void HandleToggleEnrollmentScreen(const base::ListValue* args); | 219 void HandleToggleEnrollmentScreen(const base::ListValue* args); |
| 222 void HandleToggleResetScreen(const base::ListValue* args); | 220 void HandleToggleResetScreen(const base::ListValue* args); |
| 223 void HandleLaunchHelpApp(const base::ListValue* args); | 221 void HandleLaunchHelpApp(const base::ListValue* args); |
| 224 void HandleCreateAccount(const base::ListValue* args); | 222 void HandleCreateAccount(const base::ListValue* args); |
| 225 void HandleAccountPickerReady(const base::ListValue* args); | 223 void HandleAccountPickerReady(const base::ListValue* args); |
| 226 void HandleWallpaperReady(const base::ListValue* args); | 224 void HandleWallpaperReady(const base::ListValue* args); |
| 227 void HandleLoginWebuiReady(const base::ListValue* args); | 225 void HandleLoginWebuiReady(const base::ListValue* args); |
| 228 void HandleLoginRequestNetworkState(const base::ListValue* args); | 226 void HandleLoginRequestNetworkState(const base::ListValue* args); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 | 317 |
| 320 // Sign-in screen WebUI observers of network state. | 318 // Sign-in screen WebUI observers of network state. |
| 321 WebUIObservers observers_; | 319 WebUIObservers observers_; |
| 322 | 320 |
| 323 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 321 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 324 }; | 322 }; |
| 325 | 323 |
| 326 } // namespace chromeos | 324 } // namespace chromeos |
| 327 | 325 |
| 328 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 326 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |