| 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 #include <stddef.h> // For size_t | 8 #include <stddef.h> // For size_t |
| 9 | 9 |
| 10 #include "chrome/browser/prefs/pref_service.h" | 10 #include "chrome/browser/prefs/pref_service.h" |
| 11 | 11 |
| 12 class PrefRegistrySimple; |
| 13 |
| 12 // TODO(yusukes): Rename this file to input_method_preference.cc. Since | 14 // TODO(yusukes): Rename this file to input_method_preference.cc. Since |
| 13 // "language" usually means UI language, the current file name is confusing. | 15 // "language" usually means UI language, the current file name is confusing. |
| 14 // The namespace should also be changed to "namespace input_method {". | 16 // The namespace should also be changed to "namespace input_method {". |
| 15 | 17 |
| 16 // This file defines types and declare variables used in "Languages and | 18 // This file defines types and declare variables used in "Languages and |
| 17 // Input" settings in Chromium OS. | 19 // Input" settings in Chromium OS. |
| 18 namespace chromeos { | 20 namespace chromeos { |
| 19 namespace language_prefs { | 21 namespace language_prefs { |
| 20 | 22 |
| 21 // TODO(yusukes): Remove the "Language" prefix from all structs and variables. | 23 // TODO(yusukes): Remove the "Language" prefix from all structs and variables. |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 // A delay between the first and the start of the rest. | 156 // A delay between the first and the start of the rest. |
| 155 extern const int kXkbAutoRepeatDelayInMs; | 157 extern const int kXkbAutoRepeatDelayInMs; |
| 156 // An interval between the repeated keys. | 158 // An interval between the repeated keys. |
| 157 extern const int kXkbAutoRepeatIntervalInMs; | 159 extern const int kXkbAutoRepeatIntervalInMs; |
| 158 | 160 |
| 159 // A string Chrome preference (Local State) of the preferred keyboard layout in | 161 // A string Chrome preference (Local State) of the preferred keyboard layout in |
| 160 // the login screen. | 162 // the login screen. |
| 161 extern const char kPreferredKeyboardLayout[]; | 163 extern const char kPreferredKeyboardLayout[]; |
| 162 | 164 |
| 163 // Registers non-user prefs for the default keyboard layout on the login screen. | 165 // Registers non-user prefs for the default keyboard layout on the login screen. |
| 164 void RegisterPrefs(PrefServiceSimple* local_state); | 166 void RegisterPrefs(PrefRegistrySimple* registry); |
| 165 | 167 |
| 166 } // language_prefs | 168 } // language_prefs |
| 167 } // chromeos | 169 } // chromeos |
| 168 | 170 |
| 169 #endif // CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_ | 171 #endif // CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_ |
| OLD | NEW |