OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_WIZARD_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 void OnAccountCreated(); | 139 void OnAccountCreated(); |
140 void OnConnectionFailed(); | 140 void OnConnectionFailed(); |
141 void OnUpdateCompleted(); | 141 void OnUpdateCompleted(); |
142 void OnEulaAccepted(); | 142 void OnEulaAccepted(); |
143 void OnUpdateErrorCheckingForUpdate(); | 143 void OnUpdateErrorCheckingForUpdate(); |
144 void OnUpdateErrorUpdating(); | 144 void OnUpdateErrorUpdating(); |
145 void OnUserImageSelected(); | 145 void OnUserImageSelected(); |
146 void OnUserImageSkipped(); | 146 void OnUserImageSkipped(); |
147 void OnRegistrationSuccess(); | 147 void OnRegistrationSuccess(); |
148 void OnRegistrationSkipped(); | 148 void OnRegistrationSkipped(); |
| 149 void OnOOBECompleted(); |
149 | 150 |
150 // Switches from one screen to another. | 151 // Switches from one screen to another. |
151 void SetCurrentScreen(WizardScreen* screen); | 152 void SetCurrentScreen(WizardScreen* screen); |
152 | 153 |
153 // Changes status area visibility. | 154 // Changes status area visibility. |
154 void SetStatusAreaVisible(bool visible); | 155 void SetStatusAreaVisible(bool visible); |
155 | 156 |
156 // Overridden from chromeos::ScreenObserver: | 157 // Overridden from chromeos::ScreenObserver: |
157 virtual void OnExit(ExitCodes exit_code); | 158 virtual void OnExit(ExitCodes exit_code); |
158 virtual void OnSetUserNamePassword(const std::string& username, | 159 virtual void OnSetUserNamePassword(const std::string& username, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 scoped_ptr<chromeos::UserImageScreen> user_image_screen_; | 194 scoped_ptr<chromeos::UserImageScreen> user_image_screen_; |
194 scoped_ptr<chromeos::EulaScreen> eula_screen_; | 195 scoped_ptr<chromeos::EulaScreen> eula_screen_; |
195 scoped_ptr<chromeos::RegistrationScreen> registration_screen_; | 196 scoped_ptr<chromeos::RegistrationScreen> registration_screen_; |
196 | 197 |
197 // Screen that's currently active. | 198 // Screen that's currently active. |
198 WizardScreen* current_screen_; | 199 WizardScreen* current_screen_; |
199 | 200 |
200 std::string username_; | 201 std::string username_; |
201 std::string password_; | 202 std::string password_; |
202 | 203 |
| 204 // True if running official BUILD. |
| 205 bool is_official_build_; |
| 206 |
203 // True if full OOBE flow should be shown. | 207 // True if full OOBE flow should be shown. |
204 bool is_out_of_box_; | 208 bool is_out_of_box_; |
205 | 209 |
206 // True if this is run under automation test and we need to show only | 210 // True if this is run under automation test and we need to show only |
207 // login screen. | 211 // login screen. |
208 bool is_test_mode_; | 212 bool is_test_mode_; |
209 | 213 |
210 // NULL by default - controller itself is observer. Mock could be assigned. | 214 // NULL by default - controller itself is observer. Mock could be assigned. |
211 ScreenObserver* observer_; | 215 ScreenObserver* observer_; |
212 | 216 |
(...skipping 10 matching lines...) Expand all Loading... |
223 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, | 227 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, |
224 ControlFlowLanguageOnNetwork); | 228 ControlFlowLanguageOnNetwork); |
225 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, ControlFlowMain); | 229 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, ControlFlowMain); |
226 FRIEND_TEST_ALL_PREFIXES(WizardControllerTest, SwitchLanguage); | 230 FRIEND_TEST_ALL_PREFIXES(WizardControllerTest, SwitchLanguage); |
227 friend class WizardControllerFlowTest; | 231 friend class WizardControllerFlowTest; |
228 | 232 |
229 DISALLOW_COPY_AND_ASSIGN(WizardController); | 233 DISALLOW_COPY_AND_ASSIGN(WizardController); |
230 }; | 234 }; |
231 | 235 |
232 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 236 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
OLD | NEW |