| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 SigninScreenHandler( | 223 SigninScreenHandler( |
| 224 const scoped_refptr<NetworkStateInformer>& network_state_informer, | 224 const scoped_refptr<NetworkStateInformer>& network_state_informer, |
| 225 ErrorScreenActor* error_screen_actor, | 225 ErrorScreenActor* error_screen_actor, |
| 226 CoreOobeActor* core_oobe_actor, | 226 CoreOobeActor* core_oobe_actor, |
| 227 GaiaScreenHandler* gaia_screen_handler); | 227 GaiaScreenHandler* gaia_screen_handler); |
| 228 virtual ~SigninScreenHandler(); | 228 virtual ~SigninScreenHandler(); |
| 229 | 229 |
| 230 // Shows the sign in screen. | 230 // Shows the sign in screen. |
| 231 void Show(const LoginScreenContext& context); | 231 void Show(const LoginScreenContext& context); |
| 232 | 232 |
| 233 // Shows the login spinner UI for retail mode logins. | |
| 234 void ShowRetailModeLoginSpinner(); | |
| 235 | |
| 236 // Sets delegate to be used by the handler. It is guaranteed that valid | 233 // Sets delegate to be used by the handler. It is guaranteed that valid |
| 237 // delegate is set before Show() method will be called. | 234 // delegate is set before Show() method will be called. |
| 238 void SetDelegate(SigninScreenHandlerDelegate* delegate); | 235 void SetDelegate(SigninScreenHandlerDelegate* delegate); |
| 239 | 236 |
| 240 void SetNativeWindowDelegate(NativeWindowDelegate* native_window_delegate); | 237 void SetNativeWindowDelegate(NativeWindowDelegate* native_window_delegate); |
| 241 | 238 |
| 242 // NetworkStateInformer::NetworkStateInformerObserver implementation: | 239 // NetworkStateInformer::NetworkStateInformerObserver implementation: |
| 243 virtual void OnNetworkReady() override; | 240 virtual void OnNetworkReady() override; |
| 244 virtual void UpdateState(ErrorScreenActor::ErrorReason reason) override; | 241 virtual void UpdateState(ErrorScreenActor::ErrorReason reason) override; |
| 245 | 242 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 void UpdateAddButtonStatus(); | 343 void UpdateAddButtonStatus(); |
| 347 | 344 |
| 348 // Restore input focus to current user pod. | 345 // Restore input focus to current user pod. |
| 349 void RefocusCurrentPod(); | 346 void RefocusCurrentPod(); |
| 350 | 347 |
| 351 // WebUI message handlers. | 348 // WebUI message handlers. |
| 352 void HandleGetUsers(); | 349 void HandleGetUsers(); |
| 353 void HandleAuthenticateUser(const std::string& username, | 350 void HandleAuthenticateUser(const std::string& username, |
| 354 const std::string& password); | 351 const std::string& password); |
| 355 void HandleAttemptUnlock(const std::string& username); | 352 void HandleAttemptUnlock(const std::string& username); |
| 356 void HandleLaunchDemoUser(); | |
| 357 void HandleLaunchIncognito(); | 353 void HandleLaunchIncognito(); |
| 358 void HandleLaunchPublicSession(const std::string& user_id, | 354 void HandleLaunchPublicSession(const std::string& user_id, |
| 359 const std::string& locale, | 355 const std::string& locale, |
| 360 const std::string& input_method); | 356 const std::string& input_method); |
| 361 void HandleOfflineLogin(const base::ListValue* args); | 357 void HandleOfflineLogin(const base::ListValue* args); |
| 362 void HandleShutdownSystem(); | 358 void HandleShutdownSystem(); |
| 363 void HandleLoadWallpaper(const std::string& email); | 359 void HandleLoadWallpaper(const std::string& email); |
| 364 void HandleRebootSystem(); | 360 void HandleRebootSystem(); |
| 365 void HandleRemoveUser(const std::string& email); | 361 void HandleRemoveUser(const std::string& email); |
| 366 void HandleShowAddUser(const base::ListValue* args); | 362 void HandleShowAddUser(const base::ListValue* args); |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; | 526 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; |
| 531 | 527 |
| 532 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; | 528 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; |
| 533 | 529 |
| 534 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 530 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 535 }; | 531 }; |
| 536 | 532 |
| 537 } // namespace chromeos | 533 } // namespace chromeos |
| 538 | 534 |
| 539 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 535 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |