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, | 58 virtual void Login(const UserContext& user_context) OVERRIDE; |
59 const SigninSpecifics& specifics) OVERRIDE; | 59 virtual void LoginAsRetailModeUser() OVERRIDE; |
| 60 virtual void LoginAsGuest() OVERRIDE; |
60 virtual void MigrateUserData(const std::string& old_password) OVERRIDE; | 61 virtual void MigrateUserData(const std::string& old_password) OVERRIDE; |
| 62 virtual void LoginAsPublicAccount(const std::string& username) OVERRIDE; |
61 virtual void LoadWallpaper(const std::string& username) OVERRIDE; | 63 virtual void LoadWallpaper(const std::string& username) OVERRIDE; |
62 virtual void LoadSigninWallpaper() OVERRIDE; | 64 virtual void LoadSigninWallpaper() OVERRIDE; |
63 virtual void OnSigninScreenReady() OVERRIDE; | 65 virtual void OnSigninScreenReady() OVERRIDE; |
64 virtual void RemoveUser(const std::string& username) OVERRIDE; | 66 virtual void RemoveUser(const std::string& username) OVERRIDE; |
65 virtual void ResyncUserData() OVERRIDE; | 67 virtual void ResyncUserData() OVERRIDE; |
66 virtual void ShowEnterpriseEnrollmentScreen() OVERRIDE; | 68 virtual void ShowEnterpriseEnrollmentScreen() OVERRIDE; |
67 virtual void ShowKioskEnableScreen() OVERRIDE; | 69 virtual void ShowKioskEnableScreen() OVERRIDE; |
68 virtual void ShowKioskAutolaunchScreen() OVERRIDE; | 70 virtual void ShowKioskAutolaunchScreen() OVERRIDE; |
69 virtual void ShowWrongHWIDScreen() OVERRIDE; | 71 virtual void ShowWrongHWIDScreen() OVERRIDE; |
70 virtual void SetWebUIHandler( | 72 virtual void SetWebUIHandler( |
71 LoginDisplayWebUIHandler* webui_handler) OVERRIDE; | 73 LoginDisplayWebUIHandler* webui_handler) OVERRIDE; |
72 virtual void ShowSigninScreenForCreds(const std::string& username, | 74 virtual void ShowSigninScreenForCreds(const std::string& username, |
73 const std::string& password); | 75 const std::string& password); |
74 virtual const UserList& GetUsers() const OVERRIDE; | 76 virtual const UserList& GetUsers() const OVERRIDE; |
75 virtual bool IsShowGuest() const OVERRIDE; | 77 virtual bool IsShowGuest() const OVERRIDE; |
76 virtual bool IsShowUsers() const OVERRIDE; | 78 virtual bool IsShowUsers() const OVERRIDE; |
77 virtual bool IsSigninInProgress() const OVERRIDE; | 79 virtual bool IsSigninInProgress() const OVERRIDE; |
78 virtual bool IsUserSigninCompleted() const OVERRIDE; | 80 virtual bool IsUserSigninCompleted() const OVERRIDE; |
79 virtual void SetDisplayEmail(const std::string& email) OVERRIDE; | 81 virtual void SetDisplayEmail(const std::string& email) OVERRIDE; |
80 virtual void Signout() OVERRIDE; | 82 virtual void Signout() OVERRIDE; |
| 83 virtual void LoginAsKioskApp(const std::string& app_id, |
| 84 bool diagnostic_mode) OVERRIDE; |
81 virtual void HandleGetUsers() OVERRIDE; | 85 virtual void HandleGetUsers() OVERRIDE; |
82 virtual void SetAuthType( | 86 virtual void SetAuthType( |
83 const std::string& username, | 87 const std::string& username, |
84 ScreenlockBridge::LockHandler::AuthType auth_type) OVERRIDE; | 88 ScreenlockBridge::LockHandler::AuthType auth_type) OVERRIDE; |
85 virtual ScreenlockBridge::LockHandler::AuthType GetAuthType( | 89 virtual ScreenlockBridge::LockHandler::AuthType GetAuthType( |
86 const std::string& username) const OVERRIDE; | 90 const std::string& username) const OVERRIDE; |
87 | 91 |
88 // LoginStatusConsumer implementation: | 92 // LoginStatusConsumer implementation: |
89 virtual void OnLoginFailure(const LoginFailure& error) OVERRIDE; | 93 virtual void OnLoginFailure(const LoginFailure& error) OVERRIDE; |
90 virtual void OnLoginSuccess(const UserContext& user_context) OVERRIDE; | 94 virtual void OnLoginSuccess(const UserContext& user_context) OVERRIDE; |
91 | 95 |
92 OobeUI* oobe_ui_; | 96 OobeUI* oobe_ui_; |
93 Delegate* delegate_; | 97 Delegate* delegate_; |
94 LoginDisplayWebUIHandler* webui_handler_; | 98 LoginDisplayWebUIHandler* webui_handler_; |
95 scoped_refptr<Authenticator> authenticator_; | 99 scoped_refptr<Authenticator> authenticator_; |
96 | 100 |
97 // This list should have at most one user, and that user should be the owner. | 101 // This list should have at most one user, and that user should be the owner. |
98 UserList owner_user_list_; | 102 UserList owner_user_list_; |
99 | 103 |
100 static UserManager* test_user_manager_; | 104 static UserManager* test_user_manager_; |
101 | 105 |
102 DISALLOW_COPY_AND_ASSIGN(AppLaunchSigninScreen); | 106 DISALLOW_COPY_AND_ASSIGN(AppLaunchSigninScreen); |
103 }; | 107 }; |
104 | 108 |
105 } // namespace chromeos | 109 } // namespace chromeos |
106 | 110 |
107 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_SIGNIN_SCREEN_H_ | 111 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_SIGNIN_SCREEN_H_ |
OLD | NEW |