Index: chrome/browser/chromeos/input_method/candidate_window.cc |
diff --git a/chrome/browser/chromeos/input_method/candidate_window.cc b/chrome/browser/chromeos/input_method/candidate_window.cc |
index 20b4ce17ff11f24342314ee675e0687152959728..77a77ce05c279cd79ff69860f5dde582e51992ce 100644 |
--- a/chrome/browser/chromeos/input_method/candidate_window.cc |
+++ b/chrome/browser/chromeos/input_method/candidate_window.cc |
@@ -585,6 +585,16 @@ class CandidateWindowController::Impl : public CandidateWindowView::Observer { |
static void OnUpdateLookupTable(void* input_method_library, |
const InputMethodLookupTable& lookup_table); |
+ // The function is called when |UpdatePreeditText| signal is received |
+ // in libcros. |input_method_library| is a void pointer to this object. |
+ static void OnUpdatePreeditText(void* input_method_library, |
+ const std::string& utf8_text, |
+ unsigned int cursor, bool visible); |
+ |
+ // The function is called when |HidePreeditText| signal is received |
+ // in libcros. |input_method_library| is a void pointer to this object. |
+ static void OnHidePreeditText(void* input_method_library); |
+ |
// This function is called by libcros when ibus connects or disconnects. |
// |input_method_library| is a void pointer to this object. |
static void OnConnectionChange(void* input_method_library, bool connected); |
@@ -1247,6 +1257,10 @@ bool CandidateWindowController::Impl::Init() { |
MonitorInputMethodConnection( |
ui_status_connection_, |
&CandidateWindowController::Impl::OnConnectionChange); |
+ MonitorInputMethodPreeditText( |
+ ui_status_connection_, |
+ &CandidateWindowController::Impl::OnHidePreeditText, |
+ &CandidateWindowController::Impl::OnUpdatePreeditText); |
// Create the candidate window view. |
CreateView(); |
@@ -1296,6 +1310,10 @@ void CandidateWindowController::Impl::OnHideLookupTable( |
controller->candidate_window_->HideLookupTable(); |
} |
+void CandidateWindowController::Impl::OnHidePreeditText( |
+ void* input_method_library) { |
+} |
+ |
void CandidateWindowController::Impl::OnSetCursorLocation( |
void* input_method_library, |
int x, |
@@ -1356,6 +1374,11 @@ void CandidateWindowController::Impl::OnUpdateLookupTable( |
controller->frame_->Show(); |
} |
+void CandidateWindowController::Impl::OnUpdatePreeditText( |
+ void* input_method_library, |
+ const std::string& utf8_text, unsigned int cursor, bool visible) { |
+} |
+ |
void CandidateWindowController::Impl::OnCandidateCommitted(int index, |
int button, |
int flags) { |