| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 void UpdateAddButtonStatus(); | 350 void UpdateAddButtonStatus(); |
| 354 | 351 |
| 355 // Restore input focus to current user pod. | 352 // Restore input focus to current user pod. |
| 356 void RefocusCurrentPod(); | 353 void RefocusCurrentPod(); |
| 357 | 354 |
| 358 // WebUI message handlers. | 355 // WebUI message handlers. |
| 359 void HandleGetUsers(); | 356 void HandleGetUsers(); |
| 360 void HandleAuthenticateUser(const std::string& username, | 357 void HandleAuthenticateUser(const std::string& username, |
| 361 const std::string& password); | 358 const std::string& password); |
| 362 void HandleAttemptUnlock(const std::string& username); | 359 void HandleAttemptUnlock(const std::string& username); |
| 363 void HandleLaunchDemoUser(); | |
| 364 void HandleLaunchIncognito(); | 360 void HandleLaunchIncognito(); |
| 365 void HandleLaunchPublicSession(const std::string& user_id, | 361 void HandleLaunchPublicSession(const std::string& user_id, |
| 366 const std::string& locale, | 362 const std::string& locale, |
| 367 const std::string& input_method); | 363 const std::string& input_method); |
| 368 void HandleOfflineLogin(const base::ListValue* args); | 364 void HandleOfflineLogin(const base::ListValue* args); |
| 369 void HandleShutdownSystem(); | 365 void HandleShutdownSystem(); |
| 370 void HandleLoadWallpaper(const std::string& email); | 366 void HandleLoadWallpaper(const std::string& email); |
| 371 void HandleRebootSystem(); | 367 void HandleRebootSystem(); |
| 372 void HandleRemoveUser(const std::string& email); | 368 void HandleRemoveUser(const std::string& email); |
| 373 void HandleShowAddUser(const base::ListValue* args); | 369 void HandleShowAddUser(const base::ListValue* args); |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 bool oobe_ui_observer_added_; | 533 bool oobe_ui_observer_added_; |
| 538 | 534 |
| 539 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; | 535 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; |
| 540 | 536 |
| 541 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 537 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 542 }; | 538 }; |
| 543 | 539 |
| 544 } // namespace chromeos | 540 } // namespace chromeos |
| 545 | 541 |
| 546 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 542 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |