| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WEBUI_LOGIN_DISPLAY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 virtual void ShowError(int error_msg_id, | 68 virtual void ShowError(int error_msg_id, |
| 69 int login_attempts, | 69 int login_attempts, |
| 70 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; | 70 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; |
| 71 | 71 |
| 72 // SigninScreenHandlerDelegate implementation: | 72 // SigninScreenHandlerDelegate implementation: |
| 73 virtual void CompleteLogin(const std::string& username, | 73 virtual void CompleteLogin(const std::string& username, |
| 74 const std::string& password) OVERRIDE; | 74 const std::string& password) OVERRIDE; |
| 75 virtual void Login(const std::string& username, | 75 virtual void Login(const std::string& username, |
| 76 const std::string& password) OVERRIDE; | 76 const std::string& password) OVERRIDE; |
| 77 virtual void LoginAsGuest() OVERRIDE; | 77 virtual void LoginAsGuest() OVERRIDE; |
| 78 virtual void RemoveUser(const std::string& username) OVERRIDE; |
| 78 virtual void ShowEnterpriseEnrollmentScreen() OVERRIDE; | 79 virtual void ShowEnterpriseEnrollmentScreen() OVERRIDE; |
| 79 virtual void SetWebUIHandler( | 80 virtual void SetWebUIHandler( |
| 80 LoginDisplayWebUIHandler* webui_handler) OVERRIDE; | 81 LoginDisplayWebUIHandler* webui_handler) OVERRIDE; |
| 81 | 82 |
| 82 void set_login_window(views::Widget* login_window) { | 83 void set_login_window(views::Widget* login_window) { |
| 83 login_window_ = login_window; | 84 login_window_ = login_window; |
| 84 } | 85 } |
| 85 | 86 |
| 87 const std::vector<UserManager::User>& users() const { |
| 88 return users_; |
| 89 } |
| 90 |
| 91 bool show_guest() const { |
| 92 return show_guest_; |
| 93 } |
| 94 |
| 95 bool show_new_user() const { |
| 96 return show_new_user_; |
| 97 } |
| 98 |
| 86 private: | 99 private: |
| 87 // Singleton implementation: | 100 // Singleton implementation: |
| 88 friend struct DefaultSingletonTraits<WebUILoginDisplay>; | 101 friend struct DefaultSingletonTraits<WebUILoginDisplay>; |
| 89 WebUILoginDisplay(); | 102 WebUILoginDisplay(); |
| 90 | 103 |
| 91 // Set of Users in the systemvisible UserControllers. | 104 // Set of Users that are visible. |
| 92 std::vector<UserManager::User> users_; | 105 std::vector<UserManager::User> users_; |
| 93 | 106 |
| 107 // Whether to show guest login. |
| 108 bool show_guest_; |
| 109 |
| 110 // Whether to show add new user. |
| 111 bool show_new_user_; |
| 112 |
| 94 // Container of the screen we are displaying | 113 // Container of the screen we are displaying |
| 95 views::Widget* login_window_; | 114 views::Widget* login_window_; |
| 96 | 115 |
| 97 // Reference to the WebUI handling layer for the login screen | 116 // Reference to the WebUI handling layer for the login screen |
| 98 LoginDisplayWebUIHandler* webui_handler_; | 117 LoginDisplayWebUIHandler* webui_handler_; |
| 99 | 118 |
| 100 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplay); | 119 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplay); |
| 101 }; | 120 }; |
| 102 | 121 |
| 103 } // namespace chromeos | 122 } // namespace chromeos |
| 104 | 123 |
| 105 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_H_ | 124 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_H_ |
| OLD | NEW |