summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webplugin_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/webplugin_impl.cc')
-rw-r--r--webkit/glue/webplugin_impl.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/webkit/glue/webplugin_impl.cc b/webkit/glue/webplugin_impl.cc
index 3fe6b58..397fbd2 100644
--- a/webkit/glue/webplugin_impl.cc
+++ b/webkit/glue/webplugin_impl.cc
@@ -396,19 +396,17 @@ void WebPluginImpl::didFailLoading(const WebURLError& error) {
WebPluginImpl::~WebPluginImpl() {
}
-#if defined(OS_LINUX)
-gfx::PluginWindowHandle WebPluginImpl::CreatePluginContainer() {
- WebViewDelegate* view_delegate = GetWebViewDelegate();
- if (!view_delegate)
- return 0;
- return view_delegate->CreatePluginContainer();
-}
-#endif
void WebPluginImpl::SetWindow(gfx::PluginWindowHandle window) {
if (window) {
DCHECK(!windowless_); // Make sure not called twice.
window_ = window;
+ WebViewDelegate* view_delegate = GetWebViewDelegate();
+ if (view_delegate) {
+ // Tell the view delegate that the plugin window was created, so that it
+ // can create necessary container widgets.
+ view_delegate->CreatedPluginWindow(window);
+ }
} else {
DCHECK(!window_); // Make sure not called twice.
windowless_ = true;