OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_TERMS_OF_SERVICE_SCREEN_ACTOR_
H_ | |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_TERMS_OF_SERVICE_SCREEN_ACTOR_
H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/macros.h" | |
11 | |
12 namespace chromeos { | |
13 | |
14 class ArcTermsOfServiceScreenActorObserver; | |
15 | |
16 // Interface for dependency injection between TermsOfServiceScreen and its | |
17 // WebUI representation. | |
18 class ArcTermsOfServiceScreenActor { | |
19 public: | |
20 virtual ~ArcTermsOfServiceScreenActor() = default; | |
21 | |
22 // Adds/Removes observer for actor. | |
23 virtual void AddObserver(ArcTermsOfServiceScreenActorObserver* observer) = 0; | |
24 virtual void RemoveObserver( | |
25 ArcTermsOfServiceScreenActorObserver* observer) = 0; | |
26 | |
27 // Shows the contents of the screen. | |
28 virtual void Show() = 0; | |
29 | |
30 // Hides the contents of the screen. | |
31 virtual void Hide() = 0; | |
32 | |
33 protected: | |
34 ArcTermsOfServiceScreenActor() = default; | |
35 | |
36 private: | |
37 DISALLOW_COPY_AND_ASSIGN(ArcTermsOfServiceScreenActor); | |
38 }; | |
39 | |
40 } // namespace chromeos | |
41 | |
42 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_TERMS_OF_SERVICE_SCREEN_ACT
OR_H_ | |
OLD | NEW |