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

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

Issue 22914008: Refactor kiosk app launch to be part of login screen UI flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
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_
7
8 #include "base/strings/string16.h"
9
10 namespace chromeos {
11
12 class AppLaunchSplashScreenActor {
xiyuan 2013/08/15 18:19:42 nit: Document the class.
Tim Song 2013/08/16 19:07:59 Done.
13 public:
14 enum AppLaunchState {
15 APP_LAUNCH_STATE_LOADING_AUTH_FILE,
16 APP_LAUNCH_STATE_LOADING_TOKEN_SERVICE,
17 APP_LAUNCH_STATE_PREPARING_NETWORK,
18 APP_LAUNCH_STATE_INSTALLING_APPLICATION,
19 };
20
21 class Delegate {
22 public:
23 virtual void OnConfigureNetwork() = 0;
24 virtual void OnCancelAppLaunch() = 0;
25 };
xiyuan 2013/08/15 18:19:42 nit: add a dtor
Tim Song 2013/08/16 19:07:59 Done.
26
27 virtual ~AppLaunchSplashScreenActor() {}
28
29 // Sets screen this actor belongs to.
30 virtual void SetDelegate(Delegate* screen) = 0;
31
32 // Prepare the contents to showing.
33 //virtual void PrepareToShow() = 0;
34
35 // Shows the contents of the screen.
36 virtual void Show(const std::string& app_id) = 0;
37
38 // Hides the contents of the screen.
39 //virtual void Hide() = 0;
40
41 // Set the current app launch state.
42 virtual void UpdateAppLaunchState(AppLaunchState state) = 0;
43
44 // Sets whether continue control is enabled.
45 virtual void ToggleNetworkConfig(bool visible) = 0;
46 };
47
48 } // namespace chromeos
49
50 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_APP_LAUNCH_SPLASH_SCREEN_ACTOR_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698