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

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

Issue 2891223002: cros: Move wallpaper after login screen is gone (Closed)
Patch Set: rebase Created 3 years, 7 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 22 matching lines...) Expand all
44 43
45 // Returns instance of the OOBE WebUI. 44 // Returns instance of the OOBE WebUI.
46 virtual OobeUI* GetOobeUI() const = 0; 45 virtual OobeUI* GetOobeUI() const = 0;
47 46
48 // Returns the current login view. 47 // Returns the current login view.
49 virtual WebUILoginView* GetWebUILoginView() const = 0; 48 virtual WebUILoginView* GetWebUILoginView() const = 0;
50 49
51 // Called when browsing session starts before creating initial browser. 50 // Called when browsing session starts before creating initial browser.
52 virtual void BeforeSessionStart() = 0; 51 virtual void BeforeSessionStart() = 0;
53 52
54 // Called when user enters or returns to browsing session so 53 // Called when user enters or returns to browsing session so LoginDisplayHost
55 // LoginDisplayHost instance may delete itself. 54 // instance may delete itself. |callback| will be invoked when the instance
56 virtual void Finalize() = 0; 55 // is gone.
56 virtual void Finalize(base::OnceClosure callback) = 0;
James Cook 2017/05/24 20:08:13 nit: |done_callback| or |completion_callback|
xiyuan 2017/05/24 20:37:22 Done.
57 57
58 // Open proxy settings dialog. 58 // Open proxy settings dialog.
59 virtual void OpenProxySettings() = 0; 59 virtual void OpenProxySettings() = 0;
60 60
61 // Toggles status area visibility. 61 // Toggles status area visibility.
62 virtual void SetStatusAreaVisible(bool visible) = 0; 62 virtual void SetStatusAreaVisible(bool visible) = 0;
63 63
64 // 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
65 // Wizard controller i.e. camera, recovery. 65 // Wizard controller i.e. camera, recovery.
66 // One could specify start screen with |first_screen|. 66 // One could specify start screen with |first_screen|.
67 virtual void StartWizard(OobeScreen first_screen) = 0; 67 virtual void StartWizard(OobeScreen first_screen) = 0;
68 68
69 // Returns current WizardController, if it exists. 69 // Returns current WizardController, if it exists.
70 // Result should not be stored. 70 // Result should not be stored.
71 virtual WizardController* GetWizardController() = 0; 71 virtual WizardController* GetWizardController() = 0;
72 72
73 // Returns current AppLaunchController, if it exists. 73 // Returns current AppLaunchController, if it exists.
74 // Result should not be stored. 74 // Result should not be stored.
75 virtual AppLaunchController* GetAppLaunchController() = 0; 75 virtual AppLaunchController* GetAppLaunchController() = 0;
76 76
77 // Starts screen for adding user into session. 77 // Starts screen for adding user into session.
78 // |completion_callback| called before display host shutdown. 78 // |completion_callback| is invoked after login display host shutdown.
79 // |completion_callback| can be null. 79 // |completion_callback| can be null.
80 virtual void StartUserAdding(const base::Closure& completion_callback) = 0; 80 virtual void StartUserAdding(base::OnceClosure completion_callback) = 0;
81 81
82 // Cancel addint user into session. 82 // Cancel addint user into session.
83 virtual void CancelUserAdding() = 0; 83 virtual void CancelUserAdding() = 0;
84 84
85 // Starts sign in screen. 85 // Starts sign in screen.
86 virtual void StartSignInScreen(const LoginScreenContext& context) = 0; 86 virtual void StartSignInScreen(const LoginScreenContext& context) = 0;
87 87
88 // Invoked when system preferences that affect the signin screen have changed. 88 // Invoked when system preferences that affect the signin screen have changed.
89 virtual void OnPreferencesChanged() = 0; 89 virtual void OnPreferencesChanged() = 0;
90 90
(...skipping 13 matching lines...) Expand all
104 virtual void StartArcKiosk(const AccountId& account_id) = 0; 104 virtual void StartArcKiosk(const AccountId& account_id) = 0;
105 105
106 protected: 106 protected:
107 // Default LoginDisplayHost. Child class sets the reference. 107 // Default LoginDisplayHost. Child class sets the reference.
108 static LoginDisplayHost* default_host_; 108 static LoginDisplayHost* default_host_;
109 }; 109 };
110 110
111 } // namespace chromeos 111 } // namespace chromeos
112 112
113 #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