| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 SigninScreenHandler( | 225 SigninScreenHandler( |
| 226 const scoped_refptr<NetworkStateInformer>& network_state_informer, | 226 const scoped_refptr<NetworkStateInformer>& network_state_informer, |
| 227 ErrorScreenActor* error_screen_actor, | 227 ErrorScreenActor* error_screen_actor, |
| 228 CoreOobeActor* core_oobe_actor, | 228 CoreOobeActor* core_oobe_actor, |
| 229 GaiaScreenHandler* gaia_screen_handler); | 229 GaiaScreenHandler* gaia_screen_handler); |
| 230 virtual ~SigninScreenHandler(); | 230 virtual ~SigninScreenHandler(); |
| 231 | 231 |
| 232 // Shows the sign in screen. | 232 // Shows the sign in screen. |
| 233 void Show(const LoginScreenContext& context); | 233 void Show(const LoginScreenContext& context); |
| 234 | 234 |
| 235 // Shows the login spinner UI for retail mode logins. | |
| 236 void ShowRetailModeLoginSpinner(); | |
| 237 | |
| 238 // Sets delegate to be used by the handler. It is guaranteed that valid | 235 // Sets delegate to be used by the handler. It is guaranteed that valid |
| 239 // delegate is set before Show() method will be called. | 236 // delegate is set before Show() method will be called. |
| 240 void SetDelegate(SigninScreenHandlerDelegate* delegate); | 237 void SetDelegate(SigninScreenHandlerDelegate* delegate); |
| 241 | 238 |
| 242 void SetNativeWindowDelegate(NativeWindowDelegate* native_window_delegate); | 239 void SetNativeWindowDelegate(NativeWindowDelegate* native_window_delegate); |
| 243 | 240 |
| 244 // NetworkStateInformer::NetworkStateInformerObserver implementation: | 241 // NetworkStateInformer::NetworkStateInformerObserver implementation: |
| 245 virtual void OnNetworkReady() override; | 242 virtual void OnNetworkReady() override; |
| 246 virtual void UpdateState(ErrorScreenActor::ErrorReason reason) override; | 243 virtual void UpdateState(ErrorScreenActor::ErrorReason reason) override; |
| 247 | 244 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 void UpdateAddButtonStatus(); | 353 void UpdateAddButtonStatus(); |
| 357 | 354 |
| 358 // Restore input focus to current user pod. | 355 // Restore input focus to current user pod. |
| 359 void RefocusCurrentPod(); | 356 void RefocusCurrentPod(); |
| 360 | 357 |
| 361 // WebUI message handlers. | 358 // WebUI message handlers. |
| 362 void HandleGetUsers(); | 359 void HandleGetUsers(); |
| 363 void HandleAuthenticateUser(const std::string& username, | 360 void HandleAuthenticateUser(const std::string& username, |
| 364 const std::string& password); | 361 const std::string& password); |
| 365 void HandleAttemptUnlock(const std::string& username); | 362 void HandleAttemptUnlock(const std::string& username); |
| 366 void HandleLaunchDemoUser(); | |
| 367 void HandleLaunchIncognito(); | 363 void HandleLaunchIncognito(); |
| 368 void HandleLaunchPublicSession(const std::string& user_id, | 364 void HandleLaunchPublicSession(const std::string& user_id, |
| 369 const std::string& locale, | 365 const std::string& locale, |
| 370 const std::string& input_method); | 366 const std::string& input_method); |
| 371 void HandleOfflineLogin(const base::ListValue* args); | 367 void HandleOfflineLogin(const base::ListValue* args); |
| 372 void HandleShutdownSystem(); | 368 void HandleShutdownSystem(); |
| 373 void HandleLoadWallpaper(const std::string& email); | 369 void HandleLoadWallpaper(const std::string& email); |
| 374 void HandleRebootSystem(); | 370 void HandleRebootSystem(); |
| 375 void HandleRemoveUser(const std::string& email); | 371 void HandleRemoveUser(const std::string& email); |
| 376 void HandleShowAddUser(const base::ListValue* args); | 372 void HandleShowAddUser(const base::ListValue* args); |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; | 536 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; |
| 541 | 537 |
| 542 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; | 538 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; |
| 543 | 539 |
| 544 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 540 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 545 }; | 541 }; |
| 546 | 542 |
| 547 } // namespace chromeos | 543 } // namespace chromeos |
| 548 | 544 |
| 549 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 545 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |