1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/chromeos/login/screens/kiosk_enable_screen.h"
7 #include "base/logging.h"
8 #include "chrome/browser/chromeos/customization/customization_document.h"
9 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h"
10 #include "chrome/browser/chromeos/login/wizard_controller.h"
14 KioskEnableScreen::KioskEnableScreen(BaseScreenDelegate
* base_screen_delegate
,
15 KioskEnableScreenActor
* actor
)
16 : BaseScreen(base_screen_delegate
), actor_(actor
) {
19 actor_
->SetDelegate(this);
22 KioskEnableScreen::~KioskEnableScreen() {
24 actor_
->SetDelegate(NULL
);
27 void KioskEnableScreen::Show() {
32 std::string
KioskEnableScreen::GetName() const {
33 return WizardController::kKioskEnableScreenName
;
36 void KioskEnableScreen::OnExit() {
37 Finish(BaseScreenDelegate::KIOSK_ENABLE_COMPLETED
);
40 void KioskEnableScreen::OnActorDestroyed(KioskEnableScreenActor
* actor
) {
45 } // namespace chromeos