| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <gdk/gdk.h> | 7 #include <gdk/gdk.h> |
| 8 #include <signal.h> | 8 #include <signal.h> |
| 9 #include <sys/types.h> | 9 #include <sys/types.h> |
| 10 | 10 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 NotificationService::AllSources(), | 125 NotificationService::AllSources(), |
| 126 NotificationService::NoDetails()); | 126 NotificationService::NoDetails()); |
| 127 } | 127 } |
| 128 | 128 |
| 129 bool AcceleratorPressed(const views::Accelerator& accel) { | 129 bool AcceleratorPressed(const views::Accelerator& accel) { |
| 130 WizardController* controller = WizardController::default_controller(); | 130 WizardController* controller = WizardController::default_controller(); |
| 131 if (!controller) | 131 if (!controller) |
| 132 return false; | 132 return false; |
| 133 | 133 |
| 134 if (accel == accel_toggle_accessibility_) { | 134 if (accel == accel_toggle_accessibility_) { |
| 135 chromeos::WizardAccessibilityHelper::GetInstance()->ToggleAccessibility( | 135 chromeos::WizardAccessibilityHelper::GetInstance()->ToggleAccessibility(); |
| 136 controller->contents()); } | 136 } else if (accel == accel_cancel_update_) { |
| 137 else if (accel == accel_cancel_update_) { | |
| 138 controller->CancelOOBEUpdate(); | 137 controller->CancelOOBEUpdate(); |
| 139 #if !defined(OFFICIAL_BUILD) | 138 #if !defined(OFFICIAL_BUILD) |
| 140 } else if (accel == accel_account_screen_) { | 139 } else if (accel == accel_account_screen_) { |
| 141 controller->ShowAccountScreen(); | 140 controller->ShowAccountScreen(); |
| 142 } else if (accel == accel_login_screen_) { | 141 } else if (accel == accel_login_screen_) { |
| 143 controller->ShowLoginScreen(); | 142 controller->ShowLoginScreen(); |
| 144 } else if (accel == accel_network_screen_) { | 143 } else if (accel == accel_network_screen_) { |
| 145 controller->ShowNetworkScreen(); | 144 controller->ShowNetworkScreen(); |
| 146 } else if (accel == accel_update_screen_) { | 145 } else if (accel == accel_update_screen_) { |
| 147 controller->ShowUpdateScreen(); | 146 controller->ShowUpdateScreen(); |
| (...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1034 // user has changed to during OOBE. | 1033 // user has changed to during OOBE. |
| 1035 if (!timezone_name.empty()) { | 1034 if (!timezone_name.empty()) { |
| 1036 icu::TimeZone* timezone = icu::TimeZone::createTimeZone( | 1035 icu::TimeZone* timezone = icu::TimeZone::createTimeZone( |
| 1037 icu::UnicodeString::fromUTF8(timezone_name)); | 1036 icu::UnicodeString::fromUTF8(timezone_name)); |
| 1038 chromeos::CrosLibrary::Get()->GetSystemLibrary()->SetTimezone(timezone); | 1037 chromeos::CrosLibrary::Get()->GetSystemLibrary()->SetTimezone(timezone); |
| 1039 } | 1038 } |
| 1040 } | 1039 } |
| 1041 } | 1040 } |
| 1042 | 1041 |
| 1043 } // namespace browser | 1042 } // namespace browser |
| OLD | NEW |