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