| 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_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 NetworkError::ErrorReason reason); | 79 NetworkError::ErrorReason reason); |
| 80 void HideOfflineMessage(NetworkStateInformer::State state, | 80 void HideOfflineMessage(NetworkStateInformer::State state, |
| 81 NetworkError::ErrorReason reason); | 81 NetworkError::ErrorReason reason); |
| 82 | 82 |
| 83 // Shows a given enrollment step. | 83 // Shows a given enrollment step. |
| 84 void ShowStep(const char* step); | 84 void ShowStep(const char* step); |
| 85 | 85 |
| 86 // Display the given i18n resource as error message. | 86 // Display the given i18n resource as error message. |
| 87 void ShowError(int message_id, bool retry); | 87 void ShowError(int message_id, bool retry); |
| 88 | 88 |
| 89 // Display the given i18n resource as an error message, with the $1 |
| 90 // substitution parameter replaced with the device's product name. |
| 91 void ShowErrorForDevice(int message_id, bool retry); |
| 92 |
| 89 // Display the given string as error message. | 93 // Display the given string as error message. |
| 90 void ShowErrorMessage(const std::string& message, bool retry); | 94 void ShowErrorMessage(const std::string& message, bool retry); |
| 91 | 95 |
| 92 // Display the given i18n string as a progress message. | 96 // Display the given i18n string as a progress message. |
| 93 void ShowWorking(int message_id); | 97 void ShowWorking(int message_id); |
| 94 | 98 |
| 95 // Shows the screen. | 99 // Shows the screen. |
| 96 void DoShow(); | 100 void DoShow(); |
| 97 | 101 |
| 98 // Returns true if current visible screen is the enrollment sign-in page. | 102 // Returns true if current visible screen is the enrollment sign-in page. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 128 scoped_refptr<HelpAppLauncher> help_app_; | 132 scoped_refptr<HelpAppLauncher> help_app_; |
| 129 | 133 |
| 130 base::WeakPtrFactory<EnrollmentScreenHandler> weak_ptr_factory_; | 134 base::WeakPtrFactory<EnrollmentScreenHandler> weak_ptr_factory_; |
| 131 | 135 |
| 132 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreenHandler); | 136 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreenHandler); |
| 133 }; | 137 }; |
| 134 | 138 |
| 135 } // namespace chromeos | 139 } // namespace chromeos |
| 136 | 140 |
| 137 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ | 141 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ |
| OLD | NEW |