| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SIGNIN_SCREENLOCK_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_SCREENLOCK_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_SIGNIN_SCREENLOCK_BRIDGE_H_ | 6 #define CHROME_BROWSER_SIGNIN_SCREENLOCK_BRIDGE_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include <string> |
| 9 |
| 9 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| 10 #include "base/macros.h" | 11 #include "base/macros.h" |
| 11 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
| 12 | 13 |
| 13 namespace gfx { | 14 namespace gfx { |
| 14 class Image; | 15 class Image; |
| 15 } | 16 } |
| 16 | 17 |
| 17 class Profile; | 18 class Profile; |
| 18 | 19 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 38 enum AuthType { | 39 enum AuthType { |
| 39 OFFLINE_PASSWORD = 0, | 40 OFFLINE_PASSWORD = 0, |
| 40 ONLINE_SIGN_IN = 1, | 41 ONLINE_SIGN_IN = 1, |
| 41 NUMERIC_PIN = 2, | 42 NUMERIC_PIN = 2, |
| 42 USER_CLICK = 3, | 43 USER_CLICK = 3, |
| 43 }; | 44 }; |
| 44 | 45 |
| 45 // Displays |message| in a banner on the lock screen. | 46 // Displays |message| in a banner on the lock screen. |
| 46 virtual void ShowBannerMessage(const std::string& message) = 0; | 47 virtual void ShowBannerMessage(const std::string& message) = 0; |
| 47 | 48 |
| 48 // Shows a button inside the user pod on the lock screen with an icon. | 49 // Shows a custom icon in the user pod on the lock screen. |
| 49 // |callback| is invoked when the icon is clicked. This is deprecated now. | 50 virtual void ShowUserPodCustomIcon(const std::string& user_email, |
| 50 virtual void ShowUserPodButton(const std::string& user_email, | 51 const gfx::Image& icon) = 0; |
| 51 const gfx::Image& icon, | |
| 52 const base::Closure& callback) = 0; | |
| 53 | 52 |
| 54 // Hides the user pod button for a user. | 53 // Hides the custom icon in user pod for a user. |
| 55 virtual void HideUserPodButton(const std::string& user_email) = 0; | 54 virtual void HideUserPodCustomIcon(const std::string& user_email) = 0; |
| 56 | 55 |
| 57 // (Re)enable lock screen UI. | 56 // (Re)enable lock screen UI. |
| 58 virtual void EnableInput() = 0; | 57 virtual void EnableInput() = 0; |
| 59 | 58 |
| 60 // Set the authentication type to be used on the lock screen. | 59 // Set the authentication type to be used on the lock screen. |
| 61 virtual void SetAuthType(const std::string& user_email, | 60 virtual void SetAuthType(const std::string& user_email, |
| 62 AuthType auth_type, | 61 AuthType auth_type, |
| 63 const std::string& auth_value) = 0; | 62 const std::string& auth_value) = 0; |
| 64 | 63 |
| 65 // Returns the authentication type used for a user. | 64 // Returns the authentication type used for a user. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 93 ScreenlockBridge(); | 92 ScreenlockBridge(); |
| 94 ~ScreenlockBridge(); | 93 ~ScreenlockBridge(); |
| 95 | 94 |
| 96 LockHandler* lock_handler_; // Not owned | 95 LockHandler* lock_handler_; // Not owned |
| 97 ObserverList<Observer, true> observers_; | 96 ObserverList<Observer, true> observers_; |
| 98 | 97 |
| 99 DISALLOW_COPY_AND_ASSIGN(ScreenlockBridge); | 98 DISALLOW_COPY_AND_ASSIGN(ScreenlockBridge); |
| 100 }; | 99 }; |
| 101 | 100 |
| 102 #endif // CHROME_BROWSER_SIGNIN_SCREENLOCK_BRIDGE_H_ | 101 #endif // CHROME_BROWSER_SIGNIN_SCREENLOCK_BRIDGE_H_ |
| OLD | NEW |