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

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

Issue 2771803003: Don't start FRE from the login screen (Closed)
Patch Set: Improve comments Created 3 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_UI_LOGIN_DISPLAY_HOST_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/callback_list.h" 11 #include "base/callback_list.h"
12 #include "chrome/browser/chromeos/customization/customization_document.h" 12 #include "chrome/browser/chromeos/customization/customization_document.h"
13 #include "chrome/browser/chromeos/login/oobe_screen.h" 13 #include "chrome/browser/chromeos/login/oobe_screen.h"
14 #include "chrome/browser/chromeos/login/ui/login_display.h" 14 #include "chrome/browser/chromeos/login/ui/login_display.h"
15 #include "ui/gfx/native_widget_types.h" 15 #include "ui/gfx/native_widget_types.h"
16 16
17 class AccountId; 17 class AccountId;
18 18
19 namespace chromeos { 19 namespace chromeos {
20 20
21 class AppLaunchController; 21 class AppLaunchController;
22 class AutoEnrollmentController;
23 class LoginScreenContext; 22 class LoginScreenContext;
24 class OobeUI; 23 class OobeUI;
25 class WebUILoginView; 24 class WebUILoginView;
26 class WizardController; 25 class WizardController;
27 26
28 // An interface that defines OOBE/login screen host. 27 // An interface that defines OOBE/login screen host.
29 // Host encapsulates WebUI window OOBE/login controllers, 28 // Host encapsulates WebUI window OOBE/login controllers,
30 // UI implementation (such as LoginDisplay). 29 // UI implementation (such as LoginDisplay).
31 class LoginDisplayHost { 30 class LoginDisplayHost {
32 public: 31 public:
(...skipping 16 matching lines...) Expand all
49 // Returns the current login view. 48 // Returns the current login view.
50 virtual WebUILoginView* GetWebUILoginView() const = 0; 49 virtual WebUILoginView* GetWebUILoginView() const = 0;
51 50
52 // Called when browsing session starts before creating initial browser. 51 // Called when browsing session starts before creating initial browser.
53 virtual void BeforeSessionStart() = 0; 52 virtual void BeforeSessionStart() = 0;
54 53
55 // Called when user enters or returns to browsing session so 54 // Called when user enters or returns to browsing session so
56 // LoginDisplayHost instance may delete itself. 55 // LoginDisplayHost instance may delete itself.
57 virtual void Finalize() = 0; 56 virtual void Finalize() = 0;
58 57
59 // Called when a login has completed successfully.
60 virtual void OnCompleteLogin() = 0;
61
62 // Open proxy settings dialog. 58 // Open proxy settings dialog.
63 virtual void OpenProxySettings() = 0; 59 virtual void OpenProxySettings() = 0;
64 60
65 // Toggles status area visibility. 61 // Toggles status area visibility.
66 virtual void SetStatusAreaVisible(bool visible) = 0; 62 virtual void SetStatusAreaVisible(bool visible) = 0;
67 63
68 // Gets the auto-enrollment client.
69 virtual AutoEnrollmentController* GetAutoEnrollmentController() = 0;
70
71 // Starts out-of-box-experience flow or shows other screen handled by 64 // Starts out-of-box-experience flow or shows other screen handled by
72 // Wizard controller i.e. camera, recovery. 65 // Wizard controller i.e. camera, recovery.
73 // One could specify start screen with |first_screen|. 66 // One could specify start screen with |first_screen|.
74 virtual void StartWizard(OobeScreen first_screen) = 0; 67 virtual void StartWizard(OobeScreen first_screen) = 0;
75 68
76 // Returns current WizardController, if it exists. 69 // Returns current WizardController, if it exists.
77 // Result should not be stored. 70 // Result should not be stored.
78 virtual WizardController* GetWizardController() = 0; 71 virtual WizardController* GetWizardController() = 0;
79 72
80 // Returns current AppLaunchController, if it exists. 73 // Returns current AppLaunchController, if it exists.
(...skipping 30 matching lines...) Expand all
111 virtual void StartArcKiosk(const AccountId& account_id) = 0; 104 virtual void StartArcKiosk(const AccountId& account_id) = 0;
112 105
113 protected: 106 protected:
114 // Default LoginDisplayHost. Child class sets the reference. 107 // Default LoginDisplayHost. Child class sets the reference.
115 static LoginDisplayHost* default_host_; 108 static LoginDisplayHost* default_host_;
116 }; 109 };
117 110
118 } // namespace chromeos 111 } // namespace chromeos
119 112
120 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_H_ 113 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698