Index: chrome/plugin/webplugin_delegate_stub.cc |
=================================================================== |
--- chrome/plugin/webplugin_delegate_stub.cc (revision 16673) |
+++ chrome/plugin/webplugin_delegate_stub.cc (working copy) |
@@ -82,7 +82,7 @@ |
IPC_MESSAGE_HANDLER(PluginMsg_DidFinishLoadWithReason, |
OnDidFinishLoadWithReason) |
IPC_MESSAGE_HANDLER(PluginMsg_SetFocus, OnSetFocus) |
- IPC_MESSAGE_HANDLER(PluginMsg_HandleEvent, OnHandleEvent) |
+ IPC_MESSAGE_HANDLER(PluginMsg_HandleInputEvent, OnHandleInputEvent) |
IPC_MESSAGE_HANDLER(PluginMsg_Paint, OnPaint) |
IPC_MESSAGE_HANDLER(PluginMsg_DidPaint, OnDidPaint) |
IPC_MESSAGE_HANDLER(PluginMsg_Print, OnPrint) |
@@ -212,10 +212,11 @@ |
delegate_->SetFocus(); |
} |
-void WebPluginDelegateStub::OnHandleEvent(const NPEvent& event, |
- bool* handled, |
- WebCursor* cursor) { |
- *handled = delegate_->HandleEvent(const_cast<NPEvent*>(&event), cursor); |
+void WebPluginDelegateStub::OnHandleInputEvent( |
+ const WebKit::WebInputEvent *event, |
+ bool* handled, |
+ WebCursor* cursor) { |
+ *handled = delegate_->HandleInputEvent(*event, cursor); |
} |
void WebPluginDelegateStub::OnPaint(const gfx::Rect& damaged_rect) { |