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

Side by Side Diff: chrome/browser/chromeos/login/screens/app_launch_splash_screen_view.h

Issue 2700303002: cros: Unify oobe View/Actor naming to just View. (Closed)
Patch Set: Rebase Created 3 years, 9 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
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_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_ACTOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_VIEW_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_VIEW_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 AppLaunchSplashScreenView {
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 APP_LAUNCH_STATE_SHOWING_NETWORK_CONFIGURE_UI,
23 }; 23 };
(...skipping 10 matching lines...) Expand all
34 virtual void OnNetworkConfigRequested(bool requested) = 0; 34 virtual void OnNetworkConfigRequested(bool requested) = 0;
35 35
36 // Invoked when network state is changed. |online| is true if the device 36 // Invoked when network state is changed. |online| is true if the device
37 // is connected to the Internet. 37 // is connected to the Internet.
38 virtual void OnNetworkStateChanged(bool online) = 0; 38 virtual void OnNetworkStateChanged(bool online) = 0;
39 39
40 protected: 40 protected:
41 virtual ~Delegate() {} 41 virtual ~Delegate() {}
42 }; 42 };
43 43
44 virtual ~AppLaunchSplashScreenActor() {} 44 virtual ~AppLaunchSplashScreenView() {}
45 45
46 // Sets screen this actor belongs to. 46 // Sets screen this view belongs to.
47 virtual void SetDelegate(Delegate* screen) = 0; 47 virtual void SetDelegate(Delegate* screen) = 0;
48 48
49 // Shows the contents of the screen. 49 // Shows the contents of the screen.
50 virtual void Show(const std::string& app_id) = 0; 50 virtual void Show(const std::string& app_id) = 0;
51 51
52 // Hides the contents of the screen. 52 // Hides the contents of the screen.
53 virtual void Hide() = 0; 53 virtual void Hide() = 0;
54 54
55 // Set the current app launch state. 55 // Set the current app launch state.
56 virtual void UpdateAppLaunchState(AppLaunchState state) = 0; 56 virtual void UpdateAppLaunchState(AppLaunchState state) = 0;
57 57
58 // Sets whether configure network control is visible. 58 // Sets whether configure network control is visible.
59 virtual void ToggleNetworkConfig(bool visible) = 0; 59 virtual void ToggleNetworkConfig(bool visible) = 0;
60 60
61 // Shows the network error and configure UI. 61 // Shows the network error and configure UI.
62 virtual void ShowNetworkConfigureUI() = 0; 62 virtual void ShowNetworkConfigureUI() = 0;
63 63
64 // Returns true if the default network has Internet access. 64 // Returns true if the default network has Internet access.
65 virtual bool IsNetworkReady() = 0; 65 virtual bool IsNetworkReady() = 0;
66 }; 66 };
67 67
68 } // namespace chromeos 68 } // namespace chromeos
69 69
70 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_ACTOR_ H_ 70 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_VIEW_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698