Index: webkit/glue/plugins/webplugin_delegate_impl_mac.mm |
=================================================================== |
--- webkit/glue/plugins/webplugin_delegate_impl_mac.mm (revision 16673) |
+++ webkit/glue/plugins/webplugin_delegate_impl_mac.mm (working copy) |
@@ -13,6 +13,7 @@ |
#include "base/message_loop.h" |
#include "base/stats_counters.h" |
#include "base/string_util.h" |
+#include "webkit/api/public/WebInputEvent.h" |
#include "webkit/default_plugin/plugin_impl.h" |
#include "webkit/glue/glue_util.h" |
#include "webkit/glue/webplugin.h" |
@@ -23,6 +24,10 @@ |
#include "webkit/glue/plugins/plugin_stream_url.h" |
#include "webkit/glue/webkit_glue.h" |
+using WebKit::WebKeyboardEvent; |
+using WebKit::WebInputEvent; |
+using WebKit::WebMouseEvent; |
+ |
namespace { |
const wchar_t kWebPluginDelegateProperty[] = L"WebPluginDelegateProperty"; |
@@ -413,10 +418,11 @@ |
instance()->NPP_HandleEvent(&focus_event); |
} |
-bool WebPluginDelegateImpl::HandleEvent(NPEvent* event, |
- WebCursor* cursor) { |
+bool WebPluginDelegateImpl::HandleInputEvent(const WebInputEvent& event, |
+ WebCursor* cursor) { |
DCHECK(windowless_) << "events should only be received in windowless mode"; |
DCHECK(cursor != NULL); |
+ // TODO: convert event into a NPEvent, and call NPP_HandleEvent(np_event). |
return true; |
} |