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

Unified Diff: chrome/browser/chromeos/language_preferences.h

Issue 2457001: Add Chewing integer preferences (Closed)
Patch Set: Code Review Created 10 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/options/language_chewing_config_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/language_preferences.h
diff --git a/chrome/browser/chromeos/language_preferences.h b/chrome/browser/chromeos/language_preferences.h
index d8f077641b8b2625727187d660326c857cb8afd4..6674a7bc61c02a98a4075e6b4d294351f6a091ad 100644
--- a/chrome/browser/chromeos/language_preferences.h
+++ b/chrome/browser/chromeos/language_preferences.h
@@ -65,6 +65,21 @@ const struct {
};
const size_t kNumChewingBooleanPrefs = ARRAYSIZE_UNSAFE(kChewingBooleanPrefs);
+const struct {
+ const wchar_t* pref_name; // Chrome preference name.
+ int default_pref_value;
+ int min_pref_value;
+ int max_pref_value;
+ const char* ibus_config_name;
+ int message_id;
+} kChewingIntegerPrefs[] = {
+ { prefs::kLanguageChewingMaxChiSymbolLen, 20, 8, 40, "maxChiSymbolLen",
+ IDS_OPTIONS_SETTINGS_LANGUAGES_CHEWING_SETTING_MAX_CHI_SYMBOL_LEN},
+ { prefs::kLanguageChewingCandPerPage, 10, 8, 10, "candPerPage",
+ IDS_OPTIONS_SETTINGS_LANGUAGES_CHEWING_SETTING_CAND_PER_PAGE},
+};
+const size_t kNumChewingIntegerPrefs = ARRAYSIZE_UNSAFE(kChewingIntegerPrefs);
+
const struct ChewingMultipleChoicePreference {
const wchar_t* pref_name; // Chrome preference name.
const wchar_t* default_pref_value;
@@ -121,7 +136,7 @@ const struct ChewingMultipleChoicePreference {
};
const size_t kNumChewingMultipleChoicePrefs =
arraysize(kChewingMultipleChoicePrefs);
-// TODO(zork): Support candPerPage, hsuSelKeyType, and maxChiSymbolLen
+// TODO(zork): Support hsuSelKeyType
// For Korean input method (ibus-hangul)
const char kHangulSectionName[] = "engine/Hangul";
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/options/language_chewing_config_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698