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

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

Issue 11415266: Extract a delegate interface from c/b/input_method to permit decoupling from c/b. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Class comment. Created 8 years 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 d7bdc87dbaf80c1694ec16c057ec21e0304bad80..7a1facd24cccd1a8cfdd8f073db49f68951135dc 100644
--- a/chrome/browser/chromeos/input_method/mock_input_method_manager.cc
+++ b/chrome/browser/chromeos/input_method/mock_input_method_manager.cc
@@ -12,7 +12,7 @@ MockInputMethodManager::MockInputMethodManager()
remove_observer_count_(0),
set_state_count_(0),
last_state_(STATE_TERMINATING),
- util_(whitelist_.GetSupportedInputMethods()) {
+ util_(&delegate_, whitelist_.GetSupportedInputMethods()) {
}
MockInputMethodManager::~MockInputMethodManager() {
@@ -143,5 +143,14 @@ InputMethodUtil* MockInputMethodManager::GetInputMethodUtil() {
return &util_;
}
+void MockInputMethodManager::set_application_locale(const std::string& value) {
+ delegate_.set_active_locale(value);
+}
+
+void MockInputMethodManager::set_hardware_keyboard_layout(
+ const std::string& value) {
+ delegate_.set_hardware_keyboard_layout(value);
+}
+
} // namespace input_method
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698