| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 SigninScreenHandler( | 222 SigninScreenHandler( |
| 223 const scoped_refptr<NetworkStateInformer>& network_state_informer, | 223 const scoped_refptr<NetworkStateInformer>& network_state_informer, |
| 224 ErrorScreenActor* error_screen_actor, | 224 ErrorScreenActor* error_screen_actor, |
| 225 CoreOobeActor* core_oobe_actor, | 225 CoreOobeActor* core_oobe_actor, |
| 226 GaiaScreenHandler* gaia_screen_handler); | 226 GaiaScreenHandler* gaia_screen_handler); |
| 227 virtual ~SigninScreenHandler(); | 227 virtual ~SigninScreenHandler(); |
| 228 | 228 |
| 229 // Shows the sign in screen. | 229 // Shows the sign in screen. |
| 230 void Show(const LoginScreenContext& context); | 230 void Show(const LoginScreenContext& context); |
| 231 | 231 |
| 232 // Shows the login spinner UI for retail mode logins. | |
| 233 void ShowRetailModeLoginSpinner(); | |
| 234 | |
| 235 // Sets delegate to be used by the handler. It is guaranteed that valid | 232 // Sets delegate to be used by the handler. It is guaranteed that valid |
| 236 // delegate is set before Show() method will be called. | 233 // delegate is set before Show() method will be called. |
| 237 void SetDelegate(SigninScreenHandlerDelegate* delegate); | 234 void SetDelegate(SigninScreenHandlerDelegate* delegate); |
| 238 | 235 |
| 239 void SetNativeWindowDelegate(NativeWindowDelegate* native_window_delegate); | 236 void SetNativeWindowDelegate(NativeWindowDelegate* native_window_delegate); |
| 240 | 237 |
| 241 // NetworkStateInformer::NetworkStateInformerObserver implementation: | 238 // NetworkStateInformer::NetworkStateInformerObserver implementation: |
| 242 virtual void OnNetworkReady() override; | 239 virtual void OnNetworkReady() override; |
| 243 virtual void UpdateState(ErrorScreenActor::ErrorReason reason) override; | 240 virtual void UpdateState(ErrorScreenActor::ErrorReason reason) override; |
| 244 | 241 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 void UpdateAddButtonStatus(); | 337 void UpdateAddButtonStatus(); |
| 341 | 338 |
| 342 // Restore input focus to current user pod. | 339 // Restore input focus to current user pod. |
| 343 void RefocusCurrentPod(); | 340 void RefocusCurrentPod(); |
| 344 | 341 |
| 345 // WebUI message handlers. | 342 // WebUI message handlers. |
| 346 void HandleGetUsers(); | 343 void HandleGetUsers(); |
| 347 void HandleAuthenticateUser(const std::string& username, | 344 void HandleAuthenticateUser(const std::string& username, |
| 348 const std::string& password); | 345 const std::string& password); |
| 349 void HandleAttemptUnlock(const std::string& username); | 346 void HandleAttemptUnlock(const std::string& username); |
| 350 void HandleLaunchDemoUser(); | |
| 351 void HandleLaunchIncognito(); | 347 void HandleLaunchIncognito(); |
| 352 void HandleLaunchPublicSession(const std::string& user_id, | 348 void HandleLaunchPublicSession(const std::string& user_id, |
| 353 const std::string& locale, | 349 const std::string& locale, |
| 354 const std::string& input_method); | 350 const std::string& input_method); |
| 355 void HandleOfflineLogin(const base::ListValue* args); | 351 void HandleOfflineLogin(const base::ListValue* args); |
| 356 void HandleShutdownSystem(); | 352 void HandleShutdownSystem(); |
| 357 void HandleLoadWallpaper(const std::string& email); | 353 void HandleLoadWallpaper(const std::string& email); |
| 358 void HandleRebootSystem(); | 354 void HandleRebootSystem(); |
| 359 void HandleRemoveUser(const std::string& email); | 355 void HandleRemoveUser(const std::string& email); |
| 360 void HandleShowAddUser(const base::ListValue* args); | 356 void HandleShowAddUser(const base::ListValue* args); |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; | 510 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; |
| 515 | 511 |
| 516 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; | 512 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; |
| 517 | 513 |
| 518 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 514 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 519 }; | 515 }; |
| 520 | 516 |
| 521 } // namespace chromeos | 517 } // namespace chromeos |
| 522 | 518 |
| 523 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 519 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |