Chromium Code Reviews| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 69 | 69 |
| 70 // Sign in into Guest session. | 70 // Sign in into Guest session. |
| 71 virtual void LoginAsGuest() = 0; | 71 virtual void LoginAsGuest() = 0; |
| 72 | 72 |
| 73 // Signs out if the screen is currently locked. | 73 // Signs out if the screen is currently locked. |
| 74 virtual void Signout() = 0; | 74 virtual void Signout() = 0; |
| 75 | 75 |
| 76 // Create a new Google account. | 76 // Create a new Google account. |
| 77 virtual void CreateAccount() = 0; | 77 virtual void CreateAccount() = 0; |
| 78 | 78 |
| 79 virtual void UserSelected(const std::string& username) = 0; | |
|
James Hawkins
2012/04/26 20:37:37
nit: Document method and |username|.
bshe
2012/04/27 18:07:21
Done.
| |
| 80 | |
| 79 // Attempts to remove given user. | 81 // Attempts to remove given user. |
| 80 virtual void RemoveUser(const std::string& username) = 0; | 82 virtual void RemoveUser(const std::string& username) = 0; |
| 81 | 83 |
| 82 // Shows Enterprise Enrollment screen. | 84 // Shows Enterprise Enrollment screen. |
| 83 virtual void ShowEnterpriseEnrollmentScreen() = 0; | 85 virtual void ShowEnterpriseEnrollmentScreen() = 0; |
| 84 | 86 |
| 85 // Let the delegate know about the handler it is supposed to be using. | 87 // Let the delegate know about the handler it is supposed to be using. |
| 86 virtual void SetWebUIHandler(LoginDisplayWebUIHandler* webui_handler) = 0; | 88 virtual void SetWebUIHandler(LoginDisplayWebUIHandler* webui_handler) = 0; |
| 87 | 89 |
| 88 // Returns users list to be shown. | 90 // Returns users list to be shown. |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 181 void HandleCompleteLogin(const base::ListValue* args); | 183 void HandleCompleteLogin(const base::ListValue* args); |
| 182 void HandleGetUsers(const base::ListValue* args); | 184 void HandleGetUsers(const base::ListValue* args); |
| 183 void HandleAuthenticateUser(const base::ListValue* args); | 185 void HandleAuthenticateUser(const base::ListValue* args); |
| 184 void HandleLaunchDemoUser(const base::ListValue* args); | 186 void HandleLaunchDemoUser(const base::ListValue* args); |
| 185 void HandleLaunchIncognito(const base::ListValue* args); | 187 void HandleLaunchIncognito(const base::ListValue* args); |
| 186 void HandleFixCaptivePortal(const base::ListValue* args); | 188 void HandleFixCaptivePortal(const base::ListValue* args); |
| 187 void HandleShowCaptivePortal(const base::ListValue* args); | 189 void HandleShowCaptivePortal(const base::ListValue* args); |
| 188 void HandleHideCaptivePortal(const base::ListValue* args); | 190 void HandleHideCaptivePortal(const base::ListValue* args); |
| 189 void HandleOfflineLogin(const base::ListValue* args); | 191 void HandleOfflineLogin(const base::ListValue* args); |
| 190 void HandleShutdownSystem(const base::ListValue* args); | 192 void HandleShutdownSystem(const base::ListValue* args); |
| 193 void HandleUserSelected(const base::ListValue* args); | |
| 191 void HandleRemoveUser(const base::ListValue* args); | 194 void HandleRemoveUser(const base::ListValue* args); |
| 192 void HandleShowAddUser(const base::ListValue* args); | 195 void HandleShowAddUser(const base::ListValue* args); |
| 193 void HandleToggleEnrollmentScreen(const base::ListValue* args); | 196 void HandleToggleEnrollmentScreen(const base::ListValue* args); |
| 194 void HandleLaunchHelpApp(const base::ListValue* args); | 197 void HandleLaunchHelpApp(const base::ListValue* args); |
| 195 void HandleCreateAccount(const base::ListValue* args); | 198 void HandleCreateAccount(const base::ListValue* args); |
| 196 void HandleAccountPickerReady(const base::ListValue* args); | 199 void HandleAccountPickerReady(const base::ListValue* args); |
| 197 void HandleLoginWebuiReady(const base::ListValue* args); | 200 void HandleLoginWebuiReady(const base::ListValue* args); |
| 198 void HandleLoginRequestNetworkState(const base::ListValue* args); | 201 void HandleLoginRequestNetworkState(const base::ListValue* args); |
| 199 void HandleLoginAddNetworkStateObserver(const base::ListValue* args); | 202 void HandleLoginAddNetworkStateObserver(const base::ListValue* args); |
| 200 void HandleLoginRemoveNetworkStateObserver(const base::ListValue* args); | 203 void HandleLoginRemoveNetworkStateObserver(const base::ListValue* args); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 270 | 273 |
| 271 // CapsLock state change notifier instance; | 274 // CapsLock state change notifier instance; |
| 272 SystemKeyEventListener* key_event_listener_; | 275 SystemKeyEventListener* key_event_listener_; |
| 273 | 276 |
| 274 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 277 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 275 }; | 278 }; |
| 276 | 279 |
| 277 } // namespace chromeos | 280 } // namespace chromeos |
| 278 | 281 |
| 279 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 282 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |