| Index: webkit/glue/webplugin_impl.cc
|
| diff --git a/webkit/glue/webplugin_impl.cc b/webkit/glue/webplugin_impl.cc
|
| index 69f62596af120638262fa0aee9e8184630d96ba9..35ea7b214d13d1250641ab6a2ebdbce42233cbb6 100644
|
| --- a/webkit/glue/webplugin_impl.cc
|
| +++ b/webkit/glue/webplugin_impl.cc
|
| @@ -398,6 +398,15 @@ void WebPluginImpl::SetWindow(gfx::PluginWindowHandle window) {
|
| }
|
| }
|
|
|
| +void WebPluginImpl::WillDestroyWindow(gfx::PluginWindowHandle window) {
|
| + WebCore::Frame* frame = element_->document()->frame();
|
| + WebFrameImpl* webframe = WebFrameImpl::FromFrame(frame);
|
| + WebViewImpl* webview = webframe->GetWebViewImpl();
|
| + if (!webview->delegate())
|
| + return;
|
| + webview->delegate()->WillDestroyPluginWindow(window);
|
| +}
|
| +
|
| bool WebPluginImpl::CompleteURL(const std::string& url_in,
|
| std::string* url_out) {
|
| if (!frame() || !frame()->document()) {
|
|
|