diff options
Diffstat (limited to 'ui/base/ime/ibus_client.cc')
-rw-r--r-- | ui/base/ime/ibus_client.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ui/base/ime/ibus_client.cc b/ui/base/ime/ibus_client.cc index e5631c1..f5d2e56 100644 --- a/ui/base/ime/ibus_client.cc +++ b/ui/base/ime/ibus_client.cc @@ -24,8 +24,13 @@ IBusClient::InputMethodType IBusClient::GetInputMethodType() { void IBusClient::SetCursorLocation(const gfx::Rect& cursor_location, const gfx::Rect& composition_head) { - // Do nothing, because this function will be overridden with - // IBusChromeOSClientImpl. + chromeos::IBusInputContextClient* input_context = + chromeos::DBusThreadManager::Get()->GetIBusInputContextClient(); + DCHECK(input_context->IsObjectProxyReady()); + input_context->SetCursorLocation(cursor_location.x(), + cursor_location.y(), + cursor_location.width(), + cursor_location.height()); } } // namespace internal |