Index: content/browser/renderer_host/render_widget_host_view_aura.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc |
index 1cf441232b2ba7d02efefbec88681730eeb51d22..44d57f5764c610fb462e5ebaae6b3e6263e4f5f2 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc |
@@ -449,20 +449,6 @@ RenderWidgetHostViewAura::RenderWidgetHostViewAura(RenderWidgetHost* host) |
//////////////////////////////////////////////////////////////////////////////// |
// RenderWidgetHostViewAura, RenderWidgetHostView implementation: |
-bool RenderWidgetHostViewAura::OnMessageReceived( |
- const IPC::Message& message) { |
- bool handled = true; |
- IPC_BEGIN_MESSAGE_MAP(RenderWidgetHostViewAura, message) |
- // TODO(kevers): Move to RenderWidgetHostViewImpl and consolidate IPC |
- // messages for TextInput<State|Type>Changed. Corresponding code in |
- // RenderWidgetHostViewAndroid should also be moved at the same time. |
- IPC_MESSAGE_HANDLER(ViewHostMsg_TextInputStateChanged, |
- OnTextInputStateChanged) |
- IPC_MESSAGE_UNHANDLED(handled = false) |
- IPC_END_MESSAGE_MAP() |
- return handled; |
-} |
- |
void RenderWidgetHostViewAura::InitAsChild( |
gfx::NativeView parent_view) { |
window_->SetType(ui::wm::WINDOW_TYPE_CONTROL); |
@@ -813,25 +799,19 @@ void RenderWidgetHostViewAura::SetIsLoading(bool is_loading) { |
UpdateCursorIfOverSelf(); |
} |
-void RenderWidgetHostViewAura::TextInputTypeChanged( |
- ui::TextInputType type, |
- ui::TextInputMode input_mode, |
- bool can_compose_inline) { |
- if (text_input_type_ != type || |
- text_input_mode_ != input_mode || |
- can_compose_inline_ != can_compose_inline) { |
- text_input_type_ = type; |
- text_input_mode_ = input_mode; |
- can_compose_inline_ = can_compose_inline; |
+void RenderWidgetHostViewAura::TextInputStateChanged( |
+ const ViewHostMsg_TextInputState_Params& params) { |
+ if (text_input_type_ != params.type || |
+ text_input_mode_ != params.mode || |
+ can_compose_inline_ != params.can_compose_inline) { |
+ text_input_type_ = params.type; |
+ text_input_mode_ = params.mode; |
+ can_compose_inline_ = params.can_compose_inline; |
if (GetInputMethod()) |
GetInputMethod()->OnTextInputTypeChanged(this); |
if (touch_editing_client_) |
touch_editing_client_->OnTextInputTypeChanged(text_input_type_); |
} |
-} |
- |
-void RenderWidgetHostViewAura::OnTextInputStateChanged( |
- const ViewHostMsg_TextInputState_Params& params) { |
if (params.show_ime_if_needed && params.type != ui::TEXT_INPUT_TYPE_NONE) { |
if (GetInputMethod()) |
GetInputMethod()->ShowImeIfNeeded(); |