| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ENROLLMENT_ENROLLMENT_SCREEN_ACTOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_ACTOR_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_ACTOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_ACTOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper.
h" | 10 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper.
h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 virtual void OnDeviceAttributeProvided(const std::string& asset_id, | 36 virtual void OnDeviceAttributeProvided(const std::string& asset_id, |
| 37 const std::string& location) = 0; | 37 const std::string& location) = 0; |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 virtual ~EnrollmentScreenActor() {} | 40 virtual ~EnrollmentScreenActor() {} |
| 41 | 41 |
| 42 // Initializes the actor with parameters. | 42 // Initializes the actor with parameters. |
| 43 virtual void SetParameters(Controller* controller, | 43 virtual void SetParameters(Controller* controller, |
| 44 const policy::EnrollmentConfig& config) = 0; | 44 const policy::EnrollmentConfig& config) = 0; |
| 45 | 45 |
| 46 // Prepare the contents to showing. | |
| 47 virtual void PrepareToShow() = 0; | |
| 48 | |
| 49 // Shows the contents of the screen. | 46 // Shows the contents of the screen. |
| 50 virtual void Show() = 0; | 47 virtual void Show() = 0; |
| 51 | 48 |
| 52 // Hides the contents of the screen. | 49 // Hides the contents of the screen. |
| 53 virtual void Hide() = 0; | 50 virtual void Hide() = 0; |
| 54 | 51 |
| 55 // Shows the signin screen. | 52 // Shows the signin screen. |
| 56 virtual void ShowSigninScreen() = 0; | 53 virtual void ShowSigninScreen() = 0; |
| 57 | 54 |
| 58 // Shows the AD domain joining screen. | 55 // Shows the AD domain joining screen. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 75 // Show non-authentication error. | 72 // Show non-authentication error. |
| 76 virtual void ShowOtherError(EnterpriseEnrollmentHelper::OtherError error) = 0; | 73 virtual void ShowOtherError(EnterpriseEnrollmentHelper::OtherError error) = 0; |
| 77 | 74 |
| 78 // Update the UI to report the |status| of the enrollment procedure. | 75 // Update the UI to report the |status| of the enrollment procedure. |
| 79 virtual void ShowEnrollmentStatus(policy::EnrollmentStatus status) = 0; | 76 virtual void ShowEnrollmentStatus(policy::EnrollmentStatus status) = 0; |
| 80 }; | 77 }; |
| 81 | 78 |
| 82 } // namespace chromeos | 79 } // namespace chromeos |
| 83 | 80 |
| 84 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_ACTOR_H_ | 81 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_ACTOR_H_ |
| OLD | NEW |