| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_ARC_TERMS_OF_SERVICE_SCREEN_VIEW_H
_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_TERMS_OF_SERVICE_SCREEN_VIEW_H
_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_TERMS_OF_SERVICE_SCREEN_VIEW_H
_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_TERMS_OF_SERVICE_SCREEN_VIEW_H
_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "chrome/browser/chromeos/login/oobe_screen.h" |
| 11 | 12 |
| 12 namespace chromeos { | 13 namespace chromeos { |
| 13 | 14 |
| 14 class ArcTermsOfServiceScreenViewObserver; | 15 class ArcTermsOfServiceScreenViewObserver; |
| 15 | 16 |
| 16 // Interface for dependency injection between TermsOfServiceScreen and its | 17 // Interface for dependency injection between TermsOfServiceScreen and its |
| 17 // WebUI representation. | 18 // WebUI representation. |
| 18 class ArcTermsOfServiceScreenView { | 19 class ArcTermsOfServiceScreenView { |
| 19 public: | 20 public: |
| 21 constexpr static OobeScreen kScreenId = |
| 22 OobeScreen::SCREEN_ARC_TERMS_OF_SERVICE; |
| 23 |
| 20 virtual ~ArcTermsOfServiceScreenView() = default; | 24 virtual ~ArcTermsOfServiceScreenView() = default; |
| 21 | 25 |
| 22 // Adds/Removes observer for view. | 26 // Adds/Removes observer for view. |
| 23 virtual void AddObserver(ArcTermsOfServiceScreenViewObserver* observer) = 0; | 27 virtual void AddObserver(ArcTermsOfServiceScreenViewObserver* observer) = 0; |
| 24 virtual void RemoveObserver( | 28 virtual void RemoveObserver( |
| 25 ArcTermsOfServiceScreenViewObserver* observer) = 0; | 29 ArcTermsOfServiceScreenViewObserver* observer) = 0; |
| 26 | 30 |
| 27 // Shows the contents of the screen. | 31 // Shows the contents of the screen. |
| 28 virtual void Show() = 0; | 32 virtual void Show() = 0; |
| 29 | 33 |
| 30 // Hides the contents of the screen. | 34 // Hides the contents of the screen. |
| 31 virtual void Hide() = 0; | 35 virtual void Hide() = 0; |
| 32 | 36 |
| 33 protected: | 37 protected: |
| 34 ArcTermsOfServiceScreenView() = default; | 38 ArcTermsOfServiceScreenView() = default; |
| 35 | 39 |
| 36 private: | 40 private: |
| 37 DISALLOW_COPY_AND_ASSIGN(ArcTermsOfServiceScreenView); | 41 DISALLOW_COPY_AND_ASSIGN(ArcTermsOfServiceScreenView); |
| 38 }; | 42 }; |
| 39 | 43 |
| 40 } // namespace chromeos | 44 } // namespace chromeos |
| 41 | 45 |
| 42 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_TERMS_OF_SERVICE_SCREEN_VIE
W_H_ | 46 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_TERMS_OF_SERVICE_SCREEN_VIE
W_H_ |
| OLD | NEW |