| 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_CHROMEOS_LOGIN_USER_BOARD_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_USER_BOARD_SCREEN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_USER_BOARD_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_USER_BOARD_SCREEN_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 ::login::LocalizedValuesBuilder* builder) override; | 27 ::login::LocalizedValuesBuilder* builder) override; |
| 28 | 28 |
| 29 // WebUIMessageHandler implementation: | 29 // WebUIMessageHandler implementation: |
| 30 void RegisterMessages() override; | 30 void RegisterMessages() override; |
| 31 void Initialize() override; | 31 void Initialize() override; |
| 32 | 32 |
| 33 // Handlers | 33 // Handlers |
| 34 void HandleGetUsers(); | 34 void HandleGetUsers(); |
| 35 void HandleHardlockPod(const std::string& user_id); | 35 void HandleHardlockPod(const std::string& user_id); |
| 36 void HandleAttemptUnlock(const std::string& user_id); | 36 void HandleAttemptUnlock(const std::string& user_id); |
| 37 void HandleRecordClickOnLockIcon(const std::string& user_id); |
| 37 | 38 |
| 38 // UserBoardView implementation: | 39 // UserBoardView implementation: |
| 39 void SetPublicSessionDisplayName(const std::string& user_id, | 40 void SetPublicSessionDisplayName(const std::string& user_id, |
| 40 const std::string& display_name) override; | 41 const std::string& display_name) override; |
| 41 void SetPublicSessionLocales(const std::string& user_id, | 42 void SetPublicSessionLocales(const std::string& user_id, |
| 42 scoped_ptr<base::ListValue> locales, | 43 scoped_ptr<base::ListValue> locales, |
| 43 const std::string& default_locale, | 44 const std::string& default_locale, |
| 44 bool multiple_recommended_locales) override; | 45 bool multiple_recommended_locales) override; |
| 45 void ShowBannerMessage(const base::string16& message) override; | 46 void ShowBannerMessage(const base::string16& message) override; |
| 46 void ShowUserPodCustomIcon(const std::string& user_id, | 47 void ShowUserPodCustomIcon(const std::string& user_id, |
| 47 const base::DictionaryValue& icon) override; | 48 const base::DictionaryValue& icon) override; |
| 48 void HideUserPodCustomIcon(const std::string& user_id) override; | 49 void HideUserPodCustomIcon(const std::string& user_id) override; |
| 49 void SetAuthType(const std::string& user_id, | 50 void SetAuthType(const std::string& user_id, |
| 50 ScreenlockBridge::LockHandler::AuthType auth_type, | 51 ScreenlockBridge::LockHandler::AuthType auth_type, |
| 51 const base::string16& initial_value) override; | 52 const base::string16& initial_value) override; |
| 52 | 53 |
| 53 void Bind(UserBoardModel& model) override; | 54 void Bind(UserBoardModel& model) override; |
| 54 void Unbind() override; | 55 void Unbind() override; |
| 55 | 56 |
| 56 UserBoardModel* model_; | 57 UserBoardModel* model_; |
| 57 | 58 |
| 58 DISALLOW_COPY_AND_ASSIGN(UserBoardScreenHandler); | 59 DISALLOW_COPY_AND_ASSIGN(UserBoardScreenHandler); |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 } // namespace chromeos | 62 } // namespace chromeos |
| 62 | 63 |
| 63 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_USER_BOARD_SCREEN_HANDLER_H_ | 64 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_USER_BOARD_SCREEN_HANDLER_H_ |
| OLD | NEW |