Index: chrome/browser/chromeos/input_method/input_method_manager.cc |
diff --git a/chrome/browser/chromeos/input_method/input_method_manager.cc b/chrome/browser/chromeos/input_method/input_method_manager.cc |
index 7b0f302f9fd65405c1c4d1e58bcfa7b323469384..6f01e8bb90c4e0613db7c7a60cbf7ef961da70c2 100644 |
--- a/chrome/browser/chromeos/input_method/input_method_manager.cc |
+++ b/chrome/browser/chromeos/input_method/input_method_manager.cc |
@@ -36,6 +36,10 @@ |
#include "chrome/browser/chromeos/input_method/candidate_window.h" |
#endif |
+#if defined(HAVE_IBUS) |
+#include <ibus.h> |
+#endif |
+ |
using content::BrowserThread; |
namespace { |
@@ -772,6 +776,11 @@ class InputMethodManagerImpl : public InputMethodManager, |
std::rotate(value.string_list_value.begin(), |
engine_iter, // this becomes the new first element |
value.string_list_value.end()); |
+#if defined(HAVE_IBUS) |
+#if IBUS_CHECK_VERSION(1, 4, 99) |
+ ibus_controller_->ChangeInputMethod(*engine_iter); |
kinaba
2012/04/13 06:16:50
You mean value.string_list_value[0]? The vector is
Yusuke Sato
2012/04/13 09:07:16
Done.
|
+#endif |
+#endif |
} else { |
LOG(WARNING) << tentative_current_input_method_id_ |
<< " is not in preload_engines: " << value.ToString(); |