| 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_CHROMEOS_LOGIN_UI_VIEWS_USER_BOARD_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_VIEWS_USER_BOARD_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_VIEWS_USER_BOARD_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_VIEWS_USER_BOARD_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "components/proximity_auth/screenlock_bridge.h" | 13 #include "components/proximity_auth/screenlock_bridge.h" |
| 14 | 14 |
| 15 namespace user_manager { |
| 16 class UserID; |
| 17 } |
| 18 |
| 15 namespace chromeos { | 19 namespace chromeos { |
| 16 | 20 |
| 17 class UserBoardModel; | 21 class UserBoardModel; |
| 18 | 22 |
| 19 // Interface between user board screen and its representation, either WebUI | 23 // Interface between user board screen and its representation, either WebUI |
| 20 // or Views one. | 24 // or Views one. |
| 21 class UserBoardView { | 25 class UserBoardView { |
| 22 public: | 26 public: |
| 23 virtual ~UserBoardView() {} | 27 virtual ~UserBoardView() {} |
| 24 | 28 |
| 25 virtual void Bind(UserBoardModel& model) = 0; | 29 virtual void Bind(UserBoardModel& model) = 0; |
| 26 virtual void Unbind() = 0; | 30 virtual void Unbind() = 0; |
| 27 | 31 |
| 28 virtual void SetPublicSessionDisplayName(const std::string& user_id, | 32 virtual void SetPublicSessionDisplayName(const user_manager::UserID& user_id, |
| 29 const std::string& display_name) = 0; | 33 const std::string& display_name) = 0; |
| 30 virtual void SetPublicSessionLocales(const std::string& user_id, | 34 virtual void SetPublicSessionLocales(const user_manager::UserID& user_id, |
| 31 scoped_ptr<base::ListValue> locales, | 35 scoped_ptr<base::ListValue> locales, |
| 32 const std::string& default_locale, | 36 const std::string& default_locale, |
| 33 bool multiple_recommended_locales) = 0; | 37 bool multiple_recommended_locales) = 0; |
| 34 virtual void ShowBannerMessage(const base::string16& message) = 0; | 38 virtual void ShowBannerMessage(const base::string16& message) = 0; |
| 35 virtual void ShowUserPodCustomIcon(const std::string& user_id, | 39 virtual void ShowUserPodCustomIcon(const user_manager::UserID& user_id, |
| 36 const base::DictionaryValue& icon) = 0; | 40 const base::DictionaryValue& icon) = 0; |
| 37 virtual void HideUserPodCustomIcon(const std::string& user_id) = 0; | 41 virtual void HideUserPodCustomIcon(const user_manager::UserID& user_id) = 0; |
| 38 virtual void SetAuthType( | 42 virtual void SetAuthType( |
| 39 const std::string& user_id, | 43 const user_manager::UserID& user_id, |
| 40 proximity_auth::ScreenlockBridge::LockHandler::AuthType auth_type, | 44 proximity_auth::ScreenlockBridge::LockHandler::AuthType auth_type, |
| 41 const base::string16& initial_value) = 0; | 45 const base::string16& initial_value) = 0; |
| 42 }; | 46 }; |
| 43 | 47 |
| 44 } // namespace chromeos | 48 } // namespace chromeos |
| 45 | 49 |
| 46 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_VIEWS_USER_BOARD_VIEW_H_ | 50 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_VIEWS_USER_BOARD_VIEW_H_ |
| OLD | NEW |