| 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_ENTERPRISE_ENROLLMENT_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 // Initialize view controls and layout. | 37 // Initialize view controls and layout. |
| 38 void Init(); | 38 void Init(); |
| 39 | 39 |
| 40 // Switches to the confirmation screen. | 40 // Switches to the confirmation screen. |
| 41 void ShowConfirmationScreen(); | 41 void ShowConfirmationScreen(); |
| 42 | 42 |
| 43 // Show an authentication error. | 43 // Show an authentication error. |
| 44 void ShowAuthError(const GoogleServiceAuthError& error); | 44 void ShowAuthError(const GoogleServiceAuthError& error); |
| 45 void ShowAccountError(); | 45 void ShowAccountError(); |
| 46 void ShowFatalAuthError(); | 46 void ShowFatalAuthError(); |
| 47 void ShowFatalEnrollmentError(); |
| 48 void ShowNetworkEnrollmentError(); |
| 47 | 49 |
| 48 // EnterpriseEnrollmentUI::Controller implementation. | 50 // EnterpriseEnrollmentUI::Controller implementation. |
| 49 virtual void OnAuthSubmitted(const std::string& user, | 51 virtual void OnAuthSubmitted(const std::string& user, |
| 50 const std::string& password, | 52 const std::string& password, |
| 51 const std::string& captcha, | 53 const std::string& captcha, |
| 52 const std::string& access_code) OVERRIDE; | 54 const std::string& access_code) OVERRIDE; |
| 53 virtual void OnAuthCancelled() OVERRIDE; | 55 virtual void OnAuthCancelled() OVERRIDE; |
| 54 virtual void OnConfirmationClosed() OVERRIDE; | 56 virtual void OnConfirmationClosed() OVERRIDE; |
| 55 | 57 |
| 56 private: | 58 private: |
| (...skipping 10 matching lines...) Expand all Loading... |
| 67 | 69 |
| 68 // Controls. | 70 // Controls. |
| 69 WebPageDomView* enrollment_page_view_; | 71 WebPageDomView* enrollment_page_view_; |
| 70 | 72 |
| 71 DISALLOW_COPY_AND_ASSIGN(EnterpriseEnrollmentView); | 73 DISALLOW_COPY_AND_ASSIGN(EnterpriseEnrollmentView); |
| 72 }; | 74 }; |
| 73 | 75 |
| 74 } // namespace chromeos | 76 } // namespace chromeos |
| 75 | 77 |
| 76 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_VIEW_H_ | 78 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_VIEW_H_ |
| OLD | NEW |