OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 public: | 31 public: |
32 UserManagerScreenHandler(); | 32 UserManagerScreenHandler(); |
33 virtual ~UserManagerScreenHandler(); | 33 virtual ~UserManagerScreenHandler(); |
34 | 34 |
35 // WebUIMessageHandler implementation. | 35 // WebUIMessageHandler implementation. |
36 virtual void RegisterMessages() OVERRIDE; | 36 virtual void RegisterMessages() OVERRIDE; |
37 | 37 |
38 void GetLocalizedValues(base::DictionaryValue* localized_strings); | 38 void GetLocalizedValues(base::DictionaryValue* localized_strings); |
39 | 39 |
40 // ScreenlockBridge::LockHandler implementation. | 40 // ScreenlockBridge::LockHandler implementation. |
41 virtual void ShowBannerMessage(const std::string& message) OVERRIDE; | 41 virtual void ShowBannerMessage(const base::string16& message) OVERRIDE; |
42 virtual void ShowUserPodCustomIcon(const std::string& user_email, | 42 virtual void ShowUserPodCustomIcon( |
43 const gfx::Image& icon) OVERRIDE; | 43 const std::string& user_email, |
| 44 const ScreenlockBridge::UserPodCustomIconOptions& icon_options) OVERRIDE; |
44 virtual void HideUserPodCustomIcon(const std::string& user_email) OVERRIDE; | 45 virtual void HideUserPodCustomIcon(const std::string& user_email) OVERRIDE; |
45 virtual void EnableInput() OVERRIDE; | 46 virtual void EnableInput() OVERRIDE; |
46 virtual void SetAuthType(const std::string& user_email, | 47 virtual void SetAuthType(const std::string& user_email, |
47 ScreenlockBridge::LockHandler::AuthType auth_type, | 48 ScreenlockBridge::LockHandler::AuthType auth_type, |
48 const std::string& auth_value) OVERRIDE; | 49 const base::string16& auth_value) OVERRIDE; |
49 virtual ScreenlockBridge::LockHandler::AuthType GetAuthType( | 50 virtual ScreenlockBridge::LockHandler::AuthType GetAuthType( |
50 const std::string& user_email) const OVERRIDE; | 51 const std::string& user_email) const OVERRIDE; |
51 virtual void Unlock(const std::string& user_email) OVERRIDE; | 52 virtual void Unlock(const std::string& user_email) OVERRIDE; |
52 | 53 |
53 private: | 54 private: |
54 // An observer for any changes to Profiles in the ProfileInfoCache so that | 55 // An observer for any changes to Profiles in the ProfileInfoCache so that |
55 // all the visible user manager screens can be updated. | 56 // all the visible user manager screens can be updated. |
56 class ProfileUpdateObserver; | 57 class ProfileUpdateObserver; |
57 | 58 |
58 void HandleInitialize(const base::ListValue* args); | 59 void HandleInitialize(const base::ListValue* args); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 std::string password_attempt_; | 93 std::string password_attempt_; |
93 | 94 |
94 typedef std::map<std::string, ScreenlockBridge::LockHandler::AuthType> | 95 typedef std::map<std::string, ScreenlockBridge::LockHandler::AuthType> |
95 UserAuthTypeMap; | 96 UserAuthTypeMap; |
96 UserAuthTypeMap user_auth_type_map_; | 97 UserAuthTypeMap user_auth_type_map_; |
97 | 98 |
98 DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler); | 99 DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler); |
99 }; | 100 }; |
100 | 101 |
101 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ | 102 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ |
OLD | NEW |