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_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/extensions/screenlock_private_api.h" | |
xiyuan
2014/02/16 18:38:14
nit: Is this needed?
Tim Song
2014/02/18 23:32:44
Done.
| |
16 #include "chrome/browser/chromeos/login/help_app_launcher.h" | 17 #include "chrome/browser/chromeos/login/help_app_launcher.h" |
18 #include "chrome/browser/chromeos/login/login_display.h" | |
17 #include "chrome/browser/chromeos/login/login_status_consumer.h" | 19 #include "chrome/browser/chromeos/login/login_status_consumer.h" |
18 #include "chrome/browser/chromeos/login/screen_locker_delegate.h" | 20 #include "chrome/browser/chromeos/login/screen_locker_delegate.h" |
19 #include "chrome/browser/chromeos/login/user.h" | 21 #include "chrome/browser/chromeos/login/user.h" |
20 #include "ui/base/accelerators/accelerator.h" | 22 #include "ui/base/accelerators/accelerator.h" |
21 | 23 |
22 namespace content { | 24 namespace content { |
23 class WebUI; | 25 class WebUI; |
24 } | 26 } |
25 | 27 |
26 namespace gfx { | 28 namespace gfx { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
82 void Signout(); | 84 void Signout(); |
83 | 85 |
84 // Displays |message| in a banner on the lock screen. | 86 // Displays |message| in a banner on the lock screen. |
85 void ShowBannerMessage(const std::string& message); | 87 void ShowBannerMessage(const std::string& message); |
86 | 88 |
87 // Shows a button inside the user pod on the lock screen with an icon. | 89 // Shows a button inside the user pod on the lock screen with an icon. |
88 void ShowUserPodButton(const std::string& username, | 90 void ShowUserPodButton(const std::string& username, |
89 const gfx::Image& icon, | 91 const gfx::Image& icon, |
90 const base::Closure& click_callback); | 92 const base::Closure& click_callback); |
91 | 93 |
94 // Hides the user pod button for a user. | |
95 void HideUserPodButton(const std::string& username); | |
96 | |
97 // Set the authentication type to be used on the lock screen. | |
98 void SetAuthType(const std::string& username, | |
99 LoginDisplay::AuthType auth_type, | |
100 const std::string& initial_value); | |
101 | |
102 // Returns the authentication type used for |username|. | |
103 LoginDisplay::AuthType GetAuthType(const std::string& username) const; | |
104 | |
92 // Disables all UI needed and shows error bubble with |message|. | 105 // Disables all UI needed and shows error bubble with |message|. |
93 // If |sign_out_only| is true then all other input except "Sign Out" | 106 // If |sign_out_only| is true then all other input except "Sign Out" |
94 // button is blocked. | 107 // button is blocked. |
95 void ShowErrorMessage(int error_msg_id, | 108 void ShowErrorMessage(int error_msg_id, |
96 HelpAppLauncher::HelpTopic help_topic_id, | 109 HelpAppLauncher::HelpTopic help_topic_id, |
97 bool sign_out_only); | 110 bool sign_out_only); |
98 | 111 |
99 // Returns the screen locker's delegate. | 112 // Returns the screen locker's delegate. |
100 ScreenLockerDelegate* delegate() const { return delegate_.get(); } | 113 ScreenLockerDelegate* delegate() const { return delegate_.get(); } |
101 | 114 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
190 scoped_ptr<ScreenlockIconProvider> screenlock_icon_provider_; | 203 scoped_ptr<ScreenlockIconProvider> screenlock_icon_provider_; |
191 | 204 |
192 base::WeakPtrFactory<ScreenLocker> weak_factory_; | 205 base::WeakPtrFactory<ScreenLocker> weak_factory_; |
193 | 206 |
194 DISALLOW_COPY_AND_ASSIGN(ScreenLocker); | 207 DISALLOW_COPY_AND_ASSIGN(ScreenLocker); |
195 }; | 208 }; |
196 | 209 |
197 } // namespace chromeos | 210 } // namespace chromeos |
198 | 211 |
199 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ | 212 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ |
OLD | NEW |