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

Side by Side Diff: chrome/browser/chromeos/login/screen_locker.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 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_SCREEN_LOCKER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/sequenced_task_runner_helpers.h" 14 #include "base/sequenced_task_runner_helpers.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "chrome/browser/chromeos/login/help_app_launcher.h" 16 #include "chrome/browser/chromeos/login/help_app_launcher.h"
17 #include "chrome/browser/chromeos/login/login_display.h"
17 #include "chrome/browser/chromeos/login/login_status_consumer.h" 18 #include "chrome/browser/chromeos/login/login_status_consumer.h"
18 #include "chrome/browser/chromeos/login/screen_locker_delegate.h" 19 #include "chrome/browser/chromeos/login/screen_locker_delegate.h"
19 #include "chrome/browser/chromeos/login/user.h" 20 #include "chrome/browser/chromeos/login/user.h"
20 #include "ui/base/accelerators/accelerator.h" 21 #include "ui/base/accelerators/accelerator.h"
21 22
22 namespace content { 23 namespace content {
23 class WebUI; 24 class WebUI;
24 } 25 }
25 26
26 namespace gfx { 27 namespace gfx {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 void Signout(); 83 void Signout();
83 84
84 // Displays |message| in a banner on the lock screen. 85 // Displays |message| in a banner on the lock screen.
85 void ShowBannerMessage(const std::string& message); 86 void ShowBannerMessage(const std::string& message);
86 87
87 // Shows a button inside the user pod on the lock screen with an icon. 88 // Shows a button inside the user pod on the lock screen with an icon.
88 void ShowUserPodButton(const std::string& username, 89 void ShowUserPodButton(const std::string& username,
89 const gfx::Image& icon, 90 const gfx::Image& icon,
90 const base::Closure& click_callback); 91 const base::Closure& click_callback);
91 92
93 // Hides the user pod button for a user.
94 void HideUserPodButton(const std::string& username);
95
96 // Set the authentication type to be used on the lock screen.
97 void SetAuthType(const std::string& username,
98 LoginDisplay::AuthType auth_type,
99 const std::string& initial_value);
100
101 // Returns the authentication type used for |username|.
102 LoginDisplay::AuthType GetAuthType(const std::string& username) const;
103
92 // Disables all UI needed and shows error bubble with |message|. 104 // Disables all UI needed and shows error bubble with |message|.
93 // If |sign_out_only| is true then all other input except "Sign Out" 105 // If |sign_out_only| is true then all other input except "Sign Out"
94 // button is blocked. 106 // button is blocked.
95 void ShowErrorMessage(int error_msg_id, 107 void ShowErrorMessage(int error_msg_id,
96 HelpAppLauncher::HelpTopic help_topic_id, 108 HelpAppLauncher::HelpTopic help_topic_id,
97 bool sign_out_only); 109 bool sign_out_only);
98 110
99 // Returns the screen locker's delegate. 111 // Returns the screen locker's delegate.
100 ScreenLockerDelegate* delegate() const { return delegate_.get(); } 112 ScreenLockerDelegate* delegate() const { return delegate_.get(); }
101 113
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 scoped_ptr<ScreenlockIconProvider> screenlock_icon_provider_; 202 scoped_ptr<ScreenlockIconProvider> screenlock_icon_provider_;
191 203
192 base::WeakPtrFactory<ScreenLocker> weak_factory_; 204 base::WeakPtrFactory<ScreenLocker> weak_factory_;
193 205
194 DISALLOW_COPY_AND_ASSIGN(ScreenLocker); 206 DISALLOW_COPY_AND_ASSIGN(ScreenLocker);
195 }; 207 };
196 208
197 } // namespace chromeos 209 } // namespace chromeos
198 210
199 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ 211 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/mock_login_display.h ('k') | chrome/browser/chromeos/login/screen_locker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698