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

Unified Diff: chrome/browser/chromeos/input_method/mock_input_method_manager.cc

Issue 136693012: [IME] Supports options page for each IME instead of single options page for each IME extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit tests compiling errors. Created 6 years, 11 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: chrome/browser/chromeos/input_method/mock_input_method_manager.cc
diff --git a/chrome/browser/chromeos/input_method/mock_input_method_manager.cc b/chrome/browser/chromeos/input_method/mock_input_method_manager.cc
index 4bc60775a3ebfe7b294324c102b7d44a31f218a7..d1d4bfcfa8e36cff3e46adb6fd97a58d907a6f54 100644
--- a/chrome/browser/chromeos/input_method/mock_input_method_manager.cc
+++ b/chrome/browser/chromeos/input_method/mock_input_method_manager.cc
@@ -60,6 +60,18 @@ size_t MockInputMethodManager::GetNumActiveInputMethods() const {
return 1;
}
+const InputMethodDescriptor* MockInputMethodManager::GetInputMethodFromId(
+ const std::string& input_method_id) const {
+ static const InputMethodDescriptor defaultInputMethod =
+ InputMethodUtil::GetFallbackInputMethodDescriptor();
+ for (size_t i = 0; i < active_input_method_ids_.size(); i++) {
+ if (input_method_id == active_input_method_ids_[i]) {
+ return &defaultInputMethod;
+ }
+ }
+ return NULL;
+}
+
void MockInputMethodManager::EnableLayouts(const std::string& language_code,
const std::string& initial_layout) {
}

Powered by Google App Engine
This is Rietveld 408576698