| 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_SCREENS_BASE_SCREEN_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_DELEGATE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 RESET_CANCELED = 14, | 43 RESET_CANCELED = 14, |
| 44 KIOSK_AUTOLAUNCH_CANCELED = 15, | 44 KIOSK_AUTOLAUNCH_CANCELED = 15, |
| 45 KIOSK_AUTOLAUNCH_CONFIRMED = 16, | 45 KIOSK_AUTOLAUNCH_CONFIRMED = 16, |
| 46 KIOSK_ENABLE_COMPLETED = 17, | 46 KIOSK_ENABLE_COMPLETED = 17, |
| 47 TERMS_OF_SERVICE_DECLINED = 18, | 47 TERMS_OF_SERVICE_DECLINED = 18, |
| 48 TERMS_OF_SERVICE_ACCEPTED = 19, | 48 TERMS_OF_SERVICE_ACCEPTED = 19, |
| 49 WRONG_HWID_WARNING_SKIPPED = 20, | 49 WRONG_HWID_WARNING_SKIPPED = 20, |
| 50 CONTROLLER_PAIRING_FINISHED = 21, | 50 CONTROLLER_PAIRING_FINISHED = 21, |
| 51 HOST_PAIRING_FINISHED = 22, | 51 HOST_PAIRING_FINISHED = 22, |
| 52 DEVICE_NOT_DISABLED = 23, | 52 DEVICE_NOT_DISABLED = 23, |
| 53 ENABLE_DEBUGGING_FINISHED = 24, |
| 54 ENABLE_DEBUGGING_CANCELED = 25, |
| 53 EXIT_CODES_COUNT // not a real code, must be the last | 55 EXIT_CODES_COUNT // not a real code, must be the last |
| 54 }; | 56 }; |
| 55 | 57 |
| 56 // Method called by a screen when user's done with it. | 58 // Method called by a screen when user's done with it. |
| 57 virtual void OnExit(ExitCodes exit_code) = 0; | 59 virtual void OnExit(ExitCodes exit_code) = 0; |
| 58 | 60 |
| 59 // Forces current screen showing. | 61 // Forces current screen showing. |
| 60 virtual void ShowCurrentScreen() = 0; | 62 virtual void ShowCurrentScreen() = 0; |
| 61 | 63 |
| 62 virtual ErrorScreen* GetErrorScreen() = 0; | 64 virtual ErrorScreen* GetErrorScreen() = 0; |
| 63 virtual void ShowErrorScreen() = 0; | 65 virtual void ShowErrorScreen() = 0; |
| 64 virtual void HideErrorScreen(BaseScreen* parent_screen) = 0; | 66 virtual void HideErrorScreen(BaseScreen* parent_screen) = 0; |
| 65 | 67 |
| 66 protected: | 68 protected: |
| 67 virtual ~BaseScreenDelegate() {} | 69 virtual ~BaseScreenDelegate() {} |
| 68 }; | 70 }; |
| 69 | 71 |
| 70 } // namespace chromeos | 72 } // namespace chromeos |
| 71 | 73 |
| 72 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_DELEGATE_H_ | 74 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_DELEGATE_H_ |
| OLD | NEW |