| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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/wizard_controller.h" | 5 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 6 | 6 |
| 7 #include <signal.h> | 7 #include <signal.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdlib.h> | 9 #include <stdlib.h> |
| 10 #include <sys/types.h> | 10 #include <sys/types.h> |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 } | 596 } |
| 597 | 597 |
| 598 void WizardController::ShowSupervisedUserCreationScreen() { | 598 void WizardController::ShowSupervisedUserCreationScreen() { |
| 599 VLOG(1) << "Showing Locally managed user creation screen screen."; | 599 VLOG(1) << "Showing Locally managed user creation screen screen."; |
| 600 SetStatusAreaVisible(true); | 600 SetStatusAreaVisible(true); |
| 601 SetCurrentScreen(GetScreen(OobeScreen::SCREEN_CREATE_SUPERVISED_USER_FLOW)); | 601 SetCurrentScreen(GetScreen(OobeScreen::SCREEN_CREATE_SUPERVISED_USER_FLOW)); |
| 602 } | 602 } |
| 603 | 603 |
| 604 void WizardController::ShowHIDDetectionScreen() { | 604 void WizardController::ShowHIDDetectionScreen() { |
| 605 VLOG(1) << "Showing HID discovery screen."; | 605 VLOG(1) << "Showing HID discovery screen."; |
| 606 // TODO(drcrash): Remove this after testing (http://crbug.com/647411). | |
| 607 SetShowMdOobe(false); // Disable the MD OOBE from there on. | |
| 608 SetStatusAreaVisible(true); | 606 SetStatusAreaVisible(true); |
| 609 SetCurrentScreen(GetScreen(OobeScreen::SCREEN_OOBE_HID_DETECTION)); | 607 SetCurrentScreen(GetScreen(OobeScreen::SCREEN_OOBE_HID_DETECTION)); |
| 610 // In HID detection screen, puts the Bluetooth in discoverable mode and waits | 608 // In HID detection screen, puts the Bluetooth in discoverable mode and waits |
| 611 // for the incoming Bluetooth connection request. See the comments in | 609 // for the incoming Bluetooth connection request. See the comments in |
| 612 // WizardController::ShowNetworkScreen() for more details. | 610 // WizardController::ShowNetworkScreen() for more details. |
| 613 MaybeStartListeningForSharkConnection(); | 611 MaybeStartListeningForSharkConnection(); |
| 614 } | 612 } |
| 615 | 613 |
| 616 void WizardController::ShowControllerPairingScreen() { | 614 void WizardController::ShowControllerPairingScreen() { |
| 617 VLOG(1) << "Showing controller pairing screen."; | 615 VLOG(1) << "Showing controller pairing screen."; |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 978 if (current_screen_) | 976 if (current_screen_) |
| 979 current_screen_->Hide(); | 977 current_screen_->Hide(); |
| 980 | 978 |
| 981 const OobeScreen screen = new_current->screen_id(); | 979 const OobeScreen screen = new_current->screen_id(); |
| 982 if (IsOOBEStepToTrack(screen)) | 980 if (IsOOBEStepToTrack(screen)) |
| 983 screen_show_times_[GetOobeScreenName(screen)] = base::Time::Now(); | 981 screen_show_times_[GetOobeScreenName(screen)] = base::Time::Now(); |
| 984 | 982 |
| 985 previous_screen_ = current_screen_; | 983 previous_screen_ = current_screen_; |
| 986 current_screen_ = new_current; | 984 current_screen_ = new_current; |
| 987 | 985 |
| 986 oobe_ui_->UpdateLocalizedStringsIfNeeded(); |
| 987 |
| 988 if (use_smoothing) { | 988 if (use_smoothing) { |
| 989 smooth_show_timer_.Start( | 989 smooth_show_timer_.Start( |
| 990 FROM_HERE, | 990 FROM_HERE, |
| 991 base::TimeDelta::FromMilliseconds(kShowDelayMs), | 991 base::TimeDelta::FromMilliseconds(kShowDelayMs), |
| 992 this, | 992 this, |
| 993 &WizardController::ShowCurrentScreen); | 993 &WizardController::ShowCurrentScreen); |
| 994 } else { | 994 } else { |
| 995 ShowCurrentScreen(); | 995 ShowCurrentScreen(); |
| 996 } | 996 } |
| 997 } | 997 } |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1499 : policy::EnrollmentConfig::MODE_MANUAL_REENROLLMENT; | 1499 : policy::EnrollmentConfig::MODE_MANUAL_REENROLLMENT; |
| 1500 } | 1500 } |
| 1501 | 1501 |
| 1502 EnrollmentScreen* screen = EnrollmentScreen::Get(this); | 1502 EnrollmentScreen* screen = EnrollmentScreen::Get(this); |
| 1503 screen->SetParameters(effective_config, shark_controller_.get()); | 1503 screen->SetParameters(effective_config, shark_controller_.get()); |
| 1504 SetStatusAreaVisible(true); | 1504 SetStatusAreaVisible(true); |
| 1505 SetCurrentScreen(screen); | 1505 SetCurrentScreen(screen); |
| 1506 } | 1506 } |
| 1507 | 1507 |
| 1508 } // namespace chromeos | 1508 } // namespace chromeos |
| OLD | NEW |