| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_SCREEN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 public: | 23 public: |
| 24 class Delegate { | 24 class Delegate { |
| 25 public: | 25 public: |
| 26 virtual ~Delegate() {} | 26 virtual ~Delegate() {} |
| 27 | 27 |
| 28 // Whether usage statistics reporting is enabled on EULA screen. | 28 // Whether usage statistics reporting is enabled on EULA screen. |
| 29 virtual void SetUsageStatisticsReporting(bool val) = 0; | 29 virtual void SetUsageStatisticsReporting(bool val) = 0; |
| 30 virtual bool GetUsageStatisticsReporting() const = 0; | 30 virtual bool GetUsageStatisticsReporting() const = 0; |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 EulaScreen(ScreenObserver* observer, EulaScreenActor* actor); | 33 EulaScreen(BaseScreenDelegate* base_screen_delegate, EulaScreenActor* actor); |
| 34 virtual ~EulaScreen(); | 34 virtual ~EulaScreen(); |
| 35 | 35 |
| 36 void SetDelegate(Delegate* delegate); | 36 void SetDelegate(Delegate* delegate); |
| 37 | 37 |
| 38 // BaseScreen implementation: | 38 // BaseScreen implementation: |
| 39 virtual void PrepareToShow() override; | 39 virtual void PrepareToShow() override; |
| 40 virtual void Show() override; | 40 virtual void Show() override; |
| 41 virtual void Hide() override; | 41 virtual void Hide() override; |
| 42 virtual std::string GetName() const override; | 42 virtual std::string GetName() const override; |
| 43 | 43 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 67 Delegate* delegate_; | 67 Delegate* delegate_; |
| 68 | 68 |
| 69 TpmPasswordFetcher password_fetcher_; | 69 TpmPasswordFetcher password_fetcher_; |
| 70 | 70 |
| 71 DISALLOW_COPY_AND_ASSIGN(EulaScreen); | 71 DISALLOW_COPY_AND_ASSIGN(EulaScreen); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } // namespace chromeos | 74 } // namespace chromeos |
| 75 | 75 |
| 76 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_SCREEN_H_ | 76 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_SCREEN_H_ |
| OLD | NEW |