Index: content/renderer/render_widget.cc |
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc |
index 4f8d4d5ed585af67e99fd038acc183d698c08d05..0d7024128532195c8096a292d4e5364f2d92795b 100644 |
--- a/content/renderer/render_widget.cc |
+++ b/content/renderer/render_widget.cc |
@@ -20,6 +20,7 @@ |
#include "cc/output/output_surface.h" |
#include "cc/trees/layer_tree_host.h" |
#include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
+#include "content/common/input_messages.h" |
#include "content/common/swapped_out_messages.h" |
#include "content/common/view_messages.h" |
#include "content/public/common/content_switches.h" |
@@ -294,6 +295,9 @@ bool RenderWidget::AllowPartialSwap() const { |
bool RenderWidget::OnMessageReceived(const IPC::Message& message) { |
bool handled = true; |
IPC_BEGIN_MESSAGE_MAP(RenderWidget, message) |
+ IPC_MESSAGE_HANDLER(InputMsg_HandleInputEvent, OnHandleInputEvent) |
+ IPC_MESSAGE_HANDLER(InputMsg_MouseCaptureLost, OnMouseCaptureLost) |
+ IPC_MESSAGE_HANDLER(InputMsg_SetFocus, OnSetFocus) |
IPC_MESSAGE_HANDLER(ViewMsg_Close, OnClose) |
IPC_MESSAGE_HANDLER(ViewMsg_CreatingNew_ACK, OnCreatingNewAck) |
IPC_MESSAGE_HANDLER(ViewMsg_Resize, OnResize) |
@@ -304,9 +308,6 @@ bool RenderWidget::OnMessageReceived(const IPC::Message& message) { |
IPC_MESSAGE_HANDLER(ViewMsg_UpdateRect_ACK, OnUpdateRectAck) |
IPC_MESSAGE_HANDLER(ViewMsg_SwapBuffers_ACK, |
OnViewContextSwapBuffersComplete) |
- IPC_MESSAGE_HANDLER(ViewMsg_HandleInputEvent, OnHandleInputEvent) |
- IPC_MESSAGE_HANDLER(ViewMsg_MouseCaptureLost, OnMouseCaptureLost) |
- IPC_MESSAGE_HANDLER(ViewMsg_SetFocus, OnSetFocus) |
IPC_MESSAGE_HANDLER(ViewMsg_SetInputMethodActive, OnSetInputMethodActive) |
IPC_MESSAGE_HANDLER(ViewMsg_ImeSetComposition, OnImeSetComposition) |
IPC_MESSAGE_HANDLER(ViewMsg_ImeConfirmComposition, OnImeConfirmComposition) |
@@ -747,8 +748,8 @@ void RenderWidget::OnHandleInputEvent(const WebKit::WebInputEvent* input_event, |
} |
IPC::Message* response = |
- new ViewHostMsg_HandleInputEvent_ACK(routing_id_, input_event->type, |
- ack_result); |
+ new InputHostMsg_HandleInputEvent_ACK(routing_id_, input_event->type, |
+ ack_result); |
bool event_type_gets_rate_limited = |
input_event->type == WebInputEvent::MouseMove || |
input_event->type == WebInputEvent::MouseWheel || |