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

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

Issue 18856014: We should switch the keyboard layout to the layout the user set according to (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Diff versus master. Created 7 years, 5 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 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
« no previous file with comments | « chrome/browser/chromeos/input_method/mock_input_method_manager.h ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698