| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // Takes ownership of the specified background widget and view. | 64 // Takes ownership of the specified background widget and view. |
| 65 void OwnBackground(views::Widget* background_widget, | 65 void OwnBackground(views::Widget* background_widget, |
| 66 chromeos::BackgroundView* background_view); | 66 chromeos::BackgroundView* background_view); |
| 67 | 67 |
| 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 void ShowFirstScreen(const std::string& first_screen_name); |
| 75 |
| 74 // Returns a pointer to the current screen or NULL if there's no such | 76 // Returns a pointer to the current screen or NULL if there's no such |
| 75 // screen. | 77 // screen. |
| 76 WizardScreen* current_screen() const { return current_screen_; } | 78 WizardScreen* current_screen() const { return current_screen_; } |
| 77 | 79 |
| 78 static const char kNetworkScreenName[]; | 80 static const char kNetworkScreenName[]; |
| 79 static const char kLoginScreenName[]; | 81 static const char kLoginScreenName[]; |
| 80 static const char kAccountScreenName[]; | 82 static const char kAccountScreenName[]; |
| 81 static const char kUpdateScreenName[]; | 83 static const char kUpdateScreenName[]; |
| 82 static const char kOutOfBoxScreenName[]; | 84 static const char kOutOfBoxScreenName[]; |
| 83 | 85 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 100 virtual void OnSetUserNamePassword(const std::string& username, | 102 virtual void OnSetUserNamePassword(const std::string& username, |
| 101 const std::string& password); | 103 const std::string& password); |
| 102 | 104 |
| 103 // Overridden from WizardScreenDelegate: | 105 // Overridden from WizardScreenDelegate: |
| 104 virtual views::View* GetWizardView(); | 106 virtual views::View* GetWizardView(); |
| 105 virtual chromeos::ScreenObserver* GetObserver(WizardScreen* screen); | 107 virtual chromeos::ScreenObserver* GetObserver(WizardScreen* screen); |
| 106 | 108 |
| 107 // Switches from one screen to another. | 109 // Switches from one screen to another. |
| 108 void SetCurrentScreen(WizardScreen* screen); | 110 void SetCurrentScreen(WizardScreen* screen); |
| 109 | 111 |
| 110 void ShowFirstScreen(const std::string& first_screen_name); | |
| 111 | |
| 112 // Widget we're showing in. | 112 // Widget we're showing in. |
| 113 views::Widget* widget_; | 113 views::Widget* widget_; |
| 114 | 114 |
| 115 // Used to render the background. | 115 // Used to render the background. |
| 116 views::Widget* background_widget_; | 116 views::Widget* background_widget_; |
| 117 chromeos::BackgroundView* background_view_; | 117 chromeos::BackgroundView* background_view_; |
| 118 | 118 |
| 119 // Contents view. | 119 // Contents view. |
| 120 views::View* contents_; | 120 views::View* contents_; |
| 121 | 121 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 135 bool is_out_of_box_; | 135 bool is_out_of_box_; |
| 136 | 136 |
| 137 // Default WizardController. | 137 // Default WizardController. |
| 138 static WizardController* default_controller_; | 138 static WizardController* default_controller_; |
| 139 | 139 |
| 140 FRIEND_TEST(WizardControllerTest, SwitchLanguage); | 140 FRIEND_TEST(WizardControllerTest, SwitchLanguage); |
| 141 DISALLOW_COPY_AND_ASSIGN(WizardController); | 141 DISALLOW_COPY_AND_ASSIGN(WizardController); |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 144 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
| OLD | NEW |