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_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_DELEGATE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_DELEGATE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_DELEGATE_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "chrome/browser/chromeos/login/help_app_launcher.h" | 10 #include "chrome/browser/chromeos/login/help_app_launcher.h" |
| 11 #include "chrome/browser/chromeos/login/login_display.h" |
11 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
12 | 13 |
13 class GURL; | 14 class GURL; |
14 | 15 |
15 namespace content { | 16 namespace content { |
16 class WebUI; | 17 class WebUI; |
17 } | 18 } |
18 | 19 |
19 namespace gfx { | 20 namespace gfx { |
20 class Image; | 21 class Image; |
(...skipping 24 matching lines...) Expand all Loading... |
45 virtual void SetInputEnabled(bool enabled) = 0; | 46 virtual void SetInputEnabled(bool enabled) = 0; |
46 | 47 |
47 // Displays a banner containing |message| on the lock screen. | 48 // Displays a banner containing |message| on the lock screen. |
48 virtual void ShowBannerMessage(const std::string& message) = 0; | 49 virtual void ShowBannerMessage(const std::string& message) = 0; |
49 | 50 |
50 // Shows a button inside the user pod on the lock screen with an icon. | 51 // Shows a button inside the user pod on the lock screen with an icon. |
51 virtual void ShowUserPodButton(const std::string& username, | 52 virtual void ShowUserPodButton(const std::string& username, |
52 const std::string& iconURL, | 53 const std::string& iconURL, |
53 const base::Closure& click_callback) = 0; | 54 const base::Closure& click_callback) = 0; |
54 | 55 |
| 56 // Hides the user pod button for a user. |
| 57 virtual void HideUserPodButton(const std::string& username) = 0; |
| 58 |
| 59 // Set the authentication type to be used on the lock screen. |
| 60 virtual void SetAuthType(const std::string& username, |
| 61 LoginDisplay::AuthType auth_type, |
| 62 const std::string& initial_value) = 0; |
| 63 |
| 64 // Returns the authentication type used for |username|. |
| 65 virtual LoginDisplay::AuthType GetAuthType(const std::string& username) |
| 66 const = 0; |
| 67 |
55 // Disables all UI needed and shows error bubble with |message|. | 68 // Disables all UI needed and shows error bubble with |message|. |
56 // If |sign_out_only| is true then all other input except "Sign Out" | 69 // If |sign_out_only| is true then all other input except "Sign Out" |
57 // button is blocked. | 70 // button is blocked. |
58 virtual void ShowErrorMessage( | 71 virtual void ShowErrorMessage( |
59 int error_msg_id, | 72 int error_msg_id, |
60 HelpAppLauncher::HelpTopic help_topic_id) = 0; | 73 HelpAppLauncher::HelpTopic help_topic_id) = 0; |
61 | 74 |
62 // Close message bubble to clear error messages. | 75 // Close message bubble to clear error messages. |
63 virtual void ClearErrors() = 0; | 76 virtual void ClearErrors() = 0; |
64 | 77 |
(...skipping 20 matching lines...) Expand all Loading... |
85 protected: | 98 protected: |
86 // ScreenLocker that owns this delegate. | 99 // ScreenLocker that owns this delegate. |
87 ScreenLocker* screen_locker_; | 100 ScreenLocker* screen_locker_; |
88 | 101 |
89 DISALLOW_COPY_AND_ASSIGN(ScreenLockerDelegate); | 102 DISALLOW_COPY_AND_ASSIGN(ScreenLockerDelegate); |
90 }; | 103 }; |
91 | 104 |
92 } // namespace chromeos | 105 } // namespace chromeos |
93 | 106 |
94 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_DELEGATE_H_ | 107 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_DELEGATE_H_ |
OLD | NEW |