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_ACTOR_
OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_TERMS_OF_SERVICE_SCREEN_VIEW_O
BSERVER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_TERMS_OF_SERVICE_SCREEN_ACTOR_
OBSERVER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_TERMS_OF_SERVICE_SCREEN_VIEW_O
BSERVER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 | 9 |
10 namespace chromeos { | 10 namespace chromeos { |
11 | 11 |
12 class ArcTermsOfServiceScreenActor; | 12 class ArcTermsOfServiceScreenView; |
13 | 13 |
14 class ArcTermsOfServiceScreenActorObserver { | 14 class ArcTermsOfServiceScreenViewObserver { |
15 public: | 15 public: |
16 virtual ~ArcTermsOfServiceScreenActorObserver() = default; | 16 virtual ~ArcTermsOfServiceScreenViewObserver() = default; |
17 | 17 |
18 // Called when the user skips the PlayStore Terms of Service. | 18 // Called when the user skips the PlayStore Terms of Service. |
19 virtual void OnSkip() = 0; | 19 virtual void OnSkip() = 0; |
20 | 20 |
21 // Called when the user accepts the PlayStore Terms of Service. | 21 // Called when the user accepts the PlayStore Terms of Service. |
22 virtual void OnAccept() = 0; | 22 virtual void OnAccept() = 0; |
23 | 23 |
24 // Called when actor is destroyed so there is no dead reference to it. | 24 // Called when the view is destroyed so there is no dead reference to it. |
25 virtual void OnActorDestroyed(ArcTermsOfServiceScreenActor* actor) = 0; | 25 virtual void OnViewDestroyed(ArcTermsOfServiceScreenView* view) = 0; |
26 | 26 |
27 protected: | 27 protected: |
28 ArcTermsOfServiceScreenActorObserver() = default; | 28 ArcTermsOfServiceScreenViewObserver() = default; |
29 | 29 |
30 private: | 30 private: |
31 DISALLOW_COPY_AND_ASSIGN(ArcTermsOfServiceScreenActorObserver); | 31 DISALLOW_COPY_AND_ASSIGN(ArcTermsOfServiceScreenViewObserver); |
32 }; | 32 }; |
33 | 33 |
34 } // namespace chromeos | 34 } // namespace chromeos |
35 | 35 |
36 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_TERMS_OF_SERVICE_SCREEN_ACT
OR_OBSERVER_H_ | 36 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_TERMS_OF_SERVICE_SCREEN_VIE
W_OBSERVER_H_ |
OLD | NEW |