Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.cc

Issue 1096293003: Move screenlock_bridge to components/proximity_auth (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/ui/models/user_board_model.h" 7 #include "chrome/browser/chromeos/login/ui/models/user_board_model.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
80 const base::DictionaryValue& icon) { 80 const base::DictionaryValue& icon) {
81 CallJS("login.AccountPickerScreen.showUserPodCustomIcon", user_id, icon); 81 CallJS("login.AccountPickerScreen.showUserPodCustomIcon", user_id, icon);
82 } 82 }
83 83
84 void UserBoardScreenHandler::HideUserPodCustomIcon(const std::string& user_id) { 84 void UserBoardScreenHandler::HideUserPodCustomIcon(const std::string& user_id) {
85 CallJS("login.AccountPickerScreen.hideUserPodCustomIcon", user_id); 85 CallJS("login.AccountPickerScreen.hideUserPodCustomIcon", user_id);
86 } 86 }
87 87
88 void UserBoardScreenHandler::SetAuthType( 88 void UserBoardScreenHandler::SetAuthType(
89 const std::string& user_id, 89 const std::string& user_id,
90 ScreenlockBridge::LockHandler::AuthType auth_type, 90 proximity_auth::ScreenlockBridge::LockHandler::AuthType auth_type,
91 const base::string16& initial_value) { 91 const base::string16& initial_value) {
92 CallJS("login.AccountPickerScreen.setAuthType", user_id, 92 CallJS("login.AccountPickerScreen.setAuthType", user_id,
93 static_cast<int>(auth_type), base::StringValue(initial_value)); 93 static_cast<int>(auth_type), base::StringValue(initial_value));
94 } 94 }
95 95
96 void UserBoardScreenHandler::Bind(UserBoardModel& model) { 96 void UserBoardScreenHandler::Bind(UserBoardModel& model) {
97 model_ = &model; 97 model_ = &model;
98 BaseScreenHandler::SetBaseScreen(model_); 98 BaseScreenHandler::SetBaseScreen(model_);
99 } 99 }
100 100
101 void UserBoardScreenHandler::Unbind() { 101 void UserBoardScreenHandler::Unbind() {
102 model_ = nullptr; 102 model_ = nullptr;
103 BaseScreenHandler::SetBaseScreen(nullptr); 103 BaseScreenHandler::SetBaseScreen(nullptr);
104 } 104 }
105 105
106 } // namespace chromeos 106 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698