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 <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 virtual void SelectPod(int index) OVERRIDE; | 65 virtual void SelectPod(int index) OVERRIDE; |
66 virtual void ShowError(int error_msg_id, | 66 virtual void ShowError(int error_msg_id, |
67 int login_attempts, | 67 int login_attempts, |
68 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; | 68 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; |
69 | 69 |
70 // LoginUIHandlerDelegate | 70 // LoginUIHandlerDelegate |
71 virtual void Login(const std::string& username, | 71 virtual void Login(const std::string& username, |
72 const std::string& password) OVERRIDE; | 72 const std::string& password) OVERRIDE; |
73 virtual void LoginAsGuest() OVERRIDE; | 73 virtual void LoginAsGuest() OVERRIDE; |
74 | 74 |
| 75 void set_login_window(views::Widget* login_window) { |
| 76 login_window_ = login_window; |
| 77 } |
| 78 |
75 private: | 79 private: |
76 // Singleton implementation: | 80 // Singleton implementation: |
77 friend struct DefaultSingletonTraits<WebUILoginDisplay>; | 81 friend struct DefaultSingletonTraits<WebUILoginDisplay>; |
78 WebUILoginDisplay(); | 82 WebUILoginDisplay(); |
79 | 83 |
80 // Set of Users in the systemvisible UserControllers. | 84 // Set of Users in the systemvisible UserControllers. |
81 std::vector<UserManager::User> users_; | 85 std::vector<UserManager::User> users_; |
82 | 86 |
83 // Container of the screen we are displaying | 87 // Container of the screen we are displaying |
84 views::Widget* login_window_; | 88 views::Widget* login_window_; |
85 | 89 |
86 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplay); | 90 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplay); |
87 }; | 91 }; |
88 | 92 |
89 } // namespace chromeos | 93 } // namespace chromeos |
90 | 94 |
91 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_H_ | 95 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_H_ |
OLD | NEW |