| 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 #include "chrome/browser/ui/webui/options2/chromeos/language_chewing_handler.h" | 5 #include "chrome/browser/ui/webui/options2/chromeos/language_chewing_handler.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chrome/browser/chromeos/language_preferences.h" | 13 #include "chrome/browser/chromeos/language_preferences.h" |
| 14 #include "chrome/browser/ui/webui/options2/chromeos/language_options_util.h" | 14 #include "chrome/browser/ui/webui/options2/chromeos/language_options_util.h" |
| 15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
| 16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 const char kI18nPrefix[] = "Chewing_"; | 19 const char kI18nPrefix[] = "Chewing_"; |
| 20 } // namespace | 20 } // namespace |
| 21 | 21 |
| 22 namespace chromeos { | 22 namespace chromeos { |
| 23 namespace options2 { | 23 namespace options { |
| 24 | 24 |
| 25 LanguageChewingHandler::LanguageChewingHandler() { | 25 LanguageChewingHandler::LanguageChewingHandler() { |
| 26 } | 26 } |
| 27 | 27 |
| 28 LanguageChewingHandler::~LanguageChewingHandler() { | 28 LanguageChewingHandler::~LanguageChewingHandler() { |
| 29 } | 29 } |
| 30 | 30 |
| 31 void LanguageChewingHandler::GetLocalizedValues( | 31 void LanguageChewingHandler::GetLocalizedValues( |
| 32 DictionaryValue* localized_strings) { | 32 DictionaryValue* localized_strings) { |
| 33 DCHECK(localized_strings); | 33 DCHECK(localized_strings); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 localized_strings->SetString( | 94 localized_strings->SetString( |
| 95 GetI18nContentValue(language_prefs::kChewingHsuSelKeyType, kI18nPrefix), | 95 GetI18nContentValue(language_prefs::kChewingHsuSelKeyType, kI18nPrefix), |
| 96 l10n_util::GetStringUTF16( | 96 l10n_util::GetStringUTF16( |
| 97 language_prefs::kChewingHsuSelKeyType.label_message_id)); | 97 language_prefs::kChewingHsuSelKeyType.label_message_id)); |
| 98 localized_strings->Set( | 98 localized_strings->Set( |
| 99 GetTemplateDataPropertyName(language_prefs::kChewingHsuSelKeyType, | 99 GetTemplateDataPropertyName(language_prefs::kChewingHsuSelKeyType, |
| 100 kI18nPrefix), | 100 kI18nPrefix), |
| 101 CreateMultipleChoiceList(language_prefs::kChewingHsuSelKeyType)); | 101 CreateMultipleChoiceList(language_prefs::kChewingHsuSelKeyType)); |
| 102 } | 102 } |
| 103 | 103 |
| 104 } // namespace options2 | 104 } // namespace options |
| 105 } // namespace chromeos | 105 } // namespace chromeos |
| OLD | NEW |