| 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_SCREENS_HID_DETECTION_SCREEN_ACTOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CHECK_SCREEN_AC
TOR_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_SCREEN_ACTOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CHECK_SCREEN_AC
TOR_H_ |
| 7 | |
| 8 #include <string> | |
| 9 | 7 |
| 10 namespace chromeos { | 8 namespace chromeos { |
| 11 | 9 |
| 12 // Interface between HID detection screen and its representation. | 10 // Interface between auto-enrollment check screen and its representation. |
| 13 // Note, do not forget to call OnActorDestroyed in the dtor. | 11 // Note, do not forget to call OnActorDestroyed in the dtor. |
| 14 class HIDDetectionScreenActor { | 12 class AutoEnrollmentCheckScreenActor { |
| 15 public: | 13 public: |
| 16 // Allows us to get info from HID detection screen that we need. | 14 // Allows us to get info from auto-enrollment check screen that we need. |
| 17 class Delegate { | 15 class Delegate { |
| 18 public: | 16 public: |
| 19 virtual ~Delegate() {} | 17 virtual ~Delegate() {} |
| 20 | 18 |
| 21 // Called when screen is exited. | 19 // Called when screen is exited. |
| 22 virtual void OnExit() = 0; | 20 virtual void OnExit() = 0; |
| 23 | 21 |
| 24 // This method is called, when actor is being destroyed. Note, if Delegate | 22 // This method is called, when actor is being destroyed. Note, if Delegate |
| 25 // is destroyed earlier then it has to call SetDelegate(NULL). | 23 // is destroyed earlier then it has to call SetDelegate(NULL). |
| 26 virtual void OnActorDestroyed(HIDDetectionScreenActor* actor) = 0; | 24 virtual void OnActorDestroyed(AutoEnrollmentCheckScreenActor* actor) = 0; |
| 27 }; | 25 }; |
| 28 | 26 |
| 29 virtual ~HIDDetectionScreenActor() {} | 27 virtual ~AutoEnrollmentCheckScreenActor() {} |
| 30 | 28 |
| 31 virtual void Show() = 0; | 29 virtual void Show() = 0; |
| 32 virtual void Hide() = 0; | |
| 33 virtual void SetDelegate(Delegate* delegate) = 0; | 30 virtual void SetDelegate(Delegate* delegate) = 0; |
| 34 }; | 31 }; |
| 35 | 32 |
| 36 } // namespace chromeos | 33 } // namespace chromeos |
| 37 | 34 |
| 38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_SCREEN_ACTOR_H_ | 35 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CHECK_SCREEN
_ACTOR_H_ |
| 39 | |
| OLD | NEW |