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 39478215fd4bcb637429184c6f5f798dbe9f05fc..54270444255c4b28a819bed43cc82535ff355f33 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc |
@@ -485,22 +485,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_HANDLER(ViewHostMsg_SetNeedsBeginFrames, |
nasko
2015/07/29 17:41:07
This IPC seems irrelevant to this CL. Why is it be
no sievers
2015/07/30 00:10:58
Yea, I think you want to keep OnSetNeedsBeginFrame
Shu Chen
2015/07/30 00:47:22
This is a typo of solving conflict when rebase. I'
|
- OnSetNeedsBeginFrames) |
- 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); |
@@ -950,29 +934,21 @@ void RenderWidgetHostViewAura::SetIsLoading(bool is_loading) { |
UpdateCursorIfOverSelf(); |
} |
-void RenderWidgetHostViewAura::TextInputTypeChanged( |
- ui::TextInputType type, |
- ui::TextInputMode input_mode, |
- bool can_compose_inline, |
- int flags) { |
- if (text_input_type_ != type || |
- text_input_mode_ != input_mode || |
- can_compose_inline_ != can_compose_inline || |
- text_input_flags_ != flags) { |
- text_input_type_ = type; |
- text_input_mode_ = input_mode; |
- can_compose_inline_ = can_compose_inline; |
- text_input_flags_ = flags; |
+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_flags_ != params.flags) { |
+ text_input_type_ = params.type; |
+ text_input_mode_ = params.mode; |
+ can_compose_inline_ = params.can_compose_inline; |
+ text_input_flags_ = params.flags; |
if (GetInputMethod()) |
GetInputMethod()->OnTextInputTypeChanged(this); |
if (touch_editing_client_) |
touch_editing_client_->OnTextInputTypeChanged(text_input_type_); |
} |
-} |
- |
-void RenderWidgetHostViewAura::OnTextInputStateChanged( |
- const ViewHostMsg_TextInputState_Params& params) { |
- text_input_flags_ = params.flags; |
if (params.show_ime_if_needed && params.type != ui::TEXT_INPUT_TYPE_NONE) { |
if (GetInputMethod()) |
GetInputMethod()->ShowImeIfNeeded(); |