OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LOGIN_DISPLAY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
93 virtual void ResyncUserData() = 0; | 93 virtual void ResyncUserData() = 0; |
94 | 94 |
95 // Sets the displayed email for the next login attempt with |CompleteLogin|. | 95 // Sets the displayed email for the next login attempt with |CompleteLogin|. |
96 // If it succeeds, user's displayed email value will be updated to |email|. | 96 // If it succeeds, user's displayed email value will be updated to |email|. |
97 virtual void SetDisplayEmail(const std::string& email) = 0; | 97 virtual void SetDisplayEmail(const std::string& email) = 0; |
98 | 98 |
99 // Sign out the currently signed in user. | 99 // Sign out the currently signed in user. |
100 // Used when the lock screen is being displayed. | 100 // Used when the lock screen is being displayed. |
101 virtual void Signout() = 0; | 101 virtual void Signout() = 0; |
102 | 102 |
103 // Login to kiosk mode for app with |app_id|. | |
104 virtual void LoginAsKioskApp(const std::string& app_id) = 0; | |
xiyuan
2013/08/19 17:40:29
nit: move it with other LoginAsxxx methods.
Tim Song
2013/08/19 20:05:07
Done.
| |
105 | |
103 protected: | 106 protected: |
104 virtual ~Delegate(); | 107 virtual ~Delegate(); |
105 }; | 108 }; |
106 | 109 |
107 // |background_bounds| determines the bounds of login UI background. | 110 // |background_bounds| determines the bounds of login UI background. |
108 LoginDisplay(Delegate* delegate, const gfx::Rect& background_bounds); | 111 LoginDisplay(Delegate* delegate, const gfx::Rect& background_bounds); |
109 virtual ~LoginDisplay(); | 112 virtual ~LoginDisplay(); |
110 | 113 |
111 // Clears and enables fields on user pod or GAIA frame. | 114 // Clears and enables fields on user pod or GAIA frame. |
112 virtual void ClearAndEnablePassword() = 0; | 115 virtual void ClearAndEnablePassword() = 0; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
191 // in redesigned login stack. | 194 // in redesigned login stack. |
192 // Login stack (and this object) will be recreated for next user sign in. | 195 // Login stack (and this object) will be recreated for next user sign in. |
193 bool is_signin_completed_; | 196 bool is_signin_completed_; |
194 | 197 |
195 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); | 198 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); |
196 }; | 199 }; |
197 | 200 |
198 } // namespace chromeos | 201 } // namespace chromeos |
199 | 202 |
200 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ | 203 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ |
OLD | NEW |