| Index: webkit/glue/webplugin_impl.cc
|
| diff --git a/webkit/glue/webplugin_impl.cc b/webkit/glue/webplugin_impl.cc
|
| index 35ea7b214d13d1250641ab6a2ebdbce42233cbb6..53dd1ec6d03a2d8b648ced663db0920a69c76204 100644
|
| --- a/webkit/glue/webplugin_impl.cc
|
| +++ b/webkit/glue/webplugin_impl.cc
|
| @@ -388,6 +388,15 @@ WebPluginImpl::WebPluginImpl(WebCore::HTMLPlugInElement* element,
|
| WebPluginImpl::~WebPluginImpl() {
|
| }
|
|
|
| +gfx::PluginWindowHandle WebPluginImpl::CreatePluginContainer() {
|
| + WebCore::Frame* frame = element_->document()->frame();
|
| + WebFrameImpl* webframe = WebFrameImpl::FromFrame(frame);
|
| + WebViewImpl* webview = webframe->GetWebViewImpl();
|
| + if (!webview->delegate())
|
| + return 0;
|
| + return webview->delegate()->CreatePluginContainer();
|
| +}
|
| +
|
| void WebPluginImpl::SetWindow(gfx::PluginWindowHandle window) {
|
| if (window) {
|
| DCHECK(!windowless_); // Make sure not called twice.
|
|
|