diff options
author | sehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-20 23:00:48 +0000 |
---|---|---|
committer | sehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-20 23:00:48 +0000 |
commit | ab323d3267cca9ed7b38bb040405ab890f07bf00 (patch) | |
tree | 887f6a5ffacebf1cb7252b6818ef5dc557d21031 /chrome/renderer/webplugin_delegate_pepper.cc | |
parent | a9bbf25029416198769c3a002d496e02ac467c54 (diff) | |
download | chromium_src-ab323d3267cca9ed7b38bb040405ab890f07bf00.zip chromium_src-ab323d3267cca9ed7b38bb040405ab890f07bf00.tar.gz chromium_src-ab323d3267cca9ed7b38bb040405ab890f07bf00.tar.bz2 |
Make all pepper plugins default to windowless and transparent.
Review URL: http://codereview.chromium.org/306018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29582 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webplugin_delegate_pepper.cc')
-rw-r--r-- | chrome/renderer/webplugin_delegate_pepper.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.cc b/chrome/renderer/webplugin_delegate_pepper.cc index 42f3f53..5d8f8c2 100644 --- a/chrome/renderer/webplugin_delegate_pepper.cc +++ b/chrome/renderer/webplugin_delegate_pepper.cc @@ -242,7 +242,12 @@ WebPluginDelegatePepper::WebPluginDelegatePepper( buffer_size_(0), plugin_buffer_(0), background_canvas_(0) { + // For now we keep a window struct, although it isn't used. memset(&window_, 0, sizeof(window_)); + // All Pepper plugins are windowless and transparent. + // TODO(sehr): disable resetting these NPPVs by plugins. + instance->set_windowless(true); + instance->set_transparent(true); } WebPluginDelegatePepper::~WebPluginDelegatePepper() { |