1 // Copyright (c) 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/wrong_hwid_screen.h"
7 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h"
8 #include "chrome/browser/chromeos/login/wizard_controller.h"
12 WrongHWIDScreen::WrongHWIDScreen(BaseScreenDelegate
* base_screen_delegate
,
13 WrongHWIDScreenActor
* actor
)
14 : BaseScreen(base_screen_delegate
), actor_(actor
) {
17 actor_
->SetDelegate(this);
20 WrongHWIDScreen::~WrongHWIDScreen() {
22 actor_
->SetDelegate(NULL
);
25 void WrongHWIDScreen::PrepareToShow() {
27 actor_
->PrepareToShow();
30 void WrongHWIDScreen::Show() {
35 void WrongHWIDScreen::Hide() {
40 std::string
WrongHWIDScreen::GetName() const {
41 return WizardController::kWrongHWIDScreenName
;
44 void WrongHWIDScreen::OnExit() {
45 Finish(BaseScreenDelegate::WRONG_HWID_WARNING_SKIPPED
);
48 void WrongHWIDScreen::OnActorDestroyed(WrongHWIDScreenActor
* actor
) {
53 } // namespace chromeos