| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 // Sign in into Guest session. | 71 // Sign in into Guest session. |
| 72 virtual void LoginAsGuest() = 0; | 72 virtual void LoginAsGuest() = 0; |
| 73 | 73 |
| 74 // Signs out if the screen is currently locked. | 74 // Signs out if the screen is currently locked. |
| 75 virtual void Signout() = 0; | 75 virtual void Signout() = 0; |
| 76 | 76 |
| 77 // Create a new Google account. | 77 // Create a new Google account. |
| 78 virtual void CreateAccount() = 0; | 78 virtual void CreateAccount() = 0; |
| 79 | 79 |
| 80 // Called when user pod with |username| is selected at login screen. |
| 81 // |username| is the email address of the selected user. |
| 82 virtual void UserSelected(const std::string& username) = 0; |
| 83 |
| 80 // Attempts to remove given user. | 84 // Attempts to remove given user. |
| 81 virtual void RemoveUser(const std::string& username) = 0; | 85 virtual void RemoveUser(const std::string& username) = 0; |
| 82 | 86 |
| 83 // Shows Enterprise Enrollment screen. | 87 // Shows Enterprise Enrollment screen. |
| 84 virtual void ShowEnterpriseEnrollmentScreen() = 0; | 88 virtual void ShowEnterpriseEnrollmentScreen() = 0; |
| 85 | 89 |
| 86 // Let the delegate know about the handler it is supposed to be using. | 90 // Let the delegate know about the handler it is supposed to be using. |
| 87 virtual void SetWebUIHandler(LoginDisplayWebUIHandler* webui_handler) = 0; | 91 virtual void SetWebUIHandler(LoginDisplayWebUIHandler* webui_handler) = 0; |
| 88 | 92 |
| 89 // Returns users list to be shown. | 93 // Returns users list to be shown. |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 void HandleCompleteLogin(const base::ListValue* args); | 187 void HandleCompleteLogin(const base::ListValue* args); |
| 184 void HandleGetUsers(const base::ListValue* args); | 188 void HandleGetUsers(const base::ListValue* args); |
| 185 void HandleAuthenticateUser(const base::ListValue* args); | 189 void HandleAuthenticateUser(const base::ListValue* args); |
| 186 void HandleLaunchDemoUser(const base::ListValue* args); | 190 void HandleLaunchDemoUser(const base::ListValue* args); |
| 187 void HandleLaunchIncognito(const base::ListValue* args); | 191 void HandleLaunchIncognito(const base::ListValue* args); |
| 188 void HandleFixCaptivePortal(const base::ListValue* args); | 192 void HandleFixCaptivePortal(const base::ListValue* args); |
| 189 void HandleShowCaptivePortal(const base::ListValue* args); | 193 void HandleShowCaptivePortal(const base::ListValue* args); |
| 190 void HandleHideCaptivePortal(const base::ListValue* args); | 194 void HandleHideCaptivePortal(const base::ListValue* args); |
| 191 void HandleOfflineLogin(const base::ListValue* args); | 195 void HandleOfflineLogin(const base::ListValue* args); |
| 192 void HandleShutdownSystem(const base::ListValue* args); | 196 void HandleShutdownSystem(const base::ListValue* args); |
| 197 void HandleUserSelected(const base::ListValue* args); |
| 193 void HandleRemoveUser(const base::ListValue* args); | 198 void HandleRemoveUser(const base::ListValue* args); |
| 194 void HandleShowAddUser(const base::ListValue* args); | 199 void HandleShowAddUser(const base::ListValue* args); |
| 195 void HandleToggleEnrollmentScreen(const base::ListValue* args); | 200 void HandleToggleEnrollmentScreen(const base::ListValue* args); |
| 196 void HandleLaunchHelpApp(const base::ListValue* args); | 201 void HandleLaunchHelpApp(const base::ListValue* args); |
| 197 void HandleCreateAccount(const base::ListValue* args); | 202 void HandleCreateAccount(const base::ListValue* args); |
| 198 void HandleAccountPickerReady(const base::ListValue* args); | 203 void HandleAccountPickerReady(const base::ListValue* args); |
| 199 void HandleLoginWebuiReady(const base::ListValue* args); | 204 void HandleLoginWebuiReady(const base::ListValue* args); |
| 200 void HandleLoginRequestNetworkState(const base::ListValue* args); | 205 void HandleLoginRequestNetworkState(const base::ListValue* args); |
| 201 void HandleLoginAddNetworkStateObserver(const base::ListValue* args); | 206 void HandleLoginAddNetworkStateObserver(const base::ListValue* args); |
| 202 void HandleLoginRemoveNetworkStateObserver(const base::ListValue* args); | 207 void HandleLoginRemoveNetworkStateObserver(const base::ListValue* args); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 | 278 |
| 274 // CapsLock state change notifier instance; | 279 // CapsLock state change notifier instance; |
| 275 SystemKeyEventListener* key_event_listener_; | 280 SystemKeyEventListener* key_event_listener_; |
| 276 | 281 |
| 277 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 282 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 278 }; | 283 }; |
| 279 | 284 |
| 280 } // namespace chromeos | 285 } // namespace chromeos |
| 281 | 286 |
| 282 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 287 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |