blob: c0b9549e536917fa8c96c9f5400929b71431b676 [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.
#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_KIOSK_ENABLE_SCREEN_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_KIOSK_ENABLE_SCREEN_H_
#include <string>
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "chrome/browser/chromeos/login/screens/base_screen.h"
#include "chrome/browser/chromeos/login/screens/kiosk_enable_screen_view.h"
namespace chromeos {
// Representation independent class that controls screen for enabling
// consumer kiosk mode.
class KioskEnableScreen : public BaseScreen,
public KioskEnableScreenView::Delegate {
public:
KioskEnableScreen(KioskEnableScreenView* view,
const base::RepeatingClosure& exit_callback);
~KioskEnableScreen() override;
// BaseScreen implementation:
void Show() override;
void Hide() override {}
// KioskEnableScreenActor::Delegate implementation:
void OnExit() override;
void OnViewDestroyed(KioskEnableScreenView* view) override;
private:
KioskEnableScreenView* view_;
base::RepeatingClosure exit_callback_;
DISALLOW_COPY_AND_ASSIGN(KioskEnableScreen);
};
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_KIOSK_ENABLE_SCREEN_H_