OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" | 7 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" |
8 #include "components/login/localized_values_builder.h" | 8 #include "components/login/localized_values_builder.h" |
9 | 9 |
10 namespace chromeos { | 10 namespace chromeos { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 CallJS("login.AccountPickerScreen.showUserPodCustomIcon", account_id, *icon); | 80 CallJS("login.AccountPickerScreen.showUserPodCustomIcon", account_id, *icon); |
81 } | 81 } |
82 | 82 |
83 void UserBoardScreenHandler::HideUserPodCustomIcon( | 83 void UserBoardScreenHandler::HideUserPodCustomIcon( |
84 const AccountId& account_id) { | 84 const AccountId& account_id) { |
85 CallJS("login.AccountPickerScreen.hideUserPodCustomIcon", account_id); | 85 CallJS("login.AccountPickerScreen.hideUserPodCustomIcon", account_id); |
86 } | 86 } |
87 | 87 |
88 void UserBoardScreenHandler::SetAuthType( | 88 void UserBoardScreenHandler::SetAuthType( |
89 const AccountId& account_id, | 89 const AccountId& account_id, |
90 proximity_auth::ScreenlockBridge::LockHandler::AuthType auth_type, | 90 proximity_auth::mojom::AuthType auth_type, |
91 const base::string16& initial_value) { | 91 const base::string16& initial_value) { |
92 CallJS("login.AccountPickerScreen.setAuthType", account_id, | 92 CallJS("login.AccountPickerScreen.setAuthType", account_id, |
93 static_cast<int>(auth_type), base::Value(initial_value)); | 93 static_cast<int>(auth_type), base::Value(initial_value)); |
94 } | 94 } |
95 | 95 |
96 void UserBoardScreenHandler::Bind(UserSelectionScreen* screen) { | 96 void UserBoardScreenHandler::Bind(UserSelectionScreen* screen) { |
97 screen_ = screen; | 97 screen_ = screen; |
98 BaseWebUIHandler::SetBaseScreen(screen_); | 98 BaseWebUIHandler::SetBaseScreen(screen_); |
99 } | 99 } |
100 | 100 |
101 void UserBoardScreenHandler::Unbind() { | 101 void UserBoardScreenHandler::Unbind() { |
102 screen_ = nullptr; | 102 screen_ = nullptr; |
103 BaseWebUIHandler::SetBaseScreen(nullptr); | 103 BaseWebUIHandler::SetBaseScreen(nullptr); |
104 } | 104 } |
105 | 105 |
106 base::WeakPtr<UserBoardView> UserBoardScreenHandler::GetWeakPtr() { | 106 base::WeakPtr<UserBoardView> UserBoardScreenHandler::GetWeakPtr() { |
107 return weak_factory_.GetWeakPtr(); | 107 return weak_factory_.GetWeakPtr(); |
108 } | 108 } |
109 | 109 |
110 } // namespace chromeos | 110 } // namespace chromeos |
OLD | NEW |