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_EXISTING_USER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 // Creates and shows login UI for known users. | 53 // Creates and shows login UI for known users. |
54 void Init(const UserVector& users); | 54 void Init(const UserVector& users); |
55 | 55 |
56 // Takes ownership of the specified background widget and view. | 56 // Takes ownership of the specified background widget and view. |
57 void OwnBackground(views::Widget* background_widget, | 57 void OwnBackground(views::Widget* background_widget, |
58 chromeos::BackgroundView* background_view); | 58 chromeos::BackgroundView* background_view); |
59 | 59 |
60 // LoginDisplay::Delegate: implementation | 60 // LoginDisplay::Delegate: implementation |
61 virtual void CreateAccount(); | 61 virtual void CreateAccount(); |
| 62 virtual void FixCaptivePortal(); |
62 virtual void Login(const std::string& username, | 63 virtual void Login(const std::string& username, |
63 const std::string& password); | 64 const std::string& password); |
64 virtual void LoginAsGuest(); | 65 virtual void LoginAsGuest(); |
65 virtual void OnUserSelected(const std::string& username); | 66 virtual void OnUserSelected(const std::string& username); |
66 virtual void RemoveUser(const std::string& username); | 67 virtual void RemoveUser(const std::string& username); |
67 | 68 |
68 // NotificationObserver implementation. | 69 // NotificationObserver implementation. |
69 virtual void Observe(NotificationType type, | 70 virtual void Observe(NotificationType type, |
70 const NotificationSource& source, | 71 const NotificationSource& source, |
71 const NotificationDetails& details); | 72 const NotificationDetails& details); |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 | 167 |
167 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, NewUserLogin); | 168 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, NewUserLogin); |
168 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, CreateAccount); | 169 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, CreateAccount); |
169 | 170 |
170 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); | 171 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); |
171 }; | 172 }; |
172 | 173 |
173 } // namespace chromeos | 174 } // namespace chromeos |
174 | 175 |
175 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 176 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
OLD | NEW |