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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 26 matching lines...) Expand all Loading... |
37 // Sets the displayed email for the next login attempt with |CompleteLogin|. | 37 // Sets the displayed email for the next login attempt with |CompleteLogin|. |
38 // If it succeeds, user's displayed email value will be updated to |email|. | 38 // If it succeeds, user's displayed email value will be updated to |email|. |
39 virtual void SetDisplayEmail(const std::string& email) = 0; | 39 virtual void SetDisplayEmail(const std::string& email) = 0; |
40 | 40 |
41 // Complete sign process with specified |username| and |password|. | 41 // Complete sign process with specified |username| and |password|. |
42 // Used for new users authenticated through an extension. | 42 // Used for new users authenticated through an extension. |
43 virtual void CompleteLogin(const std::string& username, | 43 virtual void CompleteLogin(const std::string& username, |
44 const std::string& password) = 0; | 44 const std::string& password) = 0; |
45 | 45 |
46 // Sign in using |username| and |password| specified. | 46 // Sign in using |username| and |password| specified. |
47 // Used for both known users only. | 47 // Used for known users only. |
48 virtual void Login(const std::string& username, | 48 virtual void Login(const std::string& username, |
49 const std::string& password) = 0; | 49 const std::string& password) = 0; |
50 | 50 |
51 // Sign in as a demo user. | 51 // Sign in as a demo user. |
52 virtual void LoginAsDemoUser() = 0; | 52 virtual void LoginAsDemoUser() = 0; |
53 | 53 |
54 // Sign in into Guest session. | 54 // Sign in into Guest session. |
55 virtual void LoginAsGuest() = 0; | 55 virtual void LoginAsGuest() = 0; |
56 | 56 |
57 // Sign out the currently signed in user. | 57 // Sign out the currently signed in user. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 136 |
137 // Bounds of the login UI background. | 137 // Bounds of the login UI background. |
138 gfx::Rect background_bounds_; | 138 gfx::Rect background_bounds_; |
139 | 139 |
140 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); | 140 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); |
141 }; | 141 }; |
142 | 142 |
143 } // namespace chromeos | 143 } // namespace chromeos |
144 | 144 |
145 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ | 145 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ |
OLD | NEW |