blob: 18a393d5d51cd7c9c90b29ed620d83e34b0444b6 [file] [log] [blame]
// Copyright 2018 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 <string>
#include "chrome/browser/chromeos/login/demo_mode/demo_setup_controller.h"
#include "chrome/browser/chromeos/login/oobe_screen.h"
namespace chromeos {
class DemoSetupScreen;
// Interface of the demo mode setup screen view.
class DemoSetupScreenView {
constexpr static OobeScreen kScreenId = OobeScreen::SCREEN_OOBE_DEMO_SETUP;
virtual ~DemoSetupScreenView();
// Shows the contents of the screen.
virtual void Show() = 0;
// Hides the contents of the screen.
virtual void Hide() = 0;
// Sets view and screen.
virtual void Bind(DemoSetupScreen* screen) = 0;
// Handles successful setup.
virtual void OnSetupSucceeded() = 0;
// Handles setup failure.
virtual void OnSetupFailed(
const DemoSetupController::DemoSetupError& error) = 0;
} // namespace chromeos