| 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_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 static EnrollmentScreen* Get(ScreenManager* manager); | 47 static EnrollmentScreen* Get(ScreenManager* manager); |
| 48 | 48 |
| 49 // Setup how this screen will handle enrollment. | 49 // Setup how this screen will handle enrollment. |
| 50 // |shark_controller| is an interface that is used to communicate with a | 50 // |shark_controller| is an interface that is used to communicate with a |
| 51 // remora device or a slave device for remote enrollment. | 51 // remora device or a slave device for remote enrollment. |
| 52 void SetParameters( | 52 void SetParameters( |
| 53 const policy::EnrollmentConfig& enrollment_config, | 53 const policy::EnrollmentConfig& enrollment_config, |
| 54 pairing_chromeos::ControllerPairingController* shark_controller); | 54 pairing_chromeos::ControllerPairingController* shark_controller); |
| 55 | 55 |
| 56 // BaseScreen implementation: | 56 // BaseScreen implementation: |
| 57 void PrepareToShow() override; | |
| 58 void Show() override; | 57 void Show() override; |
| 59 void Hide() override; | 58 void Hide() override; |
| 60 std::string GetName() const override; | 59 std::string GetName() const override; |
| 61 | 60 |
| 62 // EnrollmentScreenActor::Controller implementation: | 61 // EnrollmentScreenActor::Controller implementation: |
| 63 void OnLoginDone(const std::string& user, | 62 void OnLoginDone(const std::string& user, |
| 64 const std::string& auth_code) override; | 63 const std::string& auth_code) override; |
| 65 void OnRetry() override; | 64 void OnRetry() override; |
| 66 void OnCancel() override; | 65 void OnCancel() override; |
| 67 void OnConfirmationClosed() override; | 66 void OnConfirmationClosed() override; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 std::unique_ptr<base::ElapsedTimer> elapsed_timer_; | 158 std::unique_ptr<base::ElapsedTimer> elapsed_timer_; |
| 160 std::unique_ptr<EnterpriseEnrollmentHelper> enrollment_helper_; | 159 std::unique_ptr<EnterpriseEnrollmentHelper> enrollment_helper_; |
| 161 base::WeakPtrFactory<EnrollmentScreen> weak_ptr_factory_; | 160 base::WeakPtrFactory<EnrollmentScreen> weak_ptr_factory_; |
| 162 | 161 |
| 163 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreen); | 162 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreen); |
| 164 }; | 163 }; |
| 165 | 164 |
| 166 } // namespace chromeos | 165 } // namespace chromeos |
| 167 | 166 |
| 168 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ | 167 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ |
| OLD | NEW |