OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_UI_WEBUI_CHROMEOS_LOGIN_TERMS_OF_SERVICE_SCREEN_HANDLER_H
_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_TERMS_OF_SERVICE_SCREEN_HANDLER_H
_ |
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_TERMS_OF_SERVICE_SCREEN_HANDLER_H
_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_TERMS_OF_SERVICE_SCREEN_HANDLER_H
_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 class TermsOfServiceScreenHandler : public BaseScreenHandler, | 21 class TermsOfServiceScreenHandler : public BaseScreenHandler, |
22 public TermsOfServiceScreenActor { | 22 public TermsOfServiceScreenActor { |
23 public: | 23 public: |
24 explicit TermsOfServiceScreenHandler(CoreOobeActor* core_oobe_actor); | 24 explicit TermsOfServiceScreenHandler(CoreOobeActor* core_oobe_actor); |
25 ~TermsOfServiceScreenHandler() override; | 25 ~TermsOfServiceScreenHandler() override; |
26 | 26 |
27 // content::WebUIMessageHandler: | 27 // content::WebUIMessageHandler: |
28 void RegisterMessages() override; | 28 void RegisterMessages() override; |
29 | 29 |
30 // BaseScreenHandler: | 30 // BaseScreenHandler: |
31 void DeclareLocalizedValues(LocalizedValuesBuilder* builder) override; | 31 void DeclareLocalizedValues( |
| 32 ::login::LocalizedValuesBuilder* builder) override; |
32 | 33 |
33 // TermsOfServiceScreenActor: | 34 // TermsOfServiceScreenActor: |
34 void SetDelegate(Delegate* screen) override; | 35 void SetDelegate(Delegate* screen) override; |
35 void Show() override; | 36 void Show() override; |
36 void Hide() override; | 37 void Hide() override; |
37 void SetDomain(const std::string& domain) override; | 38 void SetDomain(const std::string& domain) override; |
38 void OnLoadError() override; | 39 void OnLoadError() override; |
39 void OnLoadSuccess(const std::string& terms_of_service) override; | 40 void OnLoadSuccess(const std::string& terms_of_service) override; |
40 | 41 |
41 private: | 42 private: |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 83 |
83 // Set to the Terms of Service when the download is successful. | 84 // Set to the Terms of Service when the download is successful. |
84 std::string terms_of_service_; | 85 std::string terms_of_service_; |
85 | 86 |
86 DISALLOW_COPY_AND_ASSIGN(TermsOfServiceScreenHandler); | 87 DISALLOW_COPY_AND_ASSIGN(TermsOfServiceScreenHandler); |
87 }; | 88 }; |
88 | 89 |
89 } // namespace chromeos | 90 } // namespace chromeos |
90 | 91 |
91 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_TERMS_OF_SERVICE_SCREEN_HANDLE
R_H_ | 92 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_TERMS_OF_SERVICE_SCREEN_HANDLE
R_H_ |
OLD | NEW |