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 <memory> |
| 9 |
8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 11 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "base/values.h" | 12 #include "base/values.h" |
12 #include "chrome/browser/chromeos/login/ui/views/user_board_view.h" | 13 #include "chrome/browser/chromeos/login/ui/views/user_board_view.h" |
13 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" | 14 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" |
14 | 15 |
15 namespace chromeos { | 16 namespace chromeos { |
16 | 17 |
17 class SigninScreenHandler; | 18 class SigninScreenHandler; |
18 | 19 |
19 // A class that handles WebUI hooks in Gaia screen. | 20 // A class that handles WebUI hooks in Gaia screen. |
20 class UserBoardScreenHandler : public BaseScreenHandler, public UserBoardView { | 21 class UserBoardScreenHandler : public BaseScreenHandler, public UserBoardView { |
(...skipping 13 matching lines...) Expand all Loading... |
34 // Handlers | 35 // Handlers |
35 void HandleGetUsers(); | 36 void HandleGetUsers(); |
36 void HandleHardlockPod(const AccountId& account_id); | 37 void HandleHardlockPod(const AccountId& account_id); |
37 void HandleAttemptUnlock(const AccountId& account_id); | 38 void HandleAttemptUnlock(const AccountId& account_id); |
38 void HandleRecordClickOnLockIcon(const AccountId& account_id); | 39 void HandleRecordClickOnLockIcon(const AccountId& account_id); |
39 | 40 |
40 // UserBoardView implementation: | 41 // UserBoardView implementation: |
41 void SetPublicSessionDisplayName(const AccountId& account_id, | 42 void SetPublicSessionDisplayName(const AccountId& account_id, |
42 const std::string& display_name) override; | 43 const std::string& display_name) override; |
43 void SetPublicSessionLocales(const AccountId& account_id, | 44 void SetPublicSessionLocales(const AccountId& account_id, |
44 scoped_ptr<base::ListValue> locales, | 45 std::unique_ptr<base::ListValue> locales, |
45 const std::string& default_locale, | 46 const std::string& default_locale, |
46 bool multiple_recommended_locales) override; | 47 bool multiple_recommended_locales) override; |
47 void ShowBannerMessage(const base::string16& message) override; | 48 void ShowBannerMessage(const base::string16& message) override; |
48 void ShowUserPodCustomIcon(const AccountId& account_id, | 49 void ShowUserPodCustomIcon(const AccountId& account_id, |
49 const base::DictionaryValue& icon) override; | 50 const base::DictionaryValue& icon) override; |
50 void HideUserPodCustomIcon(const AccountId& account_id) override; | 51 void HideUserPodCustomIcon(const AccountId& account_id) override; |
51 void SetAuthType( | 52 void SetAuthType( |
52 const AccountId& account_id, | 53 const AccountId& account_id, |
53 proximity_auth::ScreenlockBridge::LockHandler::AuthType auth_type, | 54 proximity_auth::ScreenlockBridge::LockHandler::AuthType auth_type, |
54 const base::string16& initial_value) override; | 55 const base::string16& initial_value) override; |
55 | 56 |
56 void Bind(UserBoardModel& model) override; | 57 void Bind(UserBoardModel& model) override; |
57 void Unbind() override; | 58 void Unbind() override; |
58 | 59 |
59 UserBoardModel* model_; | 60 UserBoardModel* model_; |
60 | 61 |
61 DISALLOW_COPY_AND_ASSIGN(UserBoardScreenHandler); | 62 DISALLOW_COPY_AND_ASSIGN(UserBoardScreenHandler); |
62 }; | 63 }; |
63 | 64 |
64 } // namespace chromeos | 65 } // namespace chromeos |
65 | 66 |
66 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_USER_BOARD_SCREEN_HANDLER_H_ | 67 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_USER_BOARD_SCREEN_HANDLER_H_ |
OLD | NEW |