| 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_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // Initializes the handlers. | 130 // Initializes the handlers. |
| 131 void InitializeHandlers(); | 131 void InitializeHandlers(); |
| 132 | 132 |
| 133 // Invoked after the async assets load. The screen handler that has the same | 133 // Invoked after the async assets load. The screen handler that has the same |
| 134 // async assets load id will be initialized. | 134 // async assets load id will be initialized. |
| 135 void OnScreenAssetsLoaded(const std::string& async_assets_load_id); | 135 void OnScreenAssetsLoaded(const std::string& async_assets_load_id); |
| 136 | 136 |
| 137 // Shows or hides OOBE UI elements. | 137 // Shows or hides OOBE UI elements. |
| 138 void ShowOobeUI(bool show); | 138 void ShowOobeUI(bool show); |
| 139 | 139 |
| 140 // TODO(rkc): Create a separate retail mode login UI and move this method | |
| 141 // there - see crbug.com/157671. | |
| 142 // Shows a login spinner for retail mode logins. | |
| 143 void ShowRetailModeLoginSpinner(); | |
| 144 | |
| 145 // Shows the signin screen. | 140 // Shows the signin screen. |
| 146 void ShowSigninScreen(const LoginScreenContext& context, | 141 void ShowSigninScreen(const LoginScreenContext& context, |
| 147 SigninScreenHandlerDelegate* delegate, | 142 SigninScreenHandlerDelegate* delegate, |
| 148 NativeWindowDelegate* native_window_delegate); | 143 NativeWindowDelegate* native_window_delegate); |
| 149 | 144 |
| 150 // Resets the delegate set in ShowSigninScreen. | 145 // Resets the delegate set in ShowSigninScreen. |
| 151 void ResetSigninScreenHandlerDelegate(); | 146 void ResetSigninScreenHandlerDelegate(); |
| 152 | 147 |
| 153 // Add and remove observers for screen change events. | 148 // Add and remove observers for screen change events. |
| 154 void AddObserver(Observer* observer); | 149 void AddObserver(Observer* observer); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 | 245 |
| 251 // List of registered observers. | 246 // List of registered observers. |
| 252 ObserverList<Observer> observer_list_; | 247 ObserverList<Observer> observer_list_; |
| 253 | 248 |
| 254 DISALLOW_COPY_AND_ASSIGN(OobeUI); | 249 DISALLOW_COPY_AND_ASSIGN(OobeUI); |
| 255 }; | 250 }; |
| 256 | 251 |
| 257 } // namespace chromeos | 252 } // namespace chromeos |
| 258 | 253 |
| 259 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ | 254 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ |
| OLD | NEW |