| 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 <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 namespace chromeos { | 31 namespace chromeos { |
| 32 class AppLaunchSplashScreenView; | 32 class AppLaunchSplashScreenView; |
| 33 class ArcKioskSplashScreenView; | 33 class ArcKioskSplashScreenView; |
| 34 class ArcTermsOfServiceScreenView; | 34 class ArcTermsOfServiceScreenView; |
| 35 class AutoEnrollmentCheckScreenView; | 35 class AutoEnrollmentCheckScreenView; |
| 36 class BaseScreenHandler; | 36 class BaseScreenHandler; |
| 37 class ControllerPairingScreenView; | 37 class ControllerPairingScreenView; |
| 38 class CoreOobeView; | 38 class CoreOobeView; |
| 39 class DeviceDisabledScreenView; | 39 class DeviceDisabledScreenView; |
| 40 class EnableDebuggingScreenView; | |
| 41 class EnrollmentScreenView; | 40 class EnrollmentScreenView; |
| 42 class EulaView; | 41 class EulaView; |
| 43 class ErrorScreen; | 42 class ErrorScreen; |
| 44 class GaiaView; | 43 class GaiaView; |
| 45 class HIDDetectionView; | 44 class HIDDetectionView; |
| 46 class HostPairingScreenView; | 45 class HostPairingScreenView; |
| 47 class KioskAppMenuHandler; | 46 class KioskAppMenuHandler; |
| 48 class KioskAutolaunchScreenView; | 47 class KioskAutolaunchScreenView; |
| 49 class KioskEnableScreenView; | 48 class KioskEnableScreenView; |
| 50 class LoginScreenContext; | 49 class LoginScreenContext; |
| 50 class MulticastCoreOobeView; |
| 51 class NativeWindowDelegate; | 51 class NativeWindowDelegate; |
| 52 class NetworkDropdownHandler; | 52 class NetworkDropdownHandler; |
| 53 class NetworkStateInformer; | 53 class NetworkStateInformer; |
| 54 class NetworkView; | 54 class NetworkView; |
| 55 class SigninScreenHandler; | 55 class SigninScreenHandler; |
| 56 class SigninScreenHandlerDelegate; | 56 class SigninScreenHandlerDelegate; |
| 57 class SupervisedUserCreationScreenHandler; | 57 class SupervisedUserCreationScreenHandler; |
| 58 class ResetView; | 58 class ResetView; |
| 59 class TermsOfServiceScreenView; | 59 class TermsOfServiceScreenView; |
| 60 class UserBoardView; | 60 class UserBoardView; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 89 DISALLOW_COPY(Observer); | 89 DISALLOW_COPY(Observer); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 OobeUI(content::WebUI* web_ui, const GURL& url); | 92 OobeUI(content::WebUI* web_ui, const GURL& url); |
| 93 ~OobeUI() override; | 93 ~OobeUI() override; |
| 94 | 94 |
| 95 CoreOobeView* GetCoreOobeView(); | 95 CoreOobeView* GetCoreOobeView(); |
| 96 NetworkView* GetNetworkView(); | 96 NetworkView* GetNetworkView(); |
| 97 EulaView* GetEulaView(); | 97 EulaView* GetEulaView(); |
| 98 UpdateView* GetUpdateView(); | 98 UpdateView* GetUpdateView(); |
| 99 EnableDebuggingScreenView* GetEnableDebuggingScreenView(); | |
| 100 EnrollmentScreenView* GetEnrollmentScreenView(); | 99 EnrollmentScreenView* GetEnrollmentScreenView(); |
| 101 ResetView* GetResetView(); | 100 ResetView* GetResetView(); |
| 102 KioskAutolaunchScreenView* GetKioskAutolaunchScreenView(); | 101 KioskAutolaunchScreenView* GetKioskAutolaunchScreenView(); |
| 103 KioskEnableScreenView* GetKioskEnableScreenView(); | 102 KioskEnableScreenView* GetKioskEnableScreenView(); |
| 104 TermsOfServiceScreenView* GetTermsOfServiceScreenView(); | 103 TermsOfServiceScreenView* GetTermsOfServiceScreenView(); |
| 105 ArcTermsOfServiceScreenView* GetArcTermsOfServiceScreenView(); | 104 ArcTermsOfServiceScreenView* GetArcTermsOfServiceScreenView(); |
| 106 UserImageView* GetUserImageView(); | 105 UserImageView* GetUserImageView(); |
| 107 ErrorScreen* GetErrorScreen(); | 106 ErrorScreen* GetErrorScreen(); |
| 108 WrongHWIDScreenView* GetWrongHWIDScreenView(); | 107 WrongHWIDScreenView* GetWrongHWIDScreenView(); |
| 109 AutoEnrollmentCheckScreenView* GetAutoEnrollmentCheckScreenView(); | 108 AutoEnrollmentCheckScreenView* GetAutoEnrollmentCheckScreenView(); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // Reference to NetworkDropdownHandler that handles interaction with | 198 // Reference to NetworkDropdownHandler that handles interaction with |
| 200 // network dropdown. | 199 // network dropdown. |
| 201 NetworkDropdownHandler* network_dropdown_handler_ = nullptr; | 200 NetworkDropdownHandler* network_dropdown_handler_ = nullptr; |
| 202 | 201 |
| 203 SupervisedUserCreationScreenHandler* supervised_user_creation_screen_view_ = | 202 SupervisedUserCreationScreenHandler* supervised_user_creation_screen_view_ = |
| 204 nullptr; | 203 nullptr; |
| 205 // Reference to SigninScreenHandler that handles sign-in screen requests and | 204 // Reference to SigninScreenHandler that handles sign-in screen requests and |
| 206 // forwards calls from native code to JS side. | 205 // forwards calls from native code to JS side. |
| 207 SigninScreenHandler* signin_screen_handler_ = nullptr; | 206 SigninScreenHandler* signin_screen_handler_ = nullptr; |
| 208 | 207 |
| 208 // This delegate is used whenever any code wants a CoreOobeView. It will |
| 209 // dispatch the CoreOobeView calls to all of the implementations. |
| 210 std::unique_ptr<MulticastCoreOobeView> core_oobe_view_; |
| 211 |
| 209 std::vector<BaseWebUIHandler*> webui_handlers_; // Non-owning pointers. | 212 std::vector<BaseWebUIHandler*> webui_handlers_; // Non-owning pointers. |
| 210 std::vector<BaseScreenHandler*> screen_handlers_; // Non-owning pointers. | 213 std::vector<BaseScreenHandler*> screen_handlers_; // Non-owning pointers. |
| 211 | 214 |
| 212 KioskAppMenuHandler* kiosk_app_menu_handler_ = | 215 KioskAppMenuHandler* kiosk_app_menu_handler_ = |
| 213 nullptr; // Non-owning pointers. | 216 nullptr; // Non-owning pointers. |
| 214 | 217 |
| 215 std::unique_ptr<ErrorScreen> error_screen_; | 218 std::unique_ptr<ErrorScreen> error_screen_; |
| 216 | 219 |
| 217 // Id of the current oobe/login screen. | 220 // Id of the current oobe/login screen. |
| 218 OobeScreen current_screen_ = OobeScreen::SCREEN_UNKNOWN; | 221 OobeScreen current_screen_ = OobeScreen::SCREEN_UNKNOWN; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 242 // Store the deferred JS calls before the screen handler instance is | 245 // Store the deferred JS calls before the screen handler instance is |
| 243 // initialized. | 246 // initialized. |
| 244 std::unique_ptr<JSCallsContainer> js_calls_container; | 247 std::unique_ptr<JSCallsContainer> js_calls_container; |
| 245 | 248 |
| 246 DISALLOW_COPY_AND_ASSIGN(OobeUI); | 249 DISALLOW_COPY_AND_ASSIGN(OobeUI); |
| 247 }; | 250 }; |
| 248 | 251 |
| 249 } // namespace chromeos | 252 } // namespace chromeos |
| 250 | 253 |
| 251 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ | 254 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ |
| OLD | NEW |