| Index: blimp/engine/session/blimp_engine_session.cc
|
| diff --git a/blimp/engine/session/blimp_engine_session.cc b/blimp/engine/session/blimp_engine_session.cc
|
| index f71ae27f15c1570a9c0dce82f533d7f202203d95..aee2e39dcccd3944fc1ecd4a08eeeeb323cbdcfe 100644
|
| --- a/blimp/engine/session/blimp_engine_session.cc
|
| +++ b/blimp/engine/session/blimp_engine_session.cc
|
| @@ -421,11 +421,14 @@
|
| ui::TextInputType type =
|
| client ? client->GetTextInputType() : ui::TEXT_INPUT_TYPE_NONE;
|
|
|
| + // TODO(shaktisahu): Propagate the new type to the client.
|
| // Hide IME, when text input is out of focus, i.e. if the text input type
|
| // changes to ui::TEXT_INPUT_TYPE_NONE. For other text input types,
|
| // OnShowImeIfNeeded is used instead to send show IME request to client.
|
| if (type == ui::TEXT_INPUT_TYPE_NONE)
|
| - tab_->HideTextInputUI();
|
| + render_widget_feature_.SendHideImeRequest(
|
| + tab_->tab_id(),
|
| + tab_->web_contents()->GetRenderWidgetHostView()->GetRenderWidgetHost());
|
| }
|
|
|
| void BlimpEngineSession::OnInputMethodDestroyed(
|
| @@ -438,7 +441,10 @@
|
| !window_tree_host_->GetInputMethod()->GetTextInputClient())
|
| return;
|
|
|
| - tab_->ShowTextInputUI();
|
| + render_widget_feature_.SendShowImeRequest(
|
| + tab_->tab_id(),
|
| + tab_->web_contents()->GetRenderWidgetHostView()->GetRenderWidgetHost(),
|
| + window_tree_host_->GetInputMethod()->GetTextInputClient());
|
| }
|
|
|
| void BlimpEngineSession::ProcessMessage(
|
|
|