| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 |
| 11 #include "base/compiler_specific.h" |
| 11 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/timer.h" | 14 #include "base/timer.h" |
| 14 #include "chrome/browser/chromeos/login/screen_observer.h" | 15 #include "chrome/browser/chromeos/login/screen_observer.h" |
| 15 #include "chrome/browser/chromeos/login/wizard_screen.h" | 16 #include "chrome/browser/chromeos/login/wizard_screen.h" |
| 16 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
| 17 #include "testing/gtest/include/gtest/gtest_prod.h" | 18 #include "testing/gtest/include/gtest/gtest_prod.h" |
| 18 #include "ui/gfx/rect.h" | 19 #include "ui/gfx/rect.h" |
| 19 | 20 |
| 20 class PrefService; | 21 class PrefService; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 void OnUserImageSkipped(); | 142 void OnUserImageSkipped(); |
| 142 void OnRegistrationSuccess(); | 143 void OnRegistrationSuccess(); |
| 143 void OnRegistrationSkipped(); | 144 void OnRegistrationSkipped(); |
| 144 void OnEnterpriseEnrollmentDone(); | 145 void OnEnterpriseEnrollmentDone(); |
| 145 void OnOOBECompleted(); | 146 void OnOOBECompleted(); |
| 146 | 147 |
| 147 // Shows update screen and starts update process. | 148 // Shows update screen and starts update process. |
| 148 void InitiateOOBEUpdate(); | 149 void InitiateOOBEUpdate(); |
| 149 | 150 |
| 150 // Overridden from ScreenObserver: | 151 // Overridden from ScreenObserver: |
| 151 virtual void OnExit(ExitCodes exit_code); | 152 virtual void OnExit(ExitCodes exit_code) OVERRIDE; |
| 152 virtual void ShowCurrentScreen(); | 153 virtual void ShowCurrentScreen() OVERRIDE; |
| 153 virtual void OnSetUserNamePassword(const std::string& username, | 154 virtual void OnSetUserNamePassword(const std::string& username, |
| 154 const std::string& password); | 155 const std::string& password) OVERRIDE; |
| 155 virtual void set_usage_statistics_reporting(bool val); | 156 virtual void set_usage_statistics_reporting(bool val) OVERRIDE; |
| 156 virtual bool usage_statistics_reporting() const; | 157 virtual bool usage_statistics_reporting() const OVERRIDE; |
| 157 | 158 |
| 158 // Switches from one screen to another. | 159 // Switches from one screen to another. |
| 159 void SetCurrentScreen(WizardScreen* screen); | 160 void SetCurrentScreen(WizardScreen* screen); |
| 160 | 161 |
| 161 // Switches from one screen to another with delay before showing. Calling | 162 // Switches from one screen to another with delay before showing. Calling |
| 162 // ShowCurrentScreen directly forces screen to be shown immediately. | 163 // ShowCurrentScreen directly forces screen to be shown immediately. |
| 163 void SetCurrentScreenSmooth(WizardScreen* screen, bool use_smoothing); | 164 void SetCurrentScreenSmooth(WizardScreen* screen, bool use_smoothing); |
| 164 | 165 |
| 165 // Changes status area visibility. | 166 // Changes status area visibility. |
| 166 void SetStatusAreaVisible(bool visible); | 167 void SetStatusAreaVisible(bool visible); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators); | 218 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators); |
| 218 friend class WizardControllerFlowTest; | 219 friend class WizardControllerFlowTest; |
| 219 friend class WizardInProcessBrowserTest; | 220 friend class WizardInProcessBrowserTest; |
| 220 | 221 |
| 221 DISALLOW_COPY_AND_ASSIGN(WizardController); | 222 DISALLOW_COPY_AND_ASSIGN(WizardController); |
| 222 }; | 223 }; |
| 223 | 224 |
| 224 } // namespace chromeos | 225 } // namespace chromeos |
| 225 | 226 |
| 226 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 227 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
| OLD | NEW |