Chromium Code Reviews| Index: chrome/browser/chromeos/login/screens/app_launch_splash_screen_actor.h |
| diff --git a/chrome/browser/chromeos/login/screens/app_launch_splash_screen_actor.h b/chrome/browser/chromeos/login/screens/app_launch_splash_screen_actor.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..fbfa174bf1d0dd0178fac6be89e68f608823bc53 |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/login/screens/app_launch_splash_screen_actor.h |
| @@ -0,0 +1,50 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_ACTOR_H_ |
| +#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_ACTOR_H_ |
| + |
| +#include "base/strings/string16.h" |
| + |
| +namespace chromeos { |
| + |
| +class AppLaunchSplashScreenActor { |
|
xiyuan
2013/08/15 18:19:42
nit: Document the class.
Tim Song
2013/08/16 19:07:59
Done.
|
| + public: |
| + enum AppLaunchState { |
| + APP_LAUNCH_STATE_LOADING_AUTH_FILE, |
| + APP_LAUNCH_STATE_LOADING_TOKEN_SERVICE, |
| + APP_LAUNCH_STATE_PREPARING_NETWORK, |
| + APP_LAUNCH_STATE_INSTALLING_APPLICATION, |
| + }; |
| + |
| + class Delegate { |
| + public: |
| + virtual void OnConfigureNetwork() = 0; |
| + virtual void OnCancelAppLaunch() = 0; |
| + }; |
|
xiyuan
2013/08/15 18:19:42
nit: add a dtor
Tim Song
2013/08/16 19:07:59
Done.
|
| + |
| + virtual ~AppLaunchSplashScreenActor() {} |
| + |
| + // Sets screen this actor belongs to. |
| + virtual void SetDelegate(Delegate* screen) = 0; |
| + |
| + // Prepare the contents to showing. |
| + //virtual void PrepareToShow() = 0; |
| + |
| + // Shows the contents of the screen. |
| + virtual void Show(const std::string& app_id) = 0; |
| + |
| + // Hides the contents of the screen. |
| + //virtual void Hide() = 0; |
| + |
| + // Set the current app launch state. |
| + virtual void UpdateAppLaunchState(AppLaunchState state) = 0; |
| + |
| + // Sets whether continue control is enabled. |
| + virtual void ToggleNetworkConfig(bool visible) = 0; |
| +}; |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_ACTOR_H_ |