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

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

Issue 9956140: Add very minimum IBus-1.5 support to InputMethodManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 8 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8159e149c8f8e528b936dadf79d1a8d5460011f6 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(value.string_list_value[0]);
+#endif
+#endif
} else {
LOG(WARNING) << tentative_current_input_method_id_
<< " is not in preload_engines: " << value.ToString();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698