| 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 #include "chrome/browser/chromeos/login/oobe_screen.h" |
| 9 | 10 |
| 10 namespace chromeos { | 11 namespace chromeos { |
| 11 | 12 |
| 12 class EulaScreen; | 13 class EulaScreen; |
| 13 | 14 |
| 14 // Interface between eula screen and its representation, either WebUI | 15 // Interface between eula screen and its representation, either WebUI |
| 15 // or Views one. Note, do not forget to call OnViewDestroyed in the | 16 // or Views one. Note, do not forget to call OnViewDestroyed in the |
| 16 // dtor. | 17 // dtor. |
| 17 class EulaView { | 18 class EulaView { |
| 18 public: | 19 public: |
| 20 constexpr static OobeScreen kScreenId = OobeScreen::SCREEN_OOBE_EULA; |
| 21 |
| 19 virtual ~EulaView() {} | 22 virtual ~EulaView() {} |
| 20 | 23 |
| 21 virtual void Show() = 0; | 24 virtual void Show() = 0; |
| 22 virtual void Hide() = 0; | 25 virtual void Hide() = 0; |
| 23 virtual void Bind(EulaScreen* screen) = 0; | 26 virtual void Bind(EulaScreen* screen) = 0; |
| 24 virtual void Unbind() = 0; | 27 virtual void Unbind() = 0; |
| 25 virtual void OnPasswordFetched(const std::string& tpm_password) = 0; | 28 virtual void OnPasswordFetched(const std::string& tpm_password) = 0; |
| 26 }; | 29 }; |
| 27 | 30 |
| 28 } // namespace chromeos | 31 } // namespace chromeos |
| 29 | 32 |
| 30 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_VIEW_H_ | 33 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_VIEW_H_ |
| OLD | NEW |