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

Side by Side Diff: chrome/browser/chromeos/login/webui_login_display.h

Issue 228553002: Preference dis/allowing supervised users creation is now available as owner setting, not only as de… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_WEBUI_LOGIN_DISPLAY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 13 matching lines...) Expand all
24 public SigninScreenHandlerDelegate, 24 public SigninScreenHandlerDelegate,
25 public wm::UserActivityObserver { 25 public wm::UserActivityObserver {
26 public: 26 public:
27 explicit WebUILoginDisplay(LoginDisplay::Delegate* delegate); 27 explicit WebUILoginDisplay(LoginDisplay::Delegate* delegate);
28 virtual ~WebUILoginDisplay(); 28 virtual ~WebUILoginDisplay();
29 29
30 // LoginDisplay implementation: 30 // LoginDisplay implementation:
31 virtual void ClearAndEnablePassword() OVERRIDE; 31 virtual void ClearAndEnablePassword() OVERRIDE;
32 virtual void Init(const UserList& users, 32 virtual void Init(const UserList& users,
33 bool show_guest, 33 bool show_guest,
34 bool show_supervised,
34 bool show_users, 35 bool show_users,
35 bool show_new_user) OVERRIDE; 36 bool show_new_user) OVERRIDE;
36 virtual void OnPreferencesChanged() OVERRIDE; 37 virtual void OnPreferencesChanged() OVERRIDE;
37 virtual void OnBeforeUserRemoved(const std::string& username) OVERRIDE; 38 virtual void OnBeforeUserRemoved(const std::string& username) OVERRIDE;
38 virtual void OnUserImageChanged(const User& user) OVERRIDE; 39 virtual void OnUserImageChanged(const User& user) OVERRIDE;
39 virtual void OnUserRemoved(const std::string& username) OVERRIDE; 40 virtual void OnUserRemoved(const std::string& username) OVERRIDE;
40 virtual void OnFadeOut() OVERRIDE; 41 virtual void OnFadeOut() OVERRIDE;
41 virtual void OnLoginSuccess(const std::string& username) OVERRIDE; 42 virtual void OnLoginSuccess(const std::string& username) OVERRIDE;
42 virtual void SetUIEnabled(bool is_enabled) OVERRIDE; 43 virtual void SetUIEnabled(bool is_enabled) OVERRIDE;
43 virtual void SelectPod(int index) OVERRIDE; 44 virtual void SelectPod(int index) OVERRIDE;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual void ShowKioskEnableScreen() OVERRIDE; 82 virtual void ShowKioskEnableScreen() OVERRIDE;
82 virtual void ShowResetScreen() OVERRIDE; 83 virtual void ShowResetScreen() OVERRIDE;
83 virtual void ShowKioskAutolaunchScreen() OVERRIDE; 84 virtual void ShowKioskAutolaunchScreen() OVERRIDE;
84 virtual void ShowWrongHWIDScreen() OVERRIDE; 85 virtual void ShowWrongHWIDScreen() OVERRIDE;
85 virtual void SetWebUIHandler( 86 virtual void SetWebUIHandler(
86 LoginDisplayWebUIHandler* webui_handler) OVERRIDE; 87 LoginDisplayWebUIHandler* webui_handler) OVERRIDE;
87 virtual void ShowSigninScreenForCreds(const std::string& username, 88 virtual void ShowSigninScreenForCreds(const std::string& username,
88 const std::string& password); 89 const std::string& password);
89 virtual const UserList& GetUsers() const OVERRIDE; 90 virtual const UserList& GetUsers() const OVERRIDE;
90 virtual bool IsShowGuest() const OVERRIDE; 91 virtual bool IsShowGuest() const OVERRIDE;
92 virtual bool IsShowSupervised() const OVERRIDE;
91 virtual bool IsShowUsers() const OVERRIDE; 93 virtual bool IsShowUsers() const OVERRIDE;
92 virtual bool IsShowNewUser() const OVERRIDE; 94 virtual bool IsShowNewUser() const OVERRIDE;
93 virtual bool IsSigninInProgress() const OVERRIDE; 95 virtual bool IsSigninInProgress() const OVERRIDE;
94 virtual bool IsUserSigninCompleted() const OVERRIDE; 96 virtual bool IsUserSigninCompleted() const OVERRIDE;
95 virtual void SetDisplayEmail(const std::string& email) OVERRIDE; 97 virtual void SetDisplayEmail(const std::string& email) OVERRIDE;
96 virtual void Signout() OVERRIDE; 98 virtual void Signout() OVERRIDE;
97 virtual void LoginAsKioskApp(const std::string& app_id, 99 virtual void LoginAsKioskApp(const std::string& app_id,
98 bool diagnostic_mode) OVERRIDE; 100 bool diagnostic_mode) OVERRIDE;
99 101
100 // wm::UserActivityDetector implementation: 102 // wm::UserActivityDetector implementation:
101 virtual void OnUserActivity(const ui::Event* event) OVERRIDE; 103 virtual void OnUserActivity(const ui::Event* event) OVERRIDE;
102 104
103 private: 105 private:
104 void StartPasswordClearTimer(); 106 void StartPasswordClearTimer();
105 void OnPasswordClearTimerExpired(); 107 void OnPasswordClearTimerExpired();
106 108
107 // Set of Users that are visible. 109 // Set of Users that are visible.
108 UserList users_; 110 UserList users_;
109 111
110 // Whether to show guest login. 112 // Whether to show guest login.
111 bool show_guest_; 113 bool show_guest_;
112 114
115 // Whether to show supervised login.
Nikita (slow) 2014/04/08 14:02:09 nit: show supervised users.
merkulova 2014/04/09 15:24:19 Done.
116 bool show_supervised_;
117
113 // Weather to show the user pads or a plain credentials dialogue. 118 // Weather to show the user pads or a plain credentials dialogue.
114 bool show_users_; 119 bool show_users_;
115 120
116 // Whether to show add new user. 121 // Whether to show add new user.
117 bool show_new_user_; 122 bool show_new_user_;
118 123
119 // Timer for measuring idle state duration before password clear. 124 // Timer for measuring idle state duration before password clear.
120 base::OneShotTimer<WebUILoginDisplay> password_clear_timer_; 125 base::OneShotTimer<WebUILoginDisplay> password_clear_timer_;
121 126
122 // Reference to the WebUI handling layer for the login screen 127 // Reference to the WebUI handling layer for the login screen
123 LoginDisplayWebUIHandler* webui_handler_; 128 LoginDisplayWebUIHandler* webui_handler_;
124 129
125 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplay); 130 DISALLOW_COPY_AND_ASSIGN(WebUILoginDisplay);
126 }; 131 };
127 132
128 } // namespace chromeos 133 } // namespace chromeos
129 134
130 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_H_ 135 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_DISPLAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698