| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_LOGIN_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_SCREEN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // NewUserView::Delegate: | 36 // NewUserView::Delegate: |
| 37 virtual void OnLogin(const std::string& username, | 37 virtual void OnLogin(const std::string& username, |
| 38 const std::string& password); | 38 const std::string& password); |
| 39 virtual void OnLoginOffTheRecord(); | 39 virtual void OnLoginOffTheRecord(); |
| 40 virtual void OnCreateAccount(); | 40 virtual void OnCreateAccount(); |
| 41 virtual void AddStartUrl(const GURL& start_url) { start_url_ = start_url; } | 41 virtual void AddStartUrl(const GURL& start_url) { start_url_ = start_url; } |
| 42 virtual void ClearErrors(); | 42 virtual void ClearErrors(); |
| 43 virtual void NavigateAway() {} | 43 virtual void NavigateAway() {} |
| 44 | 44 |
| 45 // Overridden from LoginStatusConsumer. | 45 // Overridden from LoginStatusConsumer. |
| 46 virtual void SetLoginFailure(const LoginFailure& error) {}; |
| 46 virtual void OnLoginFailure(const LoginFailure& error); | 47 virtual void OnLoginFailure(const LoginFailure& error); |
| 47 virtual void OnLoginSuccess( | 48 virtual void OnLoginSuccess( |
| 48 const std::string& username, | 49 const std::string& username, |
| 49 const std::string& password, | 50 const std::string& password, |
| 50 const GaiaAuthConsumer::ClientLoginResult& credentials, | 51 const GaiaAuthConsumer::ClientLoginResult& credentials, |
| 51 bool pending_requests); | 52 bool pending_requests); |
| 52 virtual void OnOffTheRecordLoginSuccess(); | 53 virtual void OnOffTheRecordLoginSuccess(); |
| 53 | 54 |
| 54 // Overridden from views::InfoBubbleDelegate. | 55 // Overridden from views::InfoBubbleDelegate. |
| 55 virtual void InfoBubbleClosing(InfoBubble* info_bubble, | 56 virtual void InfoBubbleClosing(InfoBubble* info_bubble, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 80 | 81 |
| 81 // URL that will be opened on browser startup. | 82 // URL that will be opened on browser startup. |
| 82 GURL start_url_; | 83 GURL start_url_; |
| 83 | 84 |
| 84 DISALLOW_COPY_AND_ASSIGN(LoginScreen); | 85 DISALLOW_COPY_AND_ASSIGN(LoginScreen); |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 } // namespace chromeos | 88 } // namespace chromeos |
| 88 | 89 |
| 89 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_SCREEN_H_ | 90 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_SCREEN_H_ |
| OLD | NEW |