| 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 { |
| 11 | 11 |
| 12 // Interface for UI implemenations of the ApplaunchSplashScreen. | 12 // Interface for UI implemenations of the ApplaunchSplashScreen. |
| 13 class AppLaunchSplashScreenActor { | 13 class AppLaunchSplashScreenActor { |
| 14 public: | 14 public: |
| 15 enum AppLaunchState { | 15 enum AppLaunchState { |
| 16 APP_LAUNCH_STATE_LOADING_AUTH_FILE, | 16 APP_LAUNCH_STATE_LOADING_AUTH_FILE, |
| 17 APP_LAUNCH_STATE_LOADING_TOKEN_SERVICE, | 17 APP_LAUNCH_STATE_LOADING_TOKEN_SERVICE, |
| 18 APP_LAUNCH_STATE_PREPARING_NETWORK, | 18 APP_LAUNCH_STATE_PREPARING_NETWORK, |
| 19 APP_LAUNCH_STATE_INSTALLING_APPLICATION, | 19 APP_LAUNCH_STATE_INSTALLING_APPLICATION, |
| 20 APP_LAUNCH_STATE_WAITING_APP_WINDOW, | 20 APP_LAUNCH_STATE_WAITING_APP_WINDOW, |
| 21 APP_LAUNCH_STATE_NETWORK_WAIT_TIMEOUT, | 21 APP_LAUNCH_STATE_NETWORK_WAIT_TIMEOUT, |
| 22 APP_LAUNCH_STATE_SHOWING_NETWORK_CONFIGURE_UI, |
| 22 }; | 23 }; |
| 23 | 24 |
| 24 class Delegate { | 25 class Delegate { |
| 25 public: | 26 public: |
| 26 // Invoked when the configure network control is clicked. | 27 // Invoked when the configure network control is clicked. |
| 27 virtual void OnConfigureNetwork() = 0; | 28 virtual void OnConfigureNetwork() = 0; |
| 28 | 29 |
| 29 // Invoked when the app launch bailout shortcut key is pressed. | 30 // Invoked when the app launch bailout shortcut key is pressed. |
| 30 virtual void OnCancelAppLaunch() = 0; | 31 virtual void OnCancelAppLaunch() = 0; |
| 31 | 32 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // Shows the network error and configure UI. | 64 // Shows the network error and configure UI. |
| 64 virtual void ShowNetworkConfigureUI() = 0; | 65 virtual void ShowNetworkConfigureUI() = 0; |
| 65 | 66 |
| 66 // Returns true if the default network has Internet access. | 67 // Returns true if the default network has Internet access. |
| 67 virtual bool IsNetworkReady() = 0; | 68 virtual bool IsNetworkReady() = 0; |
| 68 }; | 69 }; |
| 69 | 70 |
| 70 } // namespace chromeos | 71 } // namespace chromeos |
| 71 | 72 |
| 72 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_ACTOR_
H_ | 73 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_ACTOR_
H_ |
| OLD | NEW |