| Index: chrome/browser/ui/webui/chromeos/login/multicast_core_oobe_view.cc
|
| diff --git a/chrome/browser/ui/webui/chromeos/login/multicast_core_oobe_view.cc b/chrome/browser/ui/webui/chromeos/login/multicast_core_oobe_view.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..95791e04c01a146b9486b6f731b0dc40cb0d7559
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/webui/chromeos/login/multicast_core_oobe_view.cc
|
| @@ -0,0 +1,152 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chrome/browser/ui/webui/chromeos/login/multicast_core_oobe_view.h"
|
| +
|
| +namespace chromeos {
|
| +
|
| +MulticastCoreOobeView::MulticastCoreOobeView() = default;
|
| +
|
| +MulticastCoreOobeView::~MulticastCoreOobeView() = default;
|
| +
|
| +void MulticastCoreOobeView::AddView(CoreOobeView* view) {
|
| + views_.push_back(view);
|
| +}
|
| +
|
| +void MulticastCoreOobeView::SetDelegate(Delegate* delegate) {
|
| + // Either delegate_ or delegate must be null. It is a usage error to update
|
| + // delegate_ to a different value while it already has a value.
|
| + DCHECK(!delegate_ || !delegate);
|
| +
|
| + delegate_ = delegate;
|
| +
|
| + for (CoreOobeView* view : views_)
|
| + view->SetDelegate(delegate);
|
| +}
|
| +
|
| +void MulticastCoreOobeView::Show(OobeScreen screen) {
|
| + for (CoreOobeView* view : views_)
|
| + view->Show(screen);
|
| +}
|
| +
|
| +void MulticastCoreOobeView::Hide(OobeScreen screen) {
|
| + for (CoreOobeView* view : views_)
|
| + view->Hide(screen);
|
| +}
|
| +
|
| +void MulticastCoreOobeView::ShowSignInError(
|
| + int login_attempts,
|
| + const std::string& error_text,
|
| + const std::string& help_link_text,
|
| + HelpAppLauncher::HelpTopic help_topic_id) {
|
| + for (CoreOobeView* view : views_)
|
| + view->ShowSignInError(login_attempts, error_text, help_link_text,
|
| + help_topic_id);
|
| +}
|
| +
|
| +void MulticastCoreOobeView::ShowTpmError() {
|
| + for (CoreOobeView* view : views_)
|
| + view->ShowTpmError();
|
| +}
|
| +
|
| +void MulticastCoreOobeView::ShowSignInUI(const std::string& email) {
|
| + for (CoreOobeView* view : views_)
|
| + view->ShowSignInUI(email);
|
| +}
|
| +
|
| +void MulticastCoreOobeView::ResetSignInUI(bool force_online) {
|
| + for (CoreOobeView* view : views_)
|
| + view->ResetSignInUI(force_online);
|
| +}
|
| +
|
| +void MulticastCoreOobeView::ClearUserPodPassword() {
|
| + for (CoreOobeView* view : views_)
|
| + view->ClearUserPodPassword();
|
| +}
|
| +
|
| +void MulticastCoreOobeView::RefocusCurrentPod() {
|
| + for (CoreOobeView* view : views_)
|
| + view->RefocusCurrentPod();
|
| +}
|
| +
|
| +void MulticastCoreOobeView::ShowPasswordChangedScreen(
|
| + bool show_password_error,
|
| + const std::string& email) {
|
| + for (CoreOobeView* view : views_)
|
| + view->ShowPasswordChangedScreen(show_password_error, email);
|
| +}
|
| +
|
| +void MulticastCoreOobeView::SetUsageStats(bool checked) {
|
| + for (CoreOobeView* view : views_)
|
| + view->SetUsageStats(checked);
|
| +}
|
| +
|
| +void MulticastCoreOobeView::SetOemEulaUrl(const std::string& oem_eula_url) {
|
| + for (CoreOobeView* view : views_)
|
| + view->SetOemEulaUrl(oem_eula_url);
|
| +}
|
| +
|
| +void MulticastCoreOobeView::SetTpmPassword(const std::string& tpm_password) {
|
| + for (CoreOobeView* view : views_)
|
| + view->SetTpmPassword(tpm_password);
|
| +}
|
| +
|
| +void MulticastCoreOobeView::ClearErrors() {
|
| + for (CoreOobeView* view : views_)
|
| + view->ClearErrors();
|
| +}
|
| +
|
| +void MulticastCoreOobeView::ReloadContent(
|
| + const base::DictionaryValue& dictionary) {
|
| + for (CoreOobeView* view : views_)
|
| + view->ReloadContent(dictionary);
|
| +}
|
| +
|
| +void MulticastCoreOobeView::ShowControlBar(bool show) {
|
| + for (CoreOobeView* view : views_)
|
| + view->ShowControlBar(show);
|
| +}
|
| +
|
| +void MulticastCoreOobeView::ShowPinKeyboard(bool show) {
|
| + for (CoreOobeView* view : views_)
|
| + view->ShowPinKeyboard(show);
|
| +}
|
| +
|
| +void MulticastCoreOobeView::SetClientAreaSize(int width, int height) {
|
| + for (CoreOobeView* view : views_)
|
| + view->SetClientAreaSize(width, height);
|
| +}
|
| +
|
| +void MulticastCoreOobeView::ShowDeviceResetScreen() {
|
| + for (CoreOobeView* view : views_)
|
| + view->ShowDeviceResetScreen();
|
| +}
|
| +
|
| +void MulticastCoreOobeView::ShowEnableDebuggingScreen() {
|
| + for (CoreOobeView* view : views_)
|
| + view->ShowEnableDebuggingScreen();
|
| +}
|
| +
|
| +void MulticastCoreOobeView::InitDemoModeDetection() {
|
| + for (CoreOobeView* view : views_)
|
| + view->InitDemoModeDetection();
|
| +}
|
| +
|
| +void MulticastCoreOobeView::StopDemoModeDetection() {
|
| + for (CoreOobeView* view : views_)
|
| + view->StopDemoModeDetection();
|
| +}
|
| +
|
| +void MulticastCoreOobeView::UpdateKeyboardState() {
|
| + for (CoreOobeView* view : views_)
|
| + view->UpdateKeyboardState();
|
| +}
|
| +
|
| +void MulticastCoreOobeView::ShowActiveDirectoryPasswordChangeScreen(
|
| + const std::string& username) {
|
| + for (CoreOobeView* view : views_)
|
| + view->ShowActiveDirectoryPasswordChangeScreen(username);
|
| +}
|
| +
|
| +} // namespace chromeos
|
|
|