| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_CHROMEOS_LOGIN_APP_LAUNCH_SIGNIN_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_SIGNIN_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_SIGNIN_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_SIGNIN_SCREEN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 void InitOwnerUserList(); | 50 void InitOwnerUserList(); |
| 51 UserManager* GetUserManager(); | 51 UserManager* GetUserManager(); |
| 52 | 52 |
| 53 // SigninScreenHandlerDelegate implementation: | 53 // SigninScreenHandlerDelegate implementation: |
| 54 virtual void CancelPasswordChangedFlow() OVERRIDE; | 54 virtual void CancelPasswordChangedFlow() OVERRIDE; |
| 55 virtual void CancelUserAdding() OVERRIDE; | 55 virtual void CancelUserAdding() OVERRIDE; |
| 56 virtual void CreateAccount() OVERRIDE; | 56 virtual void CreateAccount() OVERRIDE; |
| 57 virtual void CompleteLogin(const UserContext& user_context) OVERRIDE; | 57 virtual void CompleteLogin(const UserContext& user_context) OVERRIDE; |
| 58 virtual void Login(const UserContext& user_context) OVERRIDE; | 58 virtual void Login(const UserContext& user_context, |
| 59 virtual void LoginAsRetailModeUser() OVERRIDE; | 59 const SigninSpecifics& specifics) OVERRIDE; |
| 60 virtual void LoginAsGuest() OVERRIDE; | |
| 61 virtual void MigrateUserData(const std::string& old_password) OVERRIDE; | 60 virtual void MigrateUserData(const std::string& old_password) OVERRIDE; |
| 62 virtual void LoginAsPublicAccount(const std::string& username) OVERRIDE; | |
| 63 virtual void LoadWallpaper(const std::string& username) OVERRIDE; | 61 virtual void LoadWallpaper(const std::string& username) OVERRIDE; |
| 64 virtual void LoadSigninWallpaper() OVERRIDE; | 62 virtual void LoadSigninWallpaper() OVERRIDE; |
| 65 virtual void OnSigninScreenReady() OVERRIDE; | 63 virtual void OnSigninScreenReady() OVERRIDE; |
| 66 virtual void RemoveUser(const std::string& username) OVERRIDE; | 64 virtual void RemoveUser(const std::string& username) OVERRIDE; |
| 67 virtual void ResyncUserData() OVERRIDE; | 65 virtual void ResyncUserData() OVERRIDE; |
| 68 virtual void ShowEnterpriseEnrollmentScreen() OVERRIDE; | 66 virtual void ShowEnterpriseEnrollmentScreen() OVERRIDE; |
| 69 virtual void ShowKioskEnableScreen() OVERRIDE; | 67 virtual void ShowKioskEnableScreen() OVERRIDE; |
| 70 virtual void ShowKioskAutolaunchScreen() OVERRIDE; | 68 virtual void ShowKioskAutolaunchScreen() OVERRIDE; |
| 71 virtual void ShowWrongHWIDScreen() OVERRIDE; | 69 virtual void ShowWrongHWIDScreen() OVERRIDE; |
| 72 virtual void SetWebUIHandler( | 70 virtual void SetWebUIHandler( |
| 73 LoginDisplayWebUIHandler* webui_handler) OVERRIDE; | 71 LoginDisplayWebUIHandler* webui_handler) OVERRIDE; |
| 74 virtual void ShowSigninScreenForCreds(const std::string& username, | 72 virtual void ShowSigninScreenForCreds(const std::string& username, |
| 75 const std::string& password); | 73 const std::string& password); |
| 76 virtual const UserList& GetUsers() const OVERRIDE; | 74 virtual const UserList& GetUsers() const OVERRIDE; |
| 77 virtual bool IsShowGuest() const OVERRIDE; | 75 virtual bool IsShowGuest() const OVERRIDE; |
| 78 virtual bool IsShowUsers() const OVERRIDE; | 76 virtual bool IsShowUsers() const OVERRIDE; |
| 79 virtual bool IsSigninInProgress() const OVERRIDE; | 77 virtual bool IsSigninInProgress() const OVERRIDE; |
| 80 virtual bool IsUserSigninCompleted() const OVERRIDE; | 78 virtual bool IsUserSigninCompleted() const OVERRIDE; |
| 81 virtual void SetDisplayEmail(const std::string& email) OVERRIDE; | 79 virtual void SetDisplayEmail(const std::string& email) OVERRIDE; |
| 82 virtual void Signout() OVERRIDE; | 80 virtual void Signout() OVERRIDE; |
| 83 virtual void LoginAsKioskApp(const std::string& app_id, | |
| 84 bool diagnostic_mode) OVERRIDE; | |
| 85 virtual void HandleGetUsers() OVERRIDE; | 81 virtual void HandleGetUsers() OVERRIDE; |
| 86 virtual void SetAuthType( | 82 virtual void SetAuthType( |
| 87 const std::string& username, | 83 const std::string& username, |
| 88 ScreenlockBridge::LockHandler::AuthType auth_type) OVERRIDE; | 84 ScreenlockBridge::LockHandler::AuthType auth_type) OVERRIDE; |
| 89 virtual ScreenlockBridge::LockHandler::AuthType GetAuthType( | 85 virtual ScreenlockBridge::LockHandler::AuthType GetAuthType( |
| 90 const std::string& username) const OVERRIDE; | 86 const std::string& username) const OVERRIDE; |
| 91 | 87 |
| 92 // LoginStatusConsumer implementation: | 88 // LoginStatusConsumer implementation: |
| 93 virtual void OnLoginFailure(const LoginFailure& error) OVERRIDE; | 89 virtual void OnLoginFailure(const LoginFailure& error) OVERRIDE; |
| 94 virtual void OnLoginSuccess(const UserContext& user_context) OVERRIDE; | 90 virtual void OnLoginSuccess(const UserContext& user_context) OVERRIDE; |
| 95 | 91 |
| 96 OobeUI* oobe_ui_; | 92 OobeUI* oobe_ui_; |
| 97 Delegate* delegate_; | 93 Delegate* delegate_; |
| 98 LoginDisplayWebUIHandler* webui_handler_; | 94 LoginDisplayWebUIHandler* webui_handler_; |
| 99 scoped_refptr<Authenticator> authenticator_; | 95 scoped_refptr<Authenticator> authenticator_; |
| 100 | 96 |
| 101 // This list should have at most one user, and that user should be the owner. | 97 // This list should have at most one user, and that user should be the owner. |
| 102 UserList owner_user_list_; | 98 UserList owner_user_list_; |
| 103 | 99 |
| 104 static UserManager* test_user_manager_; | 100 static UserManager* test_user_manager_; |
| 105 | 101 |
| 106 DISALLOW_COPY_AND_ASSIGN(AppLaunchSigninScreen); | 102 DISALLOW_COPY_AND_ASSIGN(AppLaunchSigninScreen); |
| 107 }; | 103 }; |
| 108 | 104 |
| 109 } // namespace chromeos | 105 } // namespace chromeos |
| 110 | 106 |
| 111 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_SIGNIN_SCREEN_H_ | 107 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_SIGNIN_SCREEN_H_ |
| OLD | NEW |