| 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/preferences.h" | 5 #include "chrome/browser/chromeos/preferences.h" |
| 6 | 6 |
| 7 #include "base/chromeos/chromeos_version.h" | 7 #include "base/chromeos/chromeos_version.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/i18n/time_formatting.h" | 9 #include "base/i18n/time_formatting.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "chrome/browser/chromeos/system/input_device_settings.h" | 24 #include "chrome/browser/chromeos/system/input_device_settings.h" |
| 25 #include "chrome/browser/chromeos/system/power_manager_settings.h" | 25 #include "chrome/browser/chromeos/system/power_manager_settings.h" |
| 26 #include "chrome/browser/chromeos/system/statistics_provider.h" | 26 #include "chrome/browser/chromeos/system/statistics_provider.h" |
| 27 #include "chrome/browser/download/download_util.h" | 27 #include "chrome/browser/download/download_util.h" |
| 28 #include "chrome/browser/prefs/pref_service.h" | 28 #include "chrome/browser/prefs/pref_service.h" |
| 29 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 29 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
| 30 #include "chrome/common/chrome_notification_types.h" | 30 #include "chrome/common/chrome_notification_types.h" |
| 31 #include "chrome/common/chrome_switches.h" | 31 #include "chrome/common/chrome_switches.h" |
| 32 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
| 33 #include "googleurl/src/gurl.h" | 33 #include "googleurl/src/gurl.h" |
| 34 #include "third_party/icu/public/i18n/unicode/timezone.h" |
| 34 #include "ui/base/events/event_constants.h" | 35 #include "ui/base/events/event_constants.h" |
| 35 #include "ui/base/events/event_utils.h" | 36 #include "ui/base/events/event_utils.h" |
| 36 #include "unicode/timezone.h" | |
| 37 | 37 |
| 38 namespace chromeos { | 38 namespace chromeos { |
| 39 | 39 |
| 40 static const char kFallbackInputMethodLocale[] = "en-US"; | 40 static const char kFallbackInputMethodLocale[] = "en-US"; |
| 41 | 41 |
| 42 Preferences::Preferences() | 42 Preferences::Preferences() |
| 43 : prefs_(NULL), | 43 : prefs_(NULL), |
| 44 input_method_manager_(input_method::GetInputMethodManager()) { | 44 input_method_manager_(input_method::GetInputMethodManager()) { |
| 45 } | 45 } |
| 46 | 46 |
| (...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 | 784 |
| 785 input_method::AutoRepeatRate rate; | 785 input_method::AutoRepeatRate rate; |
| 786 rate.initial_delay_in_ms = xkb_auto_repeat_delay_pref_.GetValue(); | 786 rate.initial_delay_in_ms = xkb_auto_repeat_delay_pref_.GetValue(); |
| 787 rate.repeat_interval_in_ms = xkb_auto_repeat_interval_pref_.GetValue(); | 787 rate.repeat_interval_in_ms = xkb_auto_repeat_interval_pref_.GetValue(); |
| 788 DCHECK(rate.initial_delay_in_ms > 0); | 788 DCHECK(rate.initial_delay_in_ms > 0); |
| 789 DCHECK(rate.repeat_interval_in_ms > 0); | 789 DCHECK(rate.repeat_interval_in_ms > 0); |
| 790 input_method::XKeyboard::SetAutoRepeatRate(rate); | 790 input_method::XKeyboard::SetAutoRepeatRate(rate); |
| 791 } | 791 } |
| 792 | 792 |
| 793 } // namespace chromeos | 793 } // namespace chromeos |
| OLD | NEW |