| 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_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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 class WizardController : public ScreenObserver { | 42 class WizardController : public ScreenObserver { |
| 43 public: | 43 public: |
| 44 // Observes screen changes. | 44 // Observes screen changes. |
| 45 class Observer { | 45 class Observer { |
| 46 public: | 46 public: |
| 47 // Called before a screen change happens. | 47 // Called before a screen change happens. |
| 48 virtual void OnScreenChanged(WizardScreen* next_screen) = 0; | 48 virtual void OnScreenChanged(WizardScreen* next_screen) = 0; |
| 49 | 49 |
| 50 // Called after the browser session has started. | 50 // Called after the browser session has started. |
| 51 virtual void OnSessionStart() = 0; | 51 virtual void OnSessionStart() = 0; |
| 52 |
| 53 // Called after the EULA has been accepted. |
| 54 virtual void OnEulaAccepted() = 0; |
| 52 }; | 55 }; |
| 53 | 56 |
| 54 WizardController(LoginDisplayHost* host, OobeDisplay* oobe_display); | 57 WizardController(LoginDisplayHost* host, OobeDisplay* oobe_display); |
| 55 virtual ~WizardController(); | 58 virtual ~WizardController(); |
| 56 | 59 |
| 57 // Returns the default wizard controller if it has been created. | 60 // Returns the default wizard controller if it has been created. |
| 58 static WizardController* default_controller() { | 61 static WizardController* default_controller() { |
| 59 return default_controller_; | 62 return default_controller_; |
| 60 } | 63 } |
| 61 | 64 |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators); | 282 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators); |
| 280 friend class WizardControllerFlowTest; | 283 friend class WizardControllerFlowTest; |
| 281 friend class WizardInProcessBrowserTest; | 284 friend class WizardInProcessBrowserTest; |
| 282 | 285 |
| 283 DISALLOW_COPY_AND_ASSIGN(WizardController); | 286 DISALLOW_COPY_AND_ASSIGN(WizardController); |
| 284 }; | 287 }; |
| 285 | 288 |
| 286 } // namespace chromeos | 289 } // namespace chromeos |
| 287 | 290 |
| 288 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 291 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
| OLD | NEW |