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

Unified Diff: chromeos/ime/mock_input_method_delegate.cc

Issue 14200032: Decouple l10n_util from InputMethodUtil. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
Index: chromeos/ime/mock_input_method_delegate.cc
diff --git a/chromeos/ime/mock_input_method_delegate.cc b/chromeos/ime/mock_input_method_delegate.cc
index 0f681324f0a5fdbce29e8fae3008868788749655..49c562197911836419daeaeb787931e3d42e6d2a 100644
--- a/chromeos/ime/mock_input_method_delegate.cc
+++ b/chromeos/ime/mock_input_method_delegate.cc
@@ -18,8 +18,17 @@ std::string MockInputMethodDelegate::GetHardwareKeyboardLayout() const {
return hardware_keyboard_layout_;
}
-std::string MockInputMethodDelegate::GetActiveLocale() const {
- return active_locale_;
+string16 MockInputMethodDelegate::GetLocalizedString(int resource_id) const {
+ if (!get_localized_string_callback_.is_null())
+ return get_localized_string_callback_.Run(resource_id);
+ return string16();
+}
+
+string16 MockInputMethodDelegate::GetDisplayLanguageName(
+ const std::string& language_code) const {
+ if (!get_display_language_name_callback_.is_null())
+ return get_display_language_name_callback_.Run(language_code);
+ return string16();
}
} // namespace input_method
« chromeos/ime/mock_input_method_delegate.h ('K') | « chromeos/ime/mock_input_method_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698