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 ad18c70f8e4d2b4aea997b970026044400185eff..4e5cf8263f510eb7caac3ad8f1295acc3342d33b 100644 |
--- a/chrome/browser/chromeos/input_method/mock_input_method_manager.cc |
+++ b/chrome/browser/chromeos/input_method/mock_input_method_manager.cc |
@@ -11,6 +11,7 @@ MockInputMethodManager::MockInputMethodManager() |
: add_observer_count_(0), |
remove_observer_count_(0), |
util_(&delegate_, whitelist_.GetSupportedInputMethods()) { |
+ active_input_method_ids_.push_back("xkb:us::eng"); |
} |
MockInputMethodManager::~MockInputMethodManager() { |
@@ -50,6 +51,11 @@ MockInputMethodManager::GetActiveInputMethods() const { |
return result.Pass(); |
} |
+const std::vector<std::string>& |
+MockInputMethodManager::GetActiveInputMethodIds() const { |
+ return active_input_method_ids_; |
+} |
+ |
size_t MockInputMethodManager::GetNumActiveInputMethods() const { |
return 1; |
} |
@@ -63,6 +69,11 @@ bool MockInputMethodManager::EnableInputMethods( |
return true; |
} |
+bool MockInputMethodManager::EnableInputMethod( |
+ const std::string& new_active_input_method_id) { |
+ return true; |
+} |
+ |
bool MockInputMethodManager::MigrateOldInputMethods( |
std::vector<std::string>* input_method_ids) { |
return false; |
@@ -162,5 +173,9 @@ void MockInputMethodManager::set_hardware_keyboard_layout( |
delegate_.set_hardware_keyboard_layout(value); |
} |
+bool MockInputMethodManager::IsFullLatinKeyboard( |
+ const std::string& layout) const { |
+ return true; |
+} |
} // namespace input_method |
} // namespace chromeos |