This source file includes following definitions.
- actor_
- Show
- GetName
- OnExit
- OnActorDestroyed
#include "chrome/browser/chromeos/login/screens/kiosk_enable_screen.h"
#include "base/logging.h"
#include "chrome/browser/chromeos/customization_document.h"
#include "chrome/browser/chromeos/login/screens/screen_observer.h"
#include "chrome/browser/chromeos/login/wizard_controller.h"
namespace chromeos {
KioskEnableScreen::KioskEnableScreen(ScreenObserver* observer,
KioskEnableScreenActor* actor)
: WizardScreen(observer), actor_(actor) {
DCHECK(actor_);
if (actor_)
actor_->SetDelegate(this);
}
KioskEnableScreen::~KioskEnableScreen() {
if (actor_)
actor_->SetDelegate(NULL);
}
void KioskEnableScreen::Show() {
if (actor_)
actor_->Show();
}
std::string KioskEnableScreen::GetName() const {
return WizardController::kKioskEnableScreenName;
}
void KioskEnableScreen::OnExit() {
get_screen_observer()->OnExit(ScreenObserver::KIOSK_ENABLE_COMPLETED);
}
void KioskEnableScreen::OnActorDestroyed(KioskEnableScreenActor* actor) {
if (actor_ == actor)
actor_ = NULL;
}
}