root/chrome/browser/chromeos/login/screens/kiosk_enable_screen.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. actor_
  2. Show
  3. GetName
  4. OnExit
  5. OnActorDestroyed

// 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 "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;
}

}  // namespace chromeos

/* [<][>][^][v][top][bottom][index][help] */