| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // Lazy initializers and getters for screens. | 68 // Lazy initializers and getters for screens. |
| 69 chromeos::NetworkScreen* GetNetworkScreen(); | 69 chromeos::NetworkScreen* GetNetworkScreen(); |
| 70 LoginScreen* GetLoginScreen(); | 70 LoginScreen* GetLoginScreen(); |
| 71 chromeos::AccountScreen* GetAccountScreen(); | 71 chromeos::AccountScreen* GetAccountScreen(); |
| 72 UpdateScreen* GetUpdateScreen(); | 72 UpdateScreen* GetUpdateScreen(); |
| 73 | 73 |
| 74 // Returns a pointer to the current screen or NULL if there's no such | 74 // Returns a pointer to the current screen or NULL if there's no such |
| 75 // screen. | 75 // screen. |
| 76 WizardScreen* current_screen() const { return current_screen_; } | 76 WizardScreen* current_screen() const { return current_screen_; } |
| 77 | 77 |
| 78 static const char kNetworkScreenName[]; |
| 79 static const char kLoginScreenName[]; |
| 80 static const char kAccountScreenName[]; |
| 81 static const char kUpdateScreenName[]; |
| 82 static const char kOutOfBoxScreenName[]; |
| 83 |
| 78 private: | 84 private: |
| 79 // Exit handlers: | 85 // Exit handlers: |
| 80 void OnLoginSignInSelected(); | 86 void OnLoginSignInSelected(); |
| 81 void OnLoginCreateAccount(); | 87 void OnLoginCreateAccount(); |
| 82 void OnNetworkConnected(); | 88 void OnNetworkConnected(); |
| 83 void OnNetworkOffline(); | 89 void OnNetworkOffline(); |
| 84 void OnAccountCreateBack(); | 90 void OnAccountCreateBack(); |
| 85 void OnAccountCreated(); | 91 void OnAccountCreated(); |
| 86 void OnConnectionFailed(); | 92 void OnConnectionFailed(); |
| 87 void OnLanguageChanged(); | 93 void OnLanguageChanged(); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 bool is_out_of_box_; | 135 bool is_out_of_box_; |
| 130 | 136 |
| 131 // Default WizardController. | 137 // Default WizardController. |
| 132 static WizardController* default_controller_; | 138 static WizardController* default_controller_; |
| 133 | 139 |
| 134 FRIEND_TEST(WizardControllerTest, SwitchLanguage); | 140 FRIEND_TEST(WizardControllerTest, SwitchLanguage); |
| 135 DISALLOW_COPY_AND_ASSIGN(WizardController); | 141 DISALLOW_COPY_AND_ASSIGN(WizardController); |
| 136 }; | 142 }; |
| 137 | 143 |
| 138 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 144 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
| OLD | NEW |