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_UI_WEBUI_CHROMEOS_LOGIN_APP_LAUNCH_SPLASH_SCREEN_HANDLER_
H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_APP_LAUNCH_SPLASH_SCREEN_HANDLER_
H_ |
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_APP_LAUNCH_SPLASH_SCREEN_HANDLER_
H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_APP_LAUNCH_SPLASH_SCREEN_HANDLER_
H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 // AppLaunchSplashScreenActor implementation: | 37 // AppLaunchSplashScreenActor implementation: |
38 virtual void Show(const std::string& app_id) OVERRIDE; | 38 virtual void Show(const std::string& app_id) OVERRIDE; |
39 virtual void PrepareToShow() OVERRIDE; | 39 virtual void PrepareToShow() OVERRIDE; |
40 virtual void Hide() OVERRIDE; | 40 virtual void Hide() OVERRIDE; |
41 virtual void ToggleNetworkConfig(bool visible) OVERRIDE; | 41 virtual void ToggleNetworkConfig(bool visible) OVERRIDE; |
42 virtual void UpdateAppLaunchState(AppLaunchState state) OVERRIDE; | 42 virtual void UpdateAppLaunchState(AppLaunchState state) OVERRIDE; |
43 virtual void SetDelegate( | 43 virtual void SetDelegate( |
44 AppLaunchSplashScreenHandler::Delegate* delegate) OVERRIDE; | 44 AppLaunchSplashScreenHandler::Delegate* delegate) OVERRIDE; |
45 virtual void ShowNetworkConfigureUI() OVERRIDE; | 45 virtual void ShowNetworkConfigureUI() OVERRIDE; |
| 46 virtual bool IsNetworkReady() OVERRIDE; |
46 | 47 |
47 // NetworkStateInformer::NetworkStateInformerObserver implementation: | 48 // NetworkStateInformer::NetworkStateInformerObserver implementation: |
48 virtual void OnNetworkReady() OVERRIDE; | 49 virtual void OnNetworkReady() OVERRIDE; |
49 virtual void UpdateState(ErrorScreenActor::ErrorReason reason) OVERRIDE; | 50 virtual void UpdateState(ErrorScreenActor::ErrorReason reason) OVERRIDE; |
50 | 51 |
51 private: | 52 private: |
52 void PopulateAppInfo(base::DictionaryValue* out_info); | 53 void PopulateAppInfo(base::DictionaryValue* out_info); |
53 void SetLaunchText(const std::string& text); | 54 void SetLaunchText(const std::string& text); |
54 int GetProgressMessageFromState(AppLaunchState state); | 55 int GetProgressMessageFromState(AppLaunchState state); |
55 void HandleConfigureNetwork(); | 56 void HandleConfigureNetwork(); |
56 void HandleCancelAppLaunch(); | 57 void HandleCancelAppLaunch(); |
57 | 58 |
58 AppLaunchSplashScreenHandler::Delegate* delegate_; | 59 AppLaunchSplashScreenHandler::Delegate* delegate_; |
59 bool show_on_init_; | 60 bool show_on_init_; |
60 std::string app_id_; | 61 std::string app_id_; |
61 AppLaunchState state_; | 62 AppLaunchState state_; |
62 | 63 |
63 scoped_refptr<NetworkStateInformer> network_state_informer_; | 64 scoped_refptr<NetworkStateInformer> network_state_informer_; |
64 ErrorScreenActor* error_screen_actor_; | 65 ErrorScreenActor* error_screen_actor_; |
65 | 66 |
66 DISALLOW_COPY_AND_ASSIGN(AppLaunchSplashScreenHandler); | 67 DISALLOW_COPY_AND_ASSIGN(AppLaunchSplashScreenHandler); |
67 }; | 68 }; |
68 | 69 |
69 } // namespace chromeos | 70 } // namespace chromeos |
70 | 71 |
71 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_APP_LAUNCH_SPLASH_SCREEN_HANDL
ER_H_ | 72 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_APP_LAUNCH_SPLASH_SCREEN_HANDL
ER_H_ |
OLD | NEW |