Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/app_launch_splash_screen_handler.h

Issue 149843004: kiosk: Skip network check for offline enabled app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698