blob: 58a07b2159d1e62bd84492e33f948586f9ba800e [file] [log] [blame]
// Copyright 2013 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/oobe_screen.h"
namespace chromeos {
// Interface between reset screen and its representation.
// Note, do not forget to call OnViewDestroyed in the dtor.
class KioskAutolaunchScreenView {
// Allows us to get info from reset screen that we need.
class Delegate {
virtual ~Delegate() {}
// Called when screen is exited.
virtual void OnExit(bool confirmed) = 0;
// This method is called, when view is being destroyed. Note, if Delegate
// is destroyed earlier then it has to call SetDelegate(nullptr).
virtual void OnViewDestroyed(KioskAutolaunchScreenView* view) = 0;
constexpr static OobeScreen kScreenId = OobeScreen::SCREEN_KIOSK_AUTOLAUNCH;
virtual ~KioskAutolaunchScreenView() {}
virtual void Show() = 0;
virtual void SetDelegate(Delegate* delegate) = 0;
} // namespace chromeos