Chromium Code Reviews| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 119 NotificationType::WIZARD_CONTENT_VIEW_DESTROYED, | 119 NotificationType::WIZARD_CONTENT_VIEW_DESTROYED, |
| 120 NotificationService::AllSources(), | 120 NotificationService::AllSources(), |
| 121 NotificationService::NoDetails()); | 121 NotificationService::NoDetails()); |
| 122 } | 122 } |
| 123 | 123 |
| 124 bool AcceleratorPressed(const views::Accelerator& accel) { | 124 bool AcceleratorPressed(const views::Accelerator& accel) { |
| 125 WizardController* controller = WizardController::default_controller(); | 125 WizardController* controller = WizardController::default_controller(); |
| 126 if (!controller) | 126 if (!controller) |
| 127 return false; | 127 return false; |
| 128 | 128 |
| 129 if (accel == accel_enable_accessibility_) { | 129 if (accel == accel_enable_accessibility_) { |
|
xiyuan
2010/12/15 22:44:52
nit: accel_enable_accessibility_ -> accel_toggle_a
| |
| 130 chromeos::WizardAccessibilityHelper::GetInstance()->EnableAccessibility( | 130 chromeos::WizardAccessibilityHelper::GetInstance()->ToggleAccessibility( |
| 131 controller->contents()); } | 131 controller->contents()); } |
| 132 else if (accel == accel_cancel_update_) { | 132 else if (accel == accel_cancel_update_) { |
| 133 controller->CancelOOBEUpdate(); | 133 controller->CancelOOBEUpdate(); |
| 134 #if !defined(OFFICIAL_BUILD) | 134 #if !defined(OFFICIAL_BUILD) |
| 135 } else if (accel == accel_account_screen_) { | 135 } else if (accel == accel_account_screen_) { |
| 136 controller->ShowAccountScreen(); | 136 controller->ShowAccountScreen(); |
| 137 } else if (accel == accel_login_screen_) { | 137 } else if (accel == accel_login_screen_) { |
| 138 controller->ShowLoginScreen(); | 138 controller->ShowLoginScreen(); |
| 139 } else if (accel == accel_network_screen_) { | 139 } else if (accel == accel_network_screen_) { |
| 140 controller->ShowNetworkScreen(); | 140 controller->ShowNetworkScreen(); |
| (...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1032 // user has changed to during OOBE. | 1032 // user has changed to during OOBE. |
| 1033 if (!timezone_name.empty()) { | 1033 if (!timezone_name.empty()) { |
| 1034 icu::TimeZone* timezone = icu::TimeZone::createTimeZone( | 1034 icu::TimeZone* timezone = icu::TimeZone::createTimeZone( |
| 1035 icu::UnicodeString::fromUTF8(timezone_name)); | 1035 icu::UnicodeString::fromUTF8(timezone_name)); |
| 1036 chromeos::CrosLibrary::Get()->GetSystemLibrary()->SetTimezone(timezone); | 1036 chromeos::CrosLibrary::Get()->GetSystemLibrary()->SetTimezone(timezone); |
| 1037 } | 1037 } |
| 1038 } | 1038 } |
| 1039 } | 1039 } |
| 1040 | 1040 |
| 1041 } // namespace browser | 1041 } // namespace browser |
| OLD | NEW |