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