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