Chromium Code Reviews| Index: chrome/browser/chromeos/login/login_display.h |
| diff --git a/chrome/browser/chromeos/login/login_display.h b/chrome/browser/chromeos/login/login_display.h |
| index 60122aa774887be3ecd77fa7dec926b7d608da57..df47f40f6003683a02f5b3edf73eab680ce92f87 100644 |
| --- a/chrome/browser/chromeos/login/login_display.h |
| +++ b/chrome/browser/chromeos/login/login_display.h |
| @@ -20,10 +20,27 @@ |
| namespace chromeos { |
| +class ScreenLocker; |
|
xiyuan
2014/02/16 18:38:14
nit: This seems not used.
Tim Song
2014/02/18 23:32:44
Done.
|
| + |
| // TODO(nkostylev): Extract interface, create a BaseLoginDisplay class. |
| // An abstract class that defines login UI implementation. |
| class LoginDisplay : public RemoveUserDelegate { |
| public: |
| + // Supported authentication types for login. |
| + enum AuthType { |
| + // Authenticates using the user's regular password. |
| + SYSTEM_PASSWORD, |
|
xiyuan
2014/02/16 18:38:14
nit: OFFLINE_PASSWORD. SYSTEM_PASSWORD is a bit c
Tim Song
2014/02/18 23:32:44
Done.
|
| + |
| + // Authenticates by forced online GAIA sign in. |
| + ONLINE_SIGN_IN, |
| + |
| + // Authenticates with a 4 digit numeric pin. |
| + NUMERIC_PIN, |
| + |
| + // Authenticates by clicking pod when it is focused. |
| + USER_CLICK, |
| + }; |
| + |
| // Sign in error IDs that require detailed error screen and not just |
| // a simple error bubble. |
| enum SigninError { |
| @@ -154,6 +171,17 @@ class LoginDisplay : public RemoveUserDelegate { |
| const std::string& iconURL, |
| const base::Closure& click_callback) = 0; |
| + // Hides the user pod button for a user. |
| + virtual void HideUserPodButton(const std::string& username) = 0; |
| + |
| + // Set the authentication type to be used on the lock screen. |
| + virtual void SetAuthType(const std::string& username, |
| + AuthType auth_type, |
| + const std::string& initial_value) = 0; |
| + |
| + // Returns the authentication type used for |username|. |
| + virtual AuthType GetAuthType(const std::string& username) const = 0; |
| + |
| // Displays simple error bubble with |error_msg_id| specified. |
| // |login_attempts| shows number of login attempts made by current user. |
| // |help_topic_id| is additional help topic that is presented as link. |