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/input_method_library.h" |
11 #include "chrome/browser/chromeos/cros/keyboard_library.h" | 12 #include "chrome/browser/chromeos/cros/keyboard_library.h" |
12 #include "chrome/browser/chromeos/cros/input_method_library.h" | |
13 #include "chrome/browser/chromeos/cros/touchpad_library.h" | 13 #include "chrome/browser/chromeos/cros/touchpad_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/prefs/pref_member.h" | 15 #include "chrome/browser/prefs/pref_member.h" |
16 #include "chrome/browser/prefs/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 |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 AutoRepeatRate rate; | 405 AutoRepeatRate rate; |
406 rate.initial_delay_in_ms = language_xkb_auto_repeat_delay_pref_.GetValue(); | 406 rate.initial_delay_in_ms = language_xkb_auto_repeat_delay_pref_.GetValue(); |
407 rate.repeat_interval_in_ms = | 407 rate.repeat_interval_in_ms = |
408 language_xkb_auto_repeat_interval_pref_.GetValue(); | 408 language_xkb_auto_repeat_interval_pref_.GetValue(); |
409 DCHECK(rate.initial_delay_in_ms > 0); | 409 DCHECK(rate.initial_delay_in_ms > 0); |
410 DCHECK(rate.repeat_interval_in_ms > 0); | 410 DCHECK(rate.repeat_interval_in_ms > 0); |
411 CrosLibrary::Get()->GetKeyboardLibrary()->SetAutoRepeatRate(rate); | 411 CrosLibrary::Get()->GetKeyboardLibrary()->SetAutoRepeatRate(rate); |
412 } | 412 } |
413 | 413 |
414 } // namespace chromeos | 414 } // namespace chromeos |
OLD | NEW |