| 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 #ifndef CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_ |
| 7 | 7 |
| 8 class PrefRegistrySimple; | 8 class PrefRegistrySimple; |
| 9 | 9 |
| 10 // TODO(yusukes): Rename this file to input_method_preference.cc. Since | 10 // TODO(yusukes): Rename this file to input_method_preference.cc. Since |
| 11 // "language" usually means UI language, the current file name is confusing. | 11 // "language" usually means UI language, the current file name is confusing. |
| 12 // The namespace should also be changed to "namespace input_method {". | 12 // The namespace should also be changed to "namespace input_method {". |
| 13 | 13 |
| 14 // This file defines types and declare variables used in "Languages and | 14 // This file defines types and declare variables used in "Languages and |
| 15 // Input" settings in Chromium OS. | 15 // Input" settings in Chromium OS. |
| 16 namespace chromeos { | 16 namespace chromeos { |
| 17 namespace language_prefs { | 17 namespace language_prefs { |
| 18 | 18 |
| 19 // --------------------------------------------------------------------------- | 19 // --------------------------------------------------------------------------- |
| 20 // For input method engine management | 20 // For input method engine management |
| 21 // --------------------------------------------------------------------------- | 21 // --------------------------------------------------------------------------- |
| 22 extern const char kGeneralSectionName[]; | 22 extern const char kGeneralSectionName[]; |
| 23 extern const char kPreloadEnginesConfigName[]; | 23 extern const char kPreloadEnginesConfigName[]; |
| 24 | 24 |
| 25 // --------------------------------------------------------------------------- | 25 // --------------------------------------------------------------------------- |
| 26 // For keyboard stuff | 26 // For keyboard stuff |
| 27 // --------------------------------------------------------------------------- | 27 // --------------------------------------------------------------------------- |
| 28 // A flag indicating whether the keyboard auto repeat is enabled. |
| 29 extern const bool kXkbAutoRepeatEnabled; |
| 28 // A delay between the first and the start of the rest. | 30 // A delay between the first and the start of the rest. |
| 29 extern const int kXkbAutoRepeatDelayInMs; | 31 extern const int kXkbAutoRepeatDelayInMs; |
| 30 // An interval between the repeated keys. | 32 // An interval between the repeated keys. |
| 31 extern const int kXkbAutoRepeatIntervalInMs; | 33 extern const int kXkbAutoRepeatIntervalInMs; |
| 32 | 34 |
| 33 // A string Chrome preference (Local State) of the preferred keyboard layout in | 35 // A string Chrome preference (Local State) of the preferred keyboard layout in |
| 34 // the login screen. | 36 // the login screen. |
| 35 extern const char kPreferredKeyboardLayout[]; | 37 extern const char kPreferredKeyboardLayout[]; |
| 36 | 38 |
| 37 // Registers non-user prefs for the default keyboard layout on the login screen. | 39 // Registers non-user prefs for the default keyboard layout on the login screen. |
| 38 void RegisterPrefs(PrefRegistrySimple* registry); | 40 void RegisterPrefs(PrefRegistrySimple* registry); |
| 39 | 41 |
| 40 } // namespace language_prefs | 42 } // namespace language_prefs |
| 41 } // namespace chromeos | 43 } // namespace chromeos |
| 42 | 44 |
| 43 #endif // CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_ | 45 #endif // CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_ |
| OLD | NEW |