diff options
author | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-03 04:56:06 +0000 |
---|---|---|
committer | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-03 04:56:06 +0000 |
commit | b066e943b91ea94b75d7c8762716e2bb59967dd0 (patch) | |
tree | b66614b7fc36b8774c05d621007438ae007c7d30 /chrome/browser/chromeos/language_preferences.h | |
parent | 3a35f8ee78209cad88ae55584d33e3dde7189d0d (diff) | |
download | chromium_src-b066e943b91ea94b75d7c8762716e2bb59967dd0.zip chromium_src-b066e943b91ea94b75d7c8762716e2bb59967dd0.tar.gz chromium_src-b066e943b91ea94b75d7c8762716e2bb59967dd0.tar.bz2 |
Add missing "number of suggestions" configuration item in Mozc DOMUI
I forgot to include this item in the previous CL.
Use type=number rather than touch-slider (used in original UI) for number of suggestions.
Also clean up some of ARRAYSIZE_UNSAFE() usages in language_preferences.h.
TEST=manually check on the netbook by uncommenting TODO lines in options.html.
BUG=chromium-os:4809
Review URL: http://codereview.chromium.org/3020054
Patch from Takayoshi Kochi <kochi@chromium.org>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54703 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/language_preferences.h')
-rw-r--r-- | chrome/browser/chromeos/language_preferences.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/chromeos/language_preferences.h b/chrome/browser/chromeos/language_preferences.h index 6e24e0c..55962b75 100644 --- a/chrome/browser/chromeos/language_preferences.h +++ b/chrome/browser/chromeos/language_preferences.h @@ -84,7 +84,7 @@ const LanguageBooleanPrefs kChewingBooleanPrefs[] = { { prefs::kLanguageChewingSpaceAsSelection, true, "spaceAsSelection", IDS_OPTIONS_SETTINGS_LANGUAGES_CHEWING_SETTING_SPACE_AS_SELECTION}, }; -const size_t kNumChewingBooleanPrefs = ARRAYSIZE_UNSAFE(kChewingBooleanPrefs); +const size_t kNumChewingBooleanPrefs = arraysize(kChewingBooleanPrefs); const LanguageIntegerRangePreference kChewingIntegerPrefs[] = { { prefs::kLanguageChewingMaxChiSymbolLen, 20, 8, 40, "maxChiSymbolLen", @@ -92,7 +92,7 @@ const LanguageIntegerRangePreference kChewingIntegerPrefs[] = { { prefs::kLanguageChewingCandPerPage, 10, 8, 10, "candPerPage", IDS_OPTIONS_SETTINGS_LANGUAGES_CHEWING_SETTING_CAND_PER_PAGE}, }; -const size_t kNumChewingIntegerPrefs = ARRAYSIZE_UNSAFE(kChewingIntegerPrefs); +const size_t kNumChewingIntegerPrefs = arraysize(kChewingIntegerPrefs); // Temporary solution for crosbug.com/2636. We'll implement a complete dialog // using DOMUI later. @@ -226,7 +226,7 @@ const LanguageBooleanPrefs kPinyinBooleanPrefs[] = { // TODO(yusukes): Support PINYIN_{INCOMPLETE,CORRECT,FUZZY}_... prefs (32 // additional boolean prefs.) }; -const size_t kNumPinyinBooleanPrefs = ARRAYSIZE_UNSAFE(kPinyinBooleanPrefs); +const size_t kNumPinyinBooleanPrefs = arraysize(kPinyinBooleanPrefs); // TODO(yusukes): Support HalfWidthPuncts and IncompletePinyin prefs if needed. const LanguageMultipleChoicePreference<int> kPinyinDoublePinyinSchema = { @@ -300,7 +300,7 @@ const LanguageBooleanPrefs kMozcBooleanPrefs[] = { IDS_MOZC(USE_DICTIONARY_SUGGEST) }, }; -const size_t kNumMozcBooleanPrefs = ARRAYSIZE_UNSAFE(kMozcBooleanPrefs); +const size_t kNumMozcBooleanPrefs = arraysize(kMozcBooleanPrefs); const LanguageMultipleChoicePreference<const char*> kMozcMultipleChoicePrefs[] = { @@ -412,7 +412,7 @@ const LanguageIntegerRangePreference kMozcIntegerPrefs[] = { { prefs::kLanguageMozcSuggestionsSize, 3, 1, 9, "suggestions_size", IDS_MOZC(SUGGESTIONS_SIZE)}, }; -const size_t kNumMozcIntegerPrefs = ARRAYSIZE_UNSAFE(kMozcIntegerPrefs); +const size_t kNumMozcIntegerPrefs = arraysize(kMozcIntegerPrefs); #undef IDS_MOZC |