| 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" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // Inform the screen locker that the screen has been locked | 38 // Inform the screen locker that the screen has been locked |
| 39 virtual void ScreenLockReady(); | 39 virtual void ScreenLockReady(); |
| 40 | 40 |
| 41 // This function is called when ScreenLocker::Authenticate is called to | 41 // This function is called when ScreenLocker::Authenticate is called to |
| 42 // attempt to authenticate with a given password. | 42 // attempt to authenticate with a given password. |
| 43 virtual void OnAuthenticate() = 0; | 43 virtual void OnAuthenticate() = 0; |
| 44 | 44 |
| 45 // Enable/disable password input. | 45 // Enable/disable password input. |
| 46 virtual void SetInputEnabled(bool enabled) = 0; | 46 virtual void SetInputEnabled(bool enabled) = 0; |
| 47 | 47 |
| 48 // Displays a banner containing |message| on the lock screen. | |
| 49 virtual void ShowBannerMessage(const std::string& message) = 0; | |
| 50 | |
| 51 // Shows a button inside the user pod on the lock screen with an icon. | |
| 52 virtual void ShowUserPodButton(const std::string& username, | |
| 53 const std::string& iconURL, | |
| 54 const base::Closure& click_callback) = 0; | |
| 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 | |
| 68 // Disables all UI needed and shows error bubble with |message|. | 48 // Disables all UI needed and shows error bubble with |message|. |
| 69 // If |sign_out_only| is true then all other input except "Sign Out" | 49 // If |sign_out_only| is true then all other input except "Sign Out" |
| 70 // button is blocked. | 50 // button is blocked. |
| 71 virtual void ShowErrorMessage( | 51 virtual void ShowErrorMessage( |
| 72 int error_msg_id, | 52 int error_msg_id, |
| 73 HelpAppLauncher::HelpTopic help_topic_id) = 0; | 53 HelpAppLauncher::HelpTopic help_topic_id) = 0; |
| 74 | 54 |
| 75 // Close message bubble to clear error messages. | 55 // Close message bubble to clear error messages. |
| 76 virtual void ClearErrors() = 0; | 56 virtual void ClearErrors() = 0; |
| 77 | 57 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 98 protected: | 78 protected: |
| 99 // ScreenLocker that owns this delegate. | 79 // ScreenLocker that owns this delegate. |
| 100 ScreenLocker* screen_locker_; | 80 ScreenLocker* screen_locker_; |
| 101 | 81 |
| 102 DISALLOW_COPY_AND_ASSIGN(ScreenLockerDelegate); | 82 DISALLOW_COPY_AND_ASSIGN(ScreenLockerDelegate); |
| 103 }; | 83 }; |
| 104 | 84 |
| 105 } // namespace chromeos | 85 } // namespace chromeos |
| 106 | 86 |
| 107 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_DELEGATE_H_ | 87 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_DELEGATE_H_ |
| OLD | NEW |