Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1246)

Side by Side Diff: chrome/browser/chromeos/language_preferences.h

Issue 3132023: Add language_prefs namespace to language_preferences.h. (Closed)
Patch Set: address comments Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #pragma once 7 #pragma once
8 8
9 #include <stddef.h> // For size_t 9 #include <stddef.h> // For size_t
10 10
11 // This file defines types and declare variables used in "Languages and 11 // This file defines types and declare variables used in "Languages and
12 // Input" settings in Chromium OS. 12 // Input" settings in Chromium OS.
13 namespace chromeos { 13 namespace chromeos {
14 namespace language_prefs {
14 15
15 // The struct is used for preferences consisting of multiple choices, like 16 // The struct is used for preferences consisting of multiple choices, like
16 // punctuation types used in Japanese input method. 17 // punctuation types used in Japanese input method.
17 template <typename DataType> 18 template <typename DataType>
18 struct LanguageMultipleChoicePreference { 19 struct LanguageMultipleChoicePreference {
19 const char* pref_name; // Chrome preference name. 20 const char* pref_name; // Chrome preference name.
20 DataType default_pref_value; 21 DataType default_pref_value;
21 const char* ibus_config_name; 22 const char* ibus_config_name;
22 // Currently we have 10 combobox items at most. 23 // Currently we have 10 combobox items at most.
23 static const size_t kMaxItems = 11; 24 static const size_t kMaxItems = 11;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 157
157 // A string Chrome preference (Local State) of the preferred keyboard layout in 158 // A string Chrome preference (Local State) of the preferred keyboard layout in
158 // the login screen. 159 // the login screen.
159 extern const char kPreferredKeyboardLayout[]; 160 extern const char kPreferredKeyboardLayout[];
160 161
161 // A input method name that corresponds the hardware keyboard layout. 162 // A input method name that corresponds the hardware keyboard layout.
162 // TODO(yusukes): just assuming US qwerty keyboard is not always correct. 163 // TODO(yusukes): just assuming US qwerty keyboard is not always correct.
163 // crosbug.com/5579. 164 // crosbug.com/5579.
164 extern const char kHardwareKeyboardLayout[]; 165 extern const char kHardwareKeyboardLayout[];
165 166
167 } // language_prefs
166 } // chromeos 168 } // chromeos
167 169
168 #endif // CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_ 170 #endif // CHROME_BROWSER_CHROMEOS_LANGUAGE_PREFERENCES_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/input_method/input_method_util.cc ('k') | chrome/browser/chromeos/language_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698