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

Unified Diff: chrome/browser/chromeos/login/login_display.h

Issue 168813002: Refactor user pods to use authType property for distinct authentication modes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ScreenLockerTest Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/mock_login_display.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..576e690cbdb6b29b46a871131c1734ae0f9cfa5f 100644
--- a/chrome/browser/chromeos/login/login_display.h
+++ b/chrome/browser/chromeos/login/login_display.h
@@ -24,6 +24,21 @@ namespace chromeos {
// 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.
+ OFFLINE_PASSWORD,
+
+ // 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 +169,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.
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/mock_login_display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698