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

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

Issue 2510203002: Implement auto-login for ARC kiosk. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kiosk_session
Patch Set: Stop timer if running in StartAutoLoginTimer() Created 4 years, 1 month 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_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Used when the lock screen is being displayed. 59 // Used when the lock screen is being displayed.
60 virtual void Signout() = 0; 60 virtual void Signout() = 0;
61 61
62 // Complete sign process with specified |user_context|. 62 // Complete sign process with specified |user_context|.
63 // Used for new users authenticated through an extension. 63 // Used for new users authenticated through an extension.
64 virtual void CompleteLogin(const UserContext& user_context) = 0; 64 virtual void CompleteLogin(const UserContext& user_context) = 0;
65 65
66 // Notify the delegate when the sign-in UI is finished loading. 66 // Notify the delegate when the sign-in UI is finished loading.
67 virtual void OnSigninScreenReady() = 0; 67 virtual void OnSigninScreenReady() = 0;
68 68
69 // Notify the delegate when the GAIA UI is finished loading.
70 virtual void OnGaiaScreenReady() = 0;
71
69 // Called when the user requests enterprise enrollment. 72 // Called when the user requests enterprise enrollment.
70 virtual void OnStartEnterpriseEnrollment() = 0; 73 virtual void OnStartEnterpriseEnrollment() = 0;
71 74
72 // Called when the user requests enable developer features screen. 75 // Called when the user requests enable developer features screen.
73 virtual void OnStartEnableDebuggingScreen() = 0; 76 virtual void OnStartEnableDebuggingScreen() = 0;
74 77
75 // Called when the user requests kiosk enable screen. 78 // Called when the user requests kiosk enable screen.
76 virtual void OnStartKioskEnableScreen() = 0; 79 virtual void OnStartKioskEnableScreen() = 0;
77 80
78 // Called when the owner permission for kiosk app auto launch is requested. 81 // Called when the owner permission for kiosk app auto launch is requested.
79 virtual void OnStartKioskAutolaunchScreen() = 0; 82 virtual void OnStartKioskAutolaunchScreen() = 0;
80 83
81 // Shows wrong HWID screen. 84 // Shows wrong HWID screen.
82 virtual void ShowWrongHWIDScreen() = 0; 85 virtual void ShowWrongHWIDScreen() = 0;
83 86
84 // Sets the displayed email for the next login attempt with |CompleteLogin|. 87 // Sets the displayed email for the next login attempt with |CompleteLogin|.
85 // If it succeeds, user's displayed email value will be updated to |email|. 88 // If it succeeds, user's displayed email value will be updated to |email|.
86 virtual void SetDisplayEmail(const std::string& email) = 0; 89 virtual void SetDisplayEmail(const std::string& email) = 0;
87 90
88 // Returns name of the currently connected network, for error message, 91 // Returns name of the currently connected network, for error message,
89 virtual base::string16 GetConnectedNetworkName() = 0; 92 virtual base::string16 GetConnectedNetworkName() = 0;
90 93
91 // Restarts the public-session auto-login timer if it is running. 94 // Restarts the auto-login timer if it is running.
92 virtual void ResetPublicSessionAutoLoginTimer() = 0; 95 virtual void ResetAutoLoginTimer() = 0;
93 96
94 // Returns true if user is allowed to log in by domain policy. 97 // Returns true if user is allowed to log in by domain policy.
95 virtual bool IsUserWhitelisted(const AccountId& account_id) = 0; 98 virtual bool IsUserWhitelisted(const AccountId& account_id) = 0;
96 99
97 protected: 100 protected:
98 virtual ~Delegate(); 101 virtual ~Delegate();
99 }; 102 };
100 103
101 // |background_bounds| determines the bounds of login UI background. 104 // |background_bounds| determines the bounds of login UI background.
102 LoginDisplay(Delegate* delegate, const gfx::Rect& background_bounds); 105 LoginDisplay(Delegate* delegate, const gfx::Rect& background_bounds);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // in redesigned login stack. 178 // in redesigned login stack.
176 // Login stack (and this object) will be recreated for next user sign in. 179 // Login stack (and this object) will be recreated for next user sign in.
177 bool is_signin_completed_; 180 bool is_signin_completed_;
178 181
179 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); 182 DISALLOW_COPY_AND_ASSIGN(LoginDisplay);
180 }; 183 };
181 184
182 } // namespace chromeos 185 } // namespace chromeos
183 186
184 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ 187 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/lock/webui_screen_locker.cc ('k') | chrome/browser/chromeos/login/ui/webui_login_display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698