1 // Copyright (c) 2012 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/enable_debugging_screen.h"
7 #include "base/logging.h"
8 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h"
9 #include "chrome/browser/chromeos/login/wizard_controller.h"
13 EnableDebuggingScreen::EnableDebuggingScreen(
14 BaseScreenDelegate
* delegate
,
15 EnableDebuggingScreenActor
* actor
)
16 : BaseScreen(delegate
), actor_(actor
) {
19 actor_
->SetDelegate(this);
22 EnableDebuggingScreen::~EnableDebuggingScreen() {
24 actor_
->SetDelegate(NULL
);
27 void EnableDebuggingScreen::PrepareToShow() {
29 actor_
->PrepareToShow();
32 void EnableDebuggingScreen::Show() {
37 void EnableDebuggingScreen::Hide() {
42 std::string
EnableDebuggingScreen::GetName() const {
43 return WizardController::kEnableDebuggingScreenName
;
46 void EnableDebuggingScreen::OnExit(bool success
) {
47 Finish(success
? BaseScreenDelegate::ENABLE_DEBUGGING_FINISHED
:
48 BaseScreenDelegate::ENABLE_DEBUGGING_CANCELED
);
51 void EnableDebuggingScreen::OnActorDestroyed(
52 EnableDebuggingScreenActor
* actor
) {
57 } // namespace chromeos