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/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 | 9 |
9 namespace chromeos { | 10 namespace chromeos { |
10 | 11 |
11 UserBoardScreenHandler::UserBoardScreenHandler() : model_(nullptr) { | 12 UserBoardScreenHandler::UserBoardScreenHandler() : model_(nullptr) { |
12 } | 13 } |
13 | 14 |
14 UserBoardScreenHandler::~UserBoardScreenHandler() { | 15 UserBoardScreenHandler::~UserBoardScreenHandler() { |
15 } | 16 } |
16 | 17 |
17 void UserBoardScreenHandler::DeclareLocalizedValues( | 18 void UserBoardScreenHandler::DeclareLocalizedValues( |
18 LocalizedValuesBuilder* builder) { | 19 ::login::LocalizedValuesBuilder* builder) { |
19 } | 20 } |
20 | 21 |
21 void UserBoardScreenHandler::RegisterMessages() { | 22 void UserBoardScreenHandler::RegisterMessages() { |
22 AddCallback("getUsers", &UserBoardScreenHandler::HandleGetUsers); | 23 AddCallback("getUsers", &UserBoardScreenHandler::HandleGetUsers); |
23 AddCallback("attemptUnlock", &UserBoardScreenHandler::HandleAttemptUnlock); | 24 AddCallback("attemptUnlock", &UserBoardScreenHandler::HandleAttemptUnlock); |
24 AddCallback("hardlockPod", &UserBoardScreenHandler::HandleHardlockPod); | 25 AddCallback("hardlockPod", &UserBoardScreenHandler::HandleHardlockPod); |
25 } | 26 } |
26 | 27 |
27 void UserBoardScreenHandler::Initialize() { | 28 void UserBoardScreenHandler::Initialize() { |
28 } | 29 } |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 model_ = &model; | 89 model_ = &model; |
89 BaseScreenHandler::SetBaseScreen(model_); | 90 BaseScreenHandler::SetBaseScreen(model_); |
90 } | 91 } |
91 | 92 |
92 void UserBoardScreenHandler::Unbind() { | 93 void UserBoardScreenHandler::Unbind() { |
93 model_ = nullptr; | 94 model_ = nullptr; |
94 BaseScreenHandler::SetBaseScreen(nullptr); | 95 BaseScreenHandler::SetBaseScreen(nullptr); |
95 } | 96 } |
96 | 97 |
97 } // namespace chromeos | 98 } // namespace chromeos |
OLD | NEW |