| 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_ACTOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_ACTOR_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_ACTOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_ACTOR_H_ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 protected: | 40 protected: |
| 41 virtual ~Delegate() {} | 41 virtual ~Delegate() {} |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 virtual ~AppLaunchSplashScreenActor() {} | 44 virtual ~AppLaunchSplashScreenActor() {} |
| 45 | 45 |
| 46 // Sets screen this actor belongs to. | 46 // Sets screen this actor belongs to. |
| 47 virtual void SetDelegate(Delegate* screen) = 0; | 47 virtual void SetDelegate(Delegate* screen) = 0; |
| 48 | 48 |
| 49 // Prepare the contents to showing. | |
| 50 virtual void PrepareToShow() = 0; | |
| 51 | |
| 52 // Shows the contents of the screen. | 49 // Shows the contents of the screen. |
| 53 virtual void Show(const std::string& app_id) = 0; | 50 virtual void Show(const std::string& app_id) = 0; |
| 54 | 51 |
| 55 // Hides the contents of the screen. | 52 // Hides the contents of the screen. |
| 56 virtual void Hide() = 0; | 53 virtual void Hide() = 0; |
| 57 | 54 |
| 58 // Set the current app launch state. | 55 // Set the current app launch state. |
| 59 virtual void UpdateAppLaunchState(AppLaunchState state) = 0; | 56 virtual void UpdateAppLaunchState(AppLaunchState state) = 0; |
| 60 | 57 |
| 61 // Sets whether configure network control is visible. | 58 // Sets whether configure network control is visible. |
| 62 virtual void ToggleNetworkConfig(bool visible) = 0; | 59 virtual void ToggleNetworkConfig(bool visible) = 0; |
| 63 | 60 |
| 64 // Shows the network error and configure UI. | 61 // Shows the network error and configure UI. |
| 65 virtual void ShowNetworkConfigureUI() = 0; | 62 virtual void ShowNetworkConfigureUI() = 0; |
| 66 | 63 |
| 67 // Returns true if the default network has Internet access. | 64 // Returns true if the default network has Internet access. |
| 68 virtual bool IsNetworkReady() = 0; | 65 virtual bool IsNetworkReady() = 0; |
| 69 }; | 66 }; |
| 70 | 67 |
| 71 } // namespace chromeos | 68 } // namespace chromeos |
| 72 | 69 |
| 73 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_ACTOR_
H_ | 70 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_ACTOR_
H_ |
| OLD | NEW |