| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_AUTO_ENROLLMENT_CHECK_SCREEN_VI
EW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CHECK_SCREEN_VI
EW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CHECK_SCREEN_VI
EW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CHECK_SCREEN_VI
EW_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/chromeos/login/oobe_screen.h" |
| 9 |
| 8 namespace chromeos { | 10 namespace chromeos { |
| 9 | 11 |
| 10 // Interface between auto-enrollment check screen and its representation. | 12 // Interface between auto-enrollment check screen and its representation. |
| 11 // Note, do not forget to call OnViewDestroyed in the dtor. | 13 // Note, do not forget to call OnViewDestroyed in the dtor. |
| 12 class AutoEnrollmentCheckScreenView { | 14 class AutoEnrollmentCheckScreenView { |
| 13 public: | 15 public: |
| 14 // Allows us to get info from auto-enrollment check screen that we need. | 16 // Allows us to get info from auto-enrollment check screen that we need. |
| 15 class Delegate { | 17 class Delegate { |
| 16 public: | 18 public: |
| 17 virtual ~Delegate() {} | 19 virtual ~Delegate() {} |
| 18 | 20 |
| 19 // This method is called, when view is being destroyed. Note, if Delegate | 21 // This method is called, when view is being destroyed. Note, if Delegate |
| 20 // is destroyed earlier then it has to call SetDelegate(NULL). | 22 // is destroyed earlier then it has to call SetDelegate(NULL). |
| 21 virtual void OnViewDestroyed(AutoEnrollmentCheckScreenView* view) = 0; | 23 virtual void OnViewDestroyed(AutoEnrollmentCheckScreenView* view) = 0; |
| 22 }; | 24 }; |
| 23 | 25 |
| 26 constexpr static OobeScreen kScreenId = |
| 27 OobeScreen::SCREEN_AUTO_ENROLLMENT_CHECK; |
| 28 |
| 24 virtual ~AutoEnrollmentCheckScreenView() {} | 29 virtual ~AutoEnrollmentCheckScreenView() {} |
| 25 | 30 |
| 26 virtual void Show() = 0; | 31 virtual void Show() = 0; |
| 27 virtual void SetDelegate(Delegate* delegate) = 0; | 32 virtual void SetDelegate(Delegate* delegate) = 0; |
| 28 }; | 33 }; |
| 29 | 34 |
| 30 } // namespace chromeos | 35 } // namespace chromeos |
| 31 | 36 |
| 32 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CHECK_SCREEN
_VIEW_H_ | 37 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CHECK_SCREEN
_VIEW_H_ |
| OLD | NEW |