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 21 matching lines...) Expand all Loading... |
32 public: | 32 public: |
33 class Delegate { | 33 class Delegate { |
34 public: | 34 public: |
35 virtual void OnOwnerSigninSuccess() = 0; | 35 virtual void OnOwnerSigninSuccess() = 0; |
36 | 36 |
37 protected: | 37 protected: |
38 virtual ~Delegate() {} | 38 virtual ~Delegate() {} |
39 }; | 39 }; |
40 | 40 |
41 AppLaunchSigninScreen(OobeUI* oobe_display, Delegate *delegate); | 41 AppLaunchSigninScreen(OobeUI* oobe_display, Delegate *delegate); |
42 virtual ~AppLaunchSigninScreen(); | 42 ~AppLaunchSigninScreen() override; |
43 | 43 |
44 void Show(); | 44 void Show(); |
45 | 45 |
46 static void SetUserManagerForTesting(user_manager::UserManager* user_manager); | 46 static void SetUserManagerForTesting(user_manager::UserManager* user_manager); |
47 | 47 |
48 private: | 48 private: |
49 void InitOwnerUserList(); | 49 void InitOwnerUserList(); |
50 user_manager::UserManager* GetUserManager(); | 50 user_manager::UserManager* GetUserManager(); |
51 | 51 |
52 // SigninScreenHandlerDelegate implementation: | 52 // SigninScreenHandlerDelegate implementation: |
53 virtual void CancelPasswordChangedFlow() override; | 53 void CancelPasswordChangedFlow() override; |
54 virtual void CancelUserAdding() override; | 54 void CancelUserAdding() override; |
55 virtual void CreateAccount() override; | 55 void CreateAccount() override; |
56 virtual void CompleteLogin(const UserContext& user_context) override; | 56 void CompleteLogin(const UserContext& user_context) override; |
57 virtual void Login(const UserContext& user_context, | 57 void Login(const UserContext& user_context, |
58 const SigninSpecifics& specifics) override; | 58 const SigninSpecifics& specifics) override; |
59 virtual void MigrateUserData(const std::string& old_password) override; | 59 void MigrateUserData(const std::string& old_password) override; |
60 virtual void LoadWallpaper(const std::string& username) override; | 60 void LoadWallpaper(const std::string& username) override; |
61 virtual void LoadSigninWallpaper() override; | 61 void LoadSigninWallpaper() override; |
62 virtual void OnSigninScreenReady() override; | 62 void OnSigninScreenReady() override; |
63 virtual void RemoveUser(const std::string& username) override; | 63 void RemoveUser(const std::string& username) override; |
64 virtual void ResyncUserData() override; | 64 void ResyncUserData() override; |
65 virtual void ShowEnterpriseEnrollmentScreen() override; | 65 void ShowEnterpriseEnrollmentScreen() override; |
66 virtual void ShowEnableDebuggingScreen() override; | 66 void ShowEnableDebuggingScreen() override; |
67 virtual void ShowKioskEnableScreen() override; | 67 void ShowKioskEnableScreen() override; |
68 virtual void ShowKioskAutolaunchScreen() override; | 68 void ShowKioskAutolaunchScreen() override; |
69 virtual void ShowWrongHWIDScreen() override; | 69 void ShowWrongHWIDScreen() override; |
70 virtual void SetWebUIHandler( | 70 void SetWebUIHandler(LoginDisplayWebUIHandler* webui_handler) override; |
71 LoginDisplayWebUIHandler* webui_handler) override; | |
72 virtual void ShowSigninScreenForCreds(const std::string& username, | 71 virtual void ShowSigninScreenForCreds(const std::string& username, |
73 const std::string& password); | 72 const std::string& password); |
74 virtual const user_manager::UserList& GetUsers() const override; | 73 const user_manager::UserList& GetUsers() const override; |
75 virtual bool IsShowGuest() const override; | 74 bool IsShowGuest() const override; |
76 virtual bool IsShowUsers() const override; | 75 bool IsShowUsers() const override; |
77 virtual bool IsSigninInProgress() const override; | 76 bool IsSigninInProgress() const override; |
78 virtual bool IsUserSigninCompleted() const override; | 77 bool IsUserSigninCompleted() const override; |
79 virtual void SetDisplayEmail(const std::string& email) override; | 78 void SetDisplayEmail(const std::string& email) override; |
80 virtual void Signout() override; | 79 void Signout() override; |
81 virtual void HandleGetUsers() override; | 80 void HandleGetUsers() override; |
82 | 81 |
83 // AuthStatusConsumer implementation: | 82 // AuthStatusConsumer implementation: |
84 virtual void OnAuthFailure(const AuthFailure& error) override; | 83 void OnAuthFailure(const AuthFailure& error) override; |
85 virtual void OnAuthSuccess(const UserContext& user_context) override; | 84 void OnAuthSuccess(const UserContext& user_context) override; |
86 | 85 |
87 OobeUI* oobe_ui_; | 86 OobeUI* oobe_ui_; |
88 Delegate* delegate_; | 87 Delegate* delegate_; |
89 LoginDisplayWebUIHandler* webui_handler_; | 88 LoginDisplayWebUIHandler* webui_handler_; |
90 scoped_refptr<Authenticator> authenticator_; | 89 scoped_refptr<Authenticator> authenticator_; |
91 | 90 |
92 // This list should have at most one user, and that user should be the owner. | 91 // This list should have at most one user, and that user should be the owner. |
93 user_manager::UserList owner_user_list_; | 92 user_manager::UserList owner_user_list_; |
94 | 93 |
95 static user_manager::UserManager* test_user_manager_; | 94 static user_manager::UserManager* test_user_manager_; |
96 | 95 |
97 DISALLOW_COPY_AND_ASSIGN(AppLaunchSigninScreen); | 96 DISALLOW_COPY_AND_ASSIGN(AppLaunchSigninScreen); |
98 }; | 97 }; |
99 | 98 |
100 } // namespace chromeos | 99 } // namespace chromeos |
101 | 100 |
102 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_SIGNIN_SCREEN_H_ | 101 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_APP_LAUNCH_SIGNIN_SCREEN_H_ |
OLD | NEW |