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_OOBE_DISPLAY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OOBE_DISPLAY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OOBE_DISPLAY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OOBE_DISPLAY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 SCREEN_TPM_ERROR, | 47 SCREEN_TPM_ERROR, |
48 SCREEN_PASSWORD_CHANGED, | 48 SCREEN_PASSWORD_CHANGED, |
49 SCREEN_CREATE_MANAGED_USER_DIALOG, | 49 SCREEN_CREATE_MANAGED_USER_DIALOG, |
50 SCREEN_CREATE_MANAGED_USER_FLOW, | 50 SCREEN_CREATE_MANAGED_USER_FLOW, |
51 SCREEN_TERMS_OF_SERVICE, | 51 SCREEN_TERMS_OF_SERVICE, |
52 SCREEN_WRONG_HWID, | 52 SCREEN_WRONG_HWID, |
53 SCREEN_APP_LAUNCH_SPLASH, | 53 SCREEN_APP_LAUNCH_SPLASH, |
54 SCREEN_UNKNOWN | 54 SCREEN_UNKNOWN |
55 }; | 55 }; |
56 | 56 |
| 57 struct ScreenTransition { |
| 58 Screen previous_screen; |
| 59 Screen current_screen; |
| 60 }; |
| 61 |
57 virtual ~OobeDisplay() {} | 62 virtual ~OobeDisplay() {} |
58 | 63 |
59 // Shows the given screen. | 64 // Shows the given screen. |
60 virtual void ShowScreen(WizardScreen* screen) = 0; | 65 virtual void ShowScreen(WizardScreen* screen) = 0; |
61 | 66 |
62 // Hides the given screen. | 67 // Hides the given screen. |
63 virtual void HideScreen(WizardScreen* screen) = 0; | 68 virtual void HideScreen(WizardScreen* screen) = 0; |
64 | 69 |
65 // Pointers to actors which should be used by the specific screens. Actors | 70 // Pointers to actors which should be used by the specific screens. Actors |
66 // must be owned by the OobeDisplay implementation. | 71 // must be owned by the OobeDisplay implementation. |
(...skipping 14 matching lines...) Expand all Loading... |
81 | 86 |
82 // Returns if JS side is fully loaded and ready to accept messages. | 87 // Returns if JS side is fully loaded and ready to accept messages. |
83 // If |false| is returned, then |display_is_ready_callback| is stored | 88 // If |false| is returned, then |display_is_ready_callback| is stored |
84 // and will be called once display is ready. | 89 // and will be called once display is ready. |
85 virtual bool IsJSReady(const base::Closure& display_is_ready_callback) = 0; | 90 virtual bool IsJSReady(const base::Closure& display_is_ready_callback) = 0; |
86 }; | 91 }; |
87 | 92 |
88 } // namespace chromeos | 93 } // namespace chromeos |
89 | 94 |
90 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OOBE_DISPLAY_H_ | 95 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OOBE_DISPLAY_H_ |
OLD | NEW |