| 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_SCREEN_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_OBSERVER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_OBSERVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 namespace chromeos { | 11 namespace chromeos { |
| 12 | 12 |
| 13 // Interface that handles notifications received from any of login wizard | 13 // Interface that handles notifications received from any of login wizard |
| 14 // screens. | 14 // screens. |
| 15 class ScreenObserver { | 15 class ScreenObserver { |
| 16 public: | 16 public: |
| 17 // Each login screen or a view shown within login wizard view is itself a | 17 // Each login screen or a view shown within login wizard view is itself a |
| 18 // state. Upon exit each view returns one of the results by calling | 18 // state. Upon exit each view returns one of the results by calling |
| 19 // OnExit() method. Depending on the result and the current view or state | 19 // OnExit() method. Depending on the result and the current view or state |
| 20 // login wizard decides what is the next view to show. There must be an | 20 // login wizard decides what is the next view to show. There must be an |
| 21 // exit code for each way to exit the screen for each screen. | 21 // exit code for each way to exit the screen for each screen. |
| 22 enum ExitCodes { | 22 enum ExitCodes { |
| 23 NETWORK_CONNECTED, | 23 NETWORK_CONNECTED, |
| 24 NETWORK_OFFLINE, | 24 NETWORK_OFFLINE, |
| 25 ACCOUNT_CREATE_BACK, | |
| 26 ACCOUNT_CREATED, | |
| 27 CONNECTION_FAILED, | 25 CONNECTION_FAILED, |
| 28 UPDATE_INSTALLED, | 26 UPDATE_INSTALLED, |
| 29 UPDATE_NOUPDATE, | 27 UPDATE_NOUPDATE, |
| 30 UPDATE_ERROR_CHECKING_FOR_UPDATE, | 28 UPDATE_ERROR_CHECKING_FOR_UPDATE, |
| 31 UPDATE_ERROR_UPDATING, | 29 UPDATE_ERROR_UPDATING, |
| 32 USER_IMAGE_SELECTED, | 30 USER_IMAGE_SELECTED, |
| 33 USER_IMAGE_SKIPPED, | 31 USER_IMAGE_SKIPPED, |
| 34 EULA_ACCEPTED, | 32 EULA_ACCEPTED, |
| 35 EULA_BACK, | 33 EULA_BACK, |
| 36 REGISTRATION_SUCCESS, | 34 REGISTRATION_SUCCESS, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 55 virtual void set_usage_statistics_reporting(bool val) = 0; | 53 virtual void set_usage_statistics_reporting(bool val) = 0; |
| 56 virtual bool usage_statistics_reporting() const = 0; | 54 virtual bool usage_statistics_reporting() const = 0; |
| 57 | 55 |
| 58 protected: | 56 protected: |
| 59 virtual ~ScreenObserver() {} | 57 virtual ~ScreenObserver() {} |
| 60 }; | 58 }; |
| 61 | 59 |
| 62 } // namespace chromeos | 60 } // namespace chromeos |
| 63 | 61 |
| 64 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_OBSERVER_H_ | 62 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_OBSERVER_H_ |
| OLD | NEW |