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

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

Issue 2935623003: Merge "cros: Move wallpaper after login screen is gone" (Closed)
Patch Set: Created 3 years, 6 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_forward.h"
11 #include "base/callback_list.h"
12 #include "chrome/browser/chromeos/customization/customization_document.h" 11 #include "chrome/browser/chromeos/customization/customization_document.h"
13 #include "chrome/browser/chromeos/login/oobe_screen.h" 12 #include "chrome/browser/chromeos/login/oobe_screen.h"
14 #include "chrome/browser/chromeos/login/ui/login_display.h" 13 #include "chrome/browser/chromeos/login/ui/login_display.h"
15 #include "ui/gfx/native_widget_types.h" 14 #include "ui/gfx/native_widget_types.h"
16 15
17 class AccountId; 16 class AccountId;
18 17
19 namespace chromeos { 18 namespace chromeos {
20 19
21 class AppLaunchController; 20 class AppLaunchController;
(...skipping 23 matching lines...) Expand all
45 44
46 // Returns instance of the OOBE WebUI. 45 // Returns instance of the OOBE WebUI.
47 virtual OobeUI* GetOobeUI() const = 0; 46 virtual OobeUI* GetOobeUI() const = 0;
48 47
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 LoginDisplayHost
56 // LoginDisplayHost instance may delete itself. 55 // instance may delete itself. |completion_callback| will be invoked when the
57 virtual void Finalize() = 0; 56 // instance is gone.
57 virtual void Finalize(base::OnceClosure completion_callback) = 0;
58 58
59 // Called when a login has completed successfully. 59 // Called when a login has completed successfully.
60 virtual void OnCompleteLogin() = 0; 60 virtual void OnCompleteLogin() = 0;
61 61
62 // Open proxy settings dialog. 62 // Open proxy settings dialog.
63 virtual void OpenProxySettings() = 0; 63 virtual void OpenProxySettings() = 0;
64 64
65 // Toggles status area visibility. 65 // Toggles status area visibility.
66 virtual void SetStatusAreaVisible(bool visible) = 0; 66 virtual void SetStatusAreaVisible(bool visible) = 0;
67 67
68 // Gets the auto-enrollment client. 68 // Gets the auto-enrollment client.
69 virtual AutoEnrollmentController* GetAutoEnrollmentController() = 0; 69 virtual AutoEnrollmentController* GetAutoEnrollmentController() = 0;
70 70
71 // Starts out-of-box-experience flow or shows other screen handled by 71 // Starts out-of-box-experience flow or shows other screen handled by
72 // Wizard controller i.e. camera, recovery. 72 // Wizard controller i.e. camera, recovery.
73 // One could specify start screen with |first_screen|. 73 // One could specify start screen with |first_screen|.
74 virtual void StartWizard(OobeScreen first_screen) = 0; 74 virtual void StartWizard(OobeScreen first_screen) = 0;
75 75
76 // Returns current WizardController, if it exists. 76 // Returns current WizardController, if it exists.
77 // Result should not be stored. 77 // Result should not be stored.
78 virtual WizardController* GetWizardController() = 0; 78 virtual WizardController* GetWizardController() = 0;
79 79
80 // Returns current AppLaunchController, if it exists. 80 // Returns current AppLaunchController, if it exists.
81 // Result should not be stored. 81 // Result should not be stored.
82 virtual AppLaunchController* GetAppLaunchController() = 0; 82 virtual AppLaunchController* GetAppLaunchController() = 0;
83 83
84 // Starts screen for adding user into session. 84 // Starts screen for adding user into session.
85 // |completion_callback| called before display host shutdown. 85 // |completion_callback| is invoked after login display host shutdown.
86 // |completion_callback| can be null. 86 // |completion_callback| can be null.
87 virtual void StartUserAdding(const base::Closure& completion_callback) = 0; 87 virtual void StartUserAdding(base::OnceClosure completion_callback) = 0;
88 88
89 // Cancel addint user into session. 89 // Cancel addint user into session.
90 virtual void CancelUserAdding() = 0; 90 virtual void CancelUserAdding() = 0;
91 91
92 // Starts sign in screen. 92 // Starts sign in screen.
93 virtual void StartSignInScreen(const LoginScreenContext& context) = 0; 93 virtual void StartSignInScreen(const LoginScreenContext& context) = 0;
94 94
95 // Invoked when system preferences that affect the signin screen have changed. 95 // Invoked when system preferences that affect the signin screen have changed.
96 virtual void OnPreferencesChanged() = 0; 96 virtual void OnPreferencesChanged() = 0;
97 97
(...skipping 13 matching lines...) Expand all
111 virtual void StartArcKiosk(const AccountId& account_id) = 0; 111 virtual void StartArcKiosk(const AccountId& account_id) = 0;
112 112
113 protected: 113 protected:
114 // Default LoginDisplayHost. Child class sets the reference. 114 // Default LoginDisplayHost. Child class sets the reference.
115 static LoginDisplayHost* default_host_; 115 static LoginDisplayHost* default_host_;
116 }; 116 };
117 117
118 } // namespace chromeos 118 } // namespace chromeos
119 119
120 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_H_ 120 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698