diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-20 07:11:33 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-20 07:11:33 +0000 |
commit | e325901c4335f18194ee4c03f6f768e5b9fb74ee (patch) | |
tree | 685c8daf56854f9f5f3c12be1fd14c75982a95d6 /webkit/glue/webplugin_impl.cc | |
parent | 6ac97bf5fb39946a9c224ddb07f233dc2c3eb66a (diff) | |
download | chromium_src-e325901c4335f18194ee4c03f6f768e5b9fb74ee.zip chromium_src-e325901c4335f18194ee4c03f6f768e5b9fb74ee.tar.gz chromium_src-e325901c4335f18194ee4c03f6f768e5b9fb74ee.tar.bz2 |
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
Diffstat (limited to 'webkit/glue/webplugin_impl.cc')
-rw-r--r-- | webkit/glue/webplugin_impl.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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); |