OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/string_util.h" | 7 #include "base/string_util.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/chromeos/cros/cros_library.h" | 10 #include "chrome/browser/chromeos/cros/cros_library.h" |
11 #include "chrome/browser/chromeos/cros/keyboard_library.h" | 11 #include "chrome/browser/chromeos/cros/keyboard_library.h" |
12 #include "chrome/browser/chromeos/cros/input_method_library.h" | 12 #include "chrome/browser/chromeos/cros/input_method_library.h" |
13 #include "chrome/browser/chromeos/cros/synaptics_library.h" | 13 #include "chrome/browser/chromeos/cros/synaptics_library.h" |
14 #include "chrome/browser/chromeos/input_method/input_method_util.h" | 14 #include "chrome/browser/chromeos/input_method/input_method_util.h" |
15 #include "chrome/browser/pref_member.h" | 15 #include "chrome/browser/prefs/pref_member.h" |
16 #include "chrome/browser/pref_service.h" | 16 #include "chrome/browser/prefs/pref_service.h" |
17 #include "chrome/common/notification_service.h" | 17 #include "chrome/common/notification_service.h" |
18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
19 #include "unicode/timezone.h" | 19 #include "unicode/timezone.h" |
20 | 20 |
21 namespace chromeos { | 21 namespace chromeos { |
22 | 22 |
23 static const char kFallbackInputMethodLocale[] = "en-US"; | 23 static const char kFallbackInputMethodLocale[] = "en-US"; |
24 | 24 |
25 // static | 25 // static |
26 void Preferences::RegisterUserPrefs(PrefService* prefs) { | 26 void Preferences::RegisterUserPrefs(PrefService* prefs) { |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 AutoRepeatRate rate; | 451 AutoRepeatRate rate; |
452 rate.initial_delay_in_ms = language_xkb_auto_repeat_delay_pref_.GetValue(); | 452 rate.initial_delay_in_ms = language_xkb_auto_repeat_delay_pref_.GetValue(); |
453 rate.repeat_interval_in_ms = | 453 rate.repeat_interval_in_ms = |
454 language_xkb_auto_repeat_interval_pref_.GetValue(); | 454 language_xkb_auto_repeat_interval_pref_.GetValue(); |
455 DCHECK(rate.initial_delay_in_ms > 0); | 455 DCHECK(rate.initial_delay_in_ms > 0); |
456 DCHECK(rate.repeat_interval_in_ms > 0); | 456 DCHECK(rate.repeat_interval_in_ms > 0); |
457 CrosLibrary::Get()->GetKeyboardLibrary()->SetAutoRepeatRate(rate); | 457 CrosLibrary::Get()->GetKeyboardLibrary()->SetAutoRepeatRate(rate); |
458 } | 458 } |
459 | 459 |
460 } // namespace chromeos | 460 } // namespace chromeos |
OLD | NEW |