From 41fbf097c8e01c4971de118eb8fb791b9abaa6eb Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Fri, 22 May 2009 01:29:05 +0000 Subject: Add events to windowless plugins on linux. This CL also refactors the event communication between WebPlugin and WebPluginDelegate, to use a cross-platform message based on WebInputEvent. BUG=8202 TEST=A lot of manual testing on Linux and Windows, with Flash plugins and a custom plugin that dumps events on Linux. Review URL: http://codereview.chromium.org/115330 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16692 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/plugin/webplugin_delegate_stub.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'chrome/plugin/webplugin_delegate_stub.h') diff --git a/chrome/plugin/webplugin_delegate_stub.h b/chrome/plugin/webplugin_delegate_stub.h index d2103a0..b09038c 100644 --- a/chrome/plugin/webplugin_delegate_stub.h +++ b/chrome/plugin/webplugin_delegate_stub.h @@ -24,6 +24,10 @@ struct PluginMsg_DidReceiveResponseParams; struct PluginMsg_URLRequestReply_Params; class WebCursor; +namespace WebKit { +class WebInputEvent; +} + // Converts the IPC messages from WebPluginDelegateProxy into calls to the // actual WebPluginDelegate object. class WebPluginDelegateStub : public IPC::Channel::Listener, @@ -57,8 +61,8 @@ class WebPluginDelegateStub : public IPC::Channel::Listener, void OnDidFinishLoadWithReason(int reason); void OnSetFocus(); - void OnHandleEvent(const NPEvent& event, bool* handled, - WebCursor* cursor); + void OnHandleInputEvent(const WebKit::WebInputEvent* event, + bool* handled, WebCursor* cursor); void OnPaint(const gfx::Rect& damaged_rect); void OnDidPaint(); -- cgit v1.1