Index: chrome/browser/renderer_host/render_widget_host_view_views.cc |
diff --git a/chrome/browser/renderer_host/render_widget_host_view_views.cc b/chrome/browser/renderer_host/render_widget_host_view_views.cc |
index b9ebf768e239fcf1454f88401e7ac4b2cc58a862..61a06e40023609360bfc68388f250dce241b8fd8 100644 |
--- a/chrome/browser/renderer_host/render_widget_host_view_views.cc |
+++ b/chrome/browser/renderer_host/render_widget_host_view_views.cc |
@@ -289,12 +289,16 @@ void RenderWidgetHostViewViews::SetIsLoading(bool is_loading) { |
} |
void RenderWidgetHostViewViews::ImeUpdateTextInputState( |
- WebKit::WebTextInputType type, |
+ ui::TextInputType type, |
+ bool can_compose_inline, |
const gfx::Rect& caret_rect) { |
+ // TODO(kinaba): currently, can_compose_inline is ignored and always treated |
+ // as true. We need to support "can_compose_inline=false" for PPAPI plugins |
+ // that may want to avoid drawing composition-text by themselves and pass |
+ // the responsibility to the browser. |
DCHECK(GetInputMethod()); |
- ui::TextInputType new_type = static_cast<ui::TextInputType>(type); |
- if (text_input_type_ != new_type) { |
- text_input_type_ = new_type; |
+ if (text_input_type_ != type) { |
+ text_input_type_ = type; |
GetInputMethod()->OnTextInputTypeChanged(this); |
} |
if (caret_bounds_ != caret_rect) { |