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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // Confirms sign up by provided |username| and |password| specified. | 56 // Confirms sign up by provided |username| and |password| specified. |
57 // Used for new user login via GAIA extension. | 57 // Used for new user login via GAIA extension. |
58 virtual void CompleteLogin(const std::string& username, | 58 virtual void CompleteLogin(const std::string& username, |
59 const std::string& password) = 0; | 59 const std::string& password) = 0; |
60 | 60 |
61 // Sign in using |username| and |password| specified. | 61 // Sign in using |username| and |password| specified. |
62 // Used for both known and new users. | 62 // Used for both known and new users. |
63 virtual void Login(const std::string& username, | 63 virtual void Login(const std::string& username, |
64 const std::string& password) = 0; | 64 const std::string& password) = 0; |
65 | 65 |
| 66 // Sign in into a demo user session. |
| 67 virtual void LoginAsDemoUser() = 0; |
| 68 |
66 // Sign in into Guest session. | 69 // Sign in into Guest session. |
67 virtual void LoginAsGuest() = 0; | 70 virtual void LoginAsGuest() = 0; |
68 | 71 |
69 // Signs out if the screen is currently locked. | 72 // Signs out if the screen is currently locked. |
70 virtual void Signout() = 0; | 73 virtual void Signout() = 0; |
71 | 74 |
72 // Sign in into Guest session for fixing captive portal issues. | 75 // Sign in into Guest session for fixing captive portal issues. |
73 virtual void FixCaptivePortal() = 0; | 76 virtual void FixCaptivePortal() = 0; |
74 | 77 |
75 // Create a new Google account. | 78 // Create a new Google account. |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 // Handles confirmation message of user authentication that was performed by | 179 // Handles confirmation message of user authentication that was performed by |
177 // the authentication extension. | 180 // the authentication extension. |
178 void HandleCompleteLogin(const base::ListValue* args); | 181 void HandleCompleteLogin(const base::ListValue* args); |
179 | 182 |
180 // Handles get existing user list request when populating account picker. | 183 // Handles get existing user list request when populating account picker. |
181 void HandleGetUsers(const base::ListValue* args); | 184 void HandleGetUsers(const base::ListValue* args); |
182 | 185 |
183 // Handles authentication request when signing in an existing user. | 186 // Handles authentication request when signing in an existing user. |
184 void HandleAuthenticateUser(const base::ListValue* args); | 187 void HandleAuthenticateUser(const base::ListValue* args); |
185 | 188 |
| 189 // Handles entering as the demo user. |
| 190 void HandleLaunchDemoUser(const base::ListValue* args); |
| 191 |
186 // Handles entering bwsi mode request. | 192 // Handles entering bwsi mode request. |
187 void HandleLaunchIncognito(const base::ListValue* args); | 193 void HandleLaunchIncognito(const base::ListValue* args); |
188 | 194 |
189 // Handles fix captive portal request (starts guest session with specific | 195 // Handles fix captive portal request (starts guest session with specific |
190 // start URL). | 196 // start URL). |
191 void HandleFixCaptivePortal(const base::ListValue* args); | 197 void HandleFixCaptivePortal(const base::ListValue* args); |
192 | 198 |
193 // Handles offline login request. | 199 // Handles offline login request. |
194 void HandleOfflineLogin(const base::ListValue* args); | 200 void HandleOfflineLogin(const base::ListValue* args); |
195 | 201 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 | 290 |
285 // CapsLock state change notifier instance; | 291 // CapsLock state change notifier instance; |
286 SystemKeyEventListener* key_event_listener_; | 292 SystemKeyEventListener* key_event_listener_; |
287 | 293 |
288 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 294 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
289 }; | 295 }; |
290 | 296 |
291 } // namespace chromeos | 297 } // namespace chromeos |
292 | 298 |
293 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 299 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
OLD | NEW |