| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_APP_LAUNCH_SPLASH_SCREEN_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "chrome/browser/chromeos/login/oobe_screen.h" |
| 9 | 10 |
| 10 namespace chromeos { | 11 namespace chromeos { |
| 11 | 12 |
| 12 // Interface for UI implemenations of the ApplaunchSplashScreen. | 13 // Interface for UI implemenations of the ApplaunchSplashScreen. |
| 13 class AppLaunchSplashScreenView { | 14 class AppLaunchSplashScreenView { |
| 14 public: | 15 public: |
| 15 enum AppLaunchState { | 16 enum AppLaunchState { |
| 16 APP_LAUNCH_STATE_LOADING_AUTH_FILE, | 17 APP_LAUNCH_STATE_LOADING_AUTH_FILE, |
| 17 APP_LAUNCH_STATE_LOADING_TOKEN_SERVICE, | 18 APP_LAUNCH_STATE_LOADING_TOKEN_SERVICE, |
| 18 APP_LAUNCH_STATE_PREPARING_NETWORK, | 19 APP_LAUNCH_STATE_PREPARING_NETWORK, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 34 virtual void OnNetworkConfigRequested(bool requested) = 0; | 35 virtual void OnNetworkConfigRequested(bool requested) = 0; |
| 35 | 36 |
| 36 // Invoked when network state is changed. |online| is true if the device | 37 // Invoked when network state is changed. |online| is true if the device |
| 37 // is connected to the Internet. | 38 // is connected to the Internet. |
| 38 virtual void OnNetworkStateChanged(bool online) = 0; | 39 virtual void OnNetworkStateChanged(bool online) = 0; |
| 39 | 40 |
| 40 protected: | 41 protected: |
| 41 virtual ~Delegate() {} | 42 virtual ~Delegate() {} |
| 42 }; | 43 }; |
| 43 | 44 |
| 45 constexpr static OobeScreen kScreenId = OobeScreen::SCREEN_APP_LAUNCH_SPLASH; |
| 46 |
| 44 virtual ~AppLaunchSplashScreenView() {} | 47 virtual ~AppLaunchSplashScreenView() {} |
| 45 | 48 |
| 46 // Sets screen this view belongs to. | 49 // Sets screen this view belongs to. |
| 47 virtual void SetDelegate(Delegate* screen) = 0; | 50 virtual void SetDelegate(Delegate* screen) = 0; |
| 48 | 51 |
| 49 // Shows the contents of the screen. | 52 // Shows the contents of the screen. |
| 50 virtual void Show(const std::string& app_id) = 0; | 53 virtual void Show(const std::string& app_id) = 0; |
| 51 | 54 |
| 52 // Hides the contents of the screen. | 55 // Hides the contents of the screen. |
| 53 virtual void Hide() = 0; | 56 virtual void Hide() = 0; |
| 54 | 57 |
| 55 // Set the current app launch state. | 58 // Set the current app launch state. |
| 56 virtual void UpdateAppLaunchState(AppLaunchState state) = 0; | 59 virtual void UpdateAppLaunchState(AppLaunchState state) = 0; |
| 57 | 60 |
| 58 // Sets whether configure network control is visible. | 61 // Sets whether configure network control is visible. |
| 59 virtual void ToggleNetworkConfig(bool visible) = 0; | 62 virtual void ToggleNetworkConfig(bool visible) = 0; |
| 60 | 63 |
| 61 // Shows the network error and configure UI. | 64 // Shows the network error and configure UI. |
| 62 virtual void ShowNetworkConfigureUI() = 0; | 65 virtual void ShowNetworkConfigureUI() = 0; |
| 63 | 66 |
| 64 // Returns true if the default network has Internet access. | 67 // Returns true if the default network has Internet access. |
| 65 virtual bool IsNetworkReady() = 0; | 68 virtual bool IsNetworkReady() = 0; |
| 66 }; | 69 }; |
| 67 | 70 |
| 68 } // namespace chromeos | 71 } // namespace chromeos |
| 69 | 72 |
| 70 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_VIEW_H
_ | 73 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_VIEW_H
_ |
| OLD | NEW |