| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/login/screens/kiosk_enable_screen.h" | 5 #include "chrome/browser/chromeos/login/screens/kiosk_enable_screen.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/chromeos/customization/customization_document.h" | 8 #include "chrome/browser/chromeos/customization/customization_document.h" |
| 9 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h" | 9 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h" |
| 10 #include "chrome/browser/chromeos/login/wizard_controller.h" | 10 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 if (view_) | 24 if (view_) |
| 25 view_->SetDelegate(NULL); | 25 view_->SetDelegate(NULL); |
| 26 } | 26 } |
| 27 | 27 |
| 28 void KioskEnableScreen::Show() { | 28 void KioskEnableScreen::Show() { |
| 29 if (view_) | 29 if (view_) |
| 30 view_->Show(); | 30 view_->Show(); |
| 31 } | 31 } |
| 32 | 32 |
| 33 void KioskEnableScreen::OnExit() { | 33 void KioskEnableScreen::OnExit() { |
| 34 Finish(BaseScreenDelegate::KIOSK_ENABLE_COMPLETED); | 34 Finish(ScreenExitCode::KIOSK_ENABLE_COMPLETED); |
| 35 } | 35 } |
| 36 | 36 |
| 37 void KioskEnableScreen::OnViewDestroyed(KioskEnableScreenView* view) { | 37 void KioskEnableScreen::OnViewDestroyed(KioskEnableScreenView* view) { |
| 38 if (view_ == view) | 38 if (view_ == view) |
| 39 view_ = NULL; | 39 view_ = NULL; |
| 40 } | 40 } |
| 41 | 41 |
| 42 } // namespace chromeos | 42 } // namespace chromeos |
| OLD | NEW |