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