| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_ENCRYPTION_MIGRATION_SCREEN_VIEW_H
_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_VIEW_H
_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_VIEW_H
_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_VIEW_H
_ |
| 7 | 7 |
| 8 #include "chrome/browser/chromeos/login/oobe_screen.h" | 8 #include "chrome/browser/chromeos/login/oobe_screen.h" |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| 11 | 11 |
| 12 class UserContext; |
| 13 |
| 12 class EncryptionMigrationScreenView { | 14 class EncryptionMigrationScreenView { |
| 13 public: | 15 public: |
| 14 class Delegate { | 16 class Delegate { |
| 15 public: | 17 public: |
| 16 virtual ~Delegate() {} | 18 virtual ~Delegate() {} |
| 17 | 19 |
| 18 // Called when screen is exited. | 20 // Called when screen is exited. |
| 19 virtual void OnExit() = 0; | 21 virtual void OnExit() = 0; |
| 20 | 22 |
| 21 // This method is called, when view is being destroyed. Note, if Delegate is | 23 // This method is called, when view is being destroyed. Note, if Delegate is |
| 22 // destroyed earlier then it has to call SetDelegate(NULL). | 24 // destroyed earlier then it has to call SetDelegate(NULL). |
| 23 virtual void OnViewDestroyed(EncryptionMigrationScreenView* view) = 0; | 25 virtual void OnViewDestroyed(EncryptionMigrationScreenView* view) = 0; |
| 24 }; | 26 }; |
| 25 | 27 |
| 26 constexpr static OobeScreen kScreenId = | 28 constexpr static OobeScreen kScreenId = |
| 27 OobeScreen::SCREEN_ENCRYPTION_MIGRATION; | 29 OobeScreen::SCREEN_ENCRYPTION_MIGRATION; |
| 28 | 30 |
| 29 virtual ~EncryptionMigrationScreenView() {} | 31 virtual ~EncryptionMigrationScreenView() {} |
| 30 | 32 |
| 31 virtual void Show() = 0; | 33 virtual void Show() = 0; |
| 32 virtual void Hide() = 0; | 34 virtual void Hide() = 0; |
| 33 virtual void SetDelegate(Delegate* delegate) = 0; | 35 virtual void SetDelegate(Delegate* delegate) = 0; |
| 36 virtual void SetUserContext(const UserContext& user_context) = 0; |
| 34 }; | 37 }; |
| 35 | 38 |
| 36 } // namespace chromeos | 39 } // namespace chromeos |
| 37 | 40 |
| 38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_VIE
W_H_ | 41 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_VIE
W_H_ |
| OLD | NEW |