| 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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 void UpdateTermsOfServiceInUI(); | 61 void UpdateTermsOfServiceInUI(); |
| 62 | 62 |
| 63 // Called when the user declines the Terms of Service by clicking the "back" | 63 // Called when the user declines the Terms of Service by clicking the "back" |
| 64 // button. | 64 // button. |
| 65 void HandleBack(); | 65 void HandleBack(); |
| 66 | 66 |
| 67 // Called when the user accepts the Terms of Service by clicking the "accept | 67 // Called when the user accepts the Terms of Service by clicking the "accept |
| 68 // and continue" button. | 68 // and continue" button. |
| 69 void HandleAccept(); | 69 void HandleAccept(); |
| 70 | 70 |
| 71 TermsOfServiceScreenHandler::Delegate* screen_; | 71 TermsOfServiceScreenHandler::Delegate* screen_ = nullptr; |
| 72 | 72 |
| 73 CoreOobeActor* core_oobe_actor_; | 73 CoreOobeActor* core_oobe_actor_ = nullptr; |
| 74 | 74 |
| 75 // Whether the screen should be shown right after initialization. | 75 // Whether the screen should be shown right after initialization. |
| 76 bool show_on_init_; | 76 bool show_on_init_ = false; |
| 77 | 77 |
| 78 // The domain name whose Terms of Service are being shown. | 78 // The domain name whose Terms of Service are being shown. |
| 79 std::string domain_; | 79 std::string domain_; |
| 80 | 80 |
| 81 // Set to |true| when the download of the Terms of Service fails. | 81 // Set to |true| when the download of the Terms of Service fails. |
| 82 bool load_error_; | 82 bool load_error_ = false; |
| 83 | 83 |
| 84 // Set to the Terms of Service when the download is successful. | 84 // Set to the Terms of Service when the download is successful. |
| 85 std::string terms_of_service_; | 85 std::string terms_of_service_; |
| 86 | 86 |
| 87 DISALLOW_COPY_AND_ASSIGN(TermsOfServiceScreenHandler); | 87 DISALLOW_COPY_AND_ASSIGN(TermsOfServiceScreenHandler); |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace chromeos | 90 } // namespace chromeos |
| 91 | 91 |
| 92 #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 |