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_autolaunch_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 KioskAutolaunchScreen::KioskAutolaunchScreen(
15 BaseScreenDelegate
* base_screen_delegate
,
16 KioskAutolaunchScreenActor
* actor
)
17 : BaseScreen(base_screen_delegate
), actor_(actor
) {
20 actor_
->SetDelegate(this);
23 KioskAutolaunchScreen::~KioskAutolaunchScreen() {
25 actor_
->SetDelegate(NULL
);
28 void KioskAutolaunchScreen::Show() {
33 std::string
KioskAutolaunchScreen::GetName() const {
34 return WizardController::kKioskAutolaunchScreenName
;
37 void KioskAutolaunchScreen::OnExit(bool confirmed
) {
38 Finish(confirmed
? BaseScreenDelegate::KIOSK_AUTOLAUNCH_CONFIRMED
39 : BaseScreenDelegate::KIOSK_AUTOLAUNCH_CANCELED
);
42 void KioskAutolaunchScreen::OnActorDestroyed(
43 KioskAutolaunchScreenActor
* actor
) {
48 } // namespace chromeos