OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UI_WEBUI_LOGIN_DISPLAY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 explicit WebUILoginDisplay(LoginDisplay::Delegate* delegate); | 28 explicit WebUILoginDisplay(LoginDisplay::Delegate* delegate); |
29 ~WebUILoginDisplay() override; | 29 ~WebUILoginDisplay() override; |
30 | 30 |
31 // LoginDisplay implementation: | 31 // LoginDisplay implementation: |
32 void ClearAndEnablePassword() override; | 32 void ClearAndEnablePassword() override; |
33 void Init(const user_manager::UserList& users, | 33 void Init(const user_manager::UserList& users, |
34 bool show_guest, | 34 bool show_guest, |
35 bool show_users, | 35 bool show_users, |
36 bool show_new_user) override; | 36 bool show_new_user) override; |
37 void OnPreferencesChanged() override; | 37 void OnPreferencesChanged() override; |
38 void RemoveUser(const std::string& user_id) override; | 38 void RemoveUser(const user_manager::UserID& user_id) override; |
39 void SetUIEnabled(bool is_enabled) override; | 39 void SetUIEnabled(bool is_enabled) override; |
40 void ShowError(int error_msg_id, | 40 void ShowError(int error_msg_id, |
41 int login_attempts, | 41 int login_attempts, |
42 HelpAppLauncher::HelpTopic help_topic_id) override; | 42 HelpAppLauncher::HelpTopic help_topic_id) override; |
43 void ShowErrorScreen(LoginDisplay::SigninError error_id) override; | 43 void ShowErrorScreen(LoginDisplay::SigninError error_id) override; |
44 void ShowGaiaPasswordChanged(const std::string& username) override; | 44 void ShowGaiaPasswordChanged(const user_manager::UserID& user_id) override; |
45 void ShowPasswordChangedDialog(bool show_password_error, | 45 void ShowPasswordChangedDialog(bool show_password_error, |
46 const std::string& email) override; | 46 const user_manager::UserID& user_id) override; |
47 void ShowSigninUI(const std::string& email) override; | 47 void ShowSigninUI(const user_manager::UserID& user_id) override; |
48 void ShowWhitelistCheckFailedError() override; | 48 void ShowWhitelistCheckFailedError() override; |
49 | 49 |
50 // NativeWindowDelegate implementation: | 50 // NativeWindowDelegate implementation: |
51 gfx::NativeWindow GetNativeWindow() const override; | 51 gfx::NativeWindow GetNativeWindow() const override; |
52 | 52 |
53 // SigninScreenHandlerDelegate implementation: | 53 // SigninScreenHandlerDelegate implementation: |
54 void CancelPasswordChangedFlow() override; | 54 void CancelPasswordChangedFlow() override; |
55 void ResyncUserData() override; | 55 void ResyncUserData() override; |
56 void MigrateUserData(const std::string& old_password) override; | 56 void MigrateUserData(const std::string& old_password) override; |
57 | 57 |
58 void Login(const UserContext& user_context, | 58 void Login(const UserContext& user_context, |
59 const SigninSpecifics& specifics) override; | 59 const SigninSpecifics& specifics) override; |
60 bool IsSigninInProgress() const override; | 60 bool IsSigninInProgress() const override; |
61 void Signout() override; | 61 void Signout() override; |
62 void CreateAccount() override; | 62 void CreateAccount() override; |
63 void CompleteLogin(const UserContext& user_context) override; | 63 void CompleteLogin(const UserContext& user_context) override; |
64 | 64 |
65 void OnSigninScreenReady() override; | 65 void OnSigninScreenReady() override; |
66 void CancelUserAdding() override; | 66 void CancelUserAdding() override; |
67 void LoadWallpaper(const std::string& username) override; | 67 void LoadWallpaper(const user_manager::UserID& user_id) override; |
68 void LoadSigninWallpaper() override; | 68 void LoadSigninWallpaper() override; |
69 void ShowEnterpriseEnrollmentScreen() override; | 69 void ShowEnterpriseEnrollmentScreen() override; |
70 void ShowEnableDebuggingScreen() override; | 70 void ShowEnableDebuggingScreen() override; |
71 void ShowKioskEnableScreen() override; | 71 void ShowKioskEnableScreen() override; |
72 void ShowKioskAutolaunchScreen() override; | 72 void ShowKioskAutolaunchScreen() override; |
73 void ShowWrongHWIDScreen() override; | 73 void ShowWrongHWIDScreen() override; |
74 void SetWebUIHandler(LoginDisplayWebUIHandler* webui_handler) override; | 74 void SetWebUIHandler(LoginDisplayWebUIHandler* webui_handler) override; |
75 virtual void ShowSigninScreenForCreds(const std::string& username, | 75 virtual void ShowSigninScreenForCreds(const user_manager::UserID& user_id, |
76 const std::string& password); | 76 const std::string& password); |
77 bool IsShowGuest() const override; | 77 bool IsShowGuest() const override; |
78 bool IsShowUsers() const override; | 78 bool IsShowUsers() const override; |
79 bool IsUserSigninCompleted() const override; | 79 bool IsUserSigninCompleted() const override; |
80 void SetDisplayEmail(const std::string& email) override; | 80 void SetDisplayEmail(const std::string& email) override; |
81 | 81 |
82 void HandleGetUsers() override; | 82 void HandleGetUsers() override; |
83 void CheckUserStatus(const std::string& user_id) override; | 83 void CheckUserStatus(const user_manager::UserID& user_id) override; |
84 const user_manager::UserList& GetUsers() const override; | 84 const user_manager::UserList& GetUsers() const override; |
85 | 85 |
86 // ui::UserActivityDetector implementation: | 86 // ui::UserActivityDetector implementation: |
87 void OnUserActivity(const ui::Event* event) override; | 87 void OnUserActivity(const ui::Event* event) override; |
88 | 88 |
89 private: | 89 private: |
90 | 90 |
91 // Whether to show guest login. | 91 // Whether to show guest login. |
92 bool show_guest_; | 92 bool show_guest_; |
93 | 93 |
94 // Weather to show the user pods or a GAIA sign in. | 94 // Weather to show the user pods or a GAIA sign in. |
95 // Public sessions are always shown. | 95 // Public sessions are always shown. |
96 bool show_users_; | 96 bool show_users_; |
97 | 97 |
98 // Whether to show add new user. | 98 // Whether to show add new user. |
99 bool show_new_user_; | 99 bool show_new_user_; |
100 | 100 |
101 // Reference to the WebUI handling layer for the login screen | 101 // Reference to the WebUI handling layer for the login screen |
102 LoginDisplayWebUIHandler* webui_handler_; | 102 LoginDisplayWebUIHandler* webui_handler_; |
103 | 103 |
104 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplay); | 104 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplay); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace chromeos | 107 } // namespace chromeos |
108 | 108 |
109 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_ | 109 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_DISPLAY_H_ |
OLD | NEW |