From e325901c4335f18194ee4c03f6f768e5b9fb74ee Mon Sep 17 00:00:00 2001 From: "darin@chromium.org" Date: Thu, 20 Aug 2009 07:11:33 +0000 Subject: Add WebPlugin::acceptsInputEvents method. This allows us to restore a windowless_ check that used to exist in webplugin_impl.cc prior to r23797. The goal of this change is to not handle input events for windowed plugins. R=hbono BUG=none TEST=pending/plugins/iframe-shims.htm Review URL: http://codereview.chromium.org/173114 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23808 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/webplugin_impl.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'webkit/glue/webplugin_impl.cc') diff --git a/webkit/glue/webplugin_impl.cc b/webkit/glue/webplugin_impl.cc index 4376881..4581daf 100644 --- a/webkit/glue/webplugin_impl.cc +++ b/webkit/glue/webplugin_impl.cc @@ -362,6 +362,10 @@ void WebPluginImpl::updateVisibility(bool visible) { webview->delegate()->DidMovePlugin(move); } +bool WebPluginImpl::acceptsInputEvents() { + return windowless_; +} + bool WebPluginImpl::handleInputEvent( const WebInputEvent& event, WebCursorInfo& cursor_info) { return delegate_->HandleInputEvent(event, &cursor_info); -- cgit v1.1