| 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_EULA_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| 11 | 11 |
| 12 class EulaModel; | 12 class EulaModel; |
| 13 | 13 |
| 14 // Interface between eula screen and its representation, either WebUI | 14 // Interface between eula screen and its representation, either WebUI |
| 15 // or Views one. Note, do not forget to call OnViewDestroyed in the | 15 // or Views one. Note, do not forget to call OnViewDestroyed in the |
| 16 // dtor. | 16 // dtor. |
| 17 class EulaView { | 17 class EulaView { |
| 18 public: | 18 public: |
| 19 virtual ~EulaView() {} | 19 virtual ~EulaView() {} |
| 20 | 20 |
| 21 virtual void PrepareToShow() = 0; | |
| 22 virtual void Show() = 0; | 21 virtual void Show() = 0; |
| 23 virtual void Hide() = 0; | 22 virtual void Hide() = 0; |
| 24 virtual void Bind(EulaModel& model) = 0; | 23 virtual void Bind(EulaModel& model) = 0; |
| 25 virtual void Unbind() = 0; | 24 virtual void Unbind() = 0; |
| 26 virtual void OnPasswordFetched(const std::string& tpm_password) = 0; | 25 virtual void OnPasswordFetched(const std::string& tpm_password) = 0; |
| 27 }; | 26 }; |
| 28 | 27 |
| 29 } // namespace chromeos | 28 } // namespace chromeos |
| 30 | 29 |
| 31 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_VIEW_H_ | 30 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_VIEW_H_ |
| OLD | NEW |