Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1527)

Unified Diff: Source/web/WebPluginContainerImpl.cpp

Issue 23618022: BrowserPlugin/WebView - Move plugin lifetime to DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Handle shared-renderer case. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/WebPluginContainerImpl.h ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebPluginContainerImpl.cpp
diff --git a/Source/web/WebPluginContainerImpl.cpp b/Source/web/WebPluginContainerImpl.cpp
index f227705385a922aabfabcb7b8fbb89ed22cfa394..b2ec8a63c7b8138086c44bf63087763e52058324 100644
--- a/Source/web/WebPluginContainerImpl.cpp
+++ b/Source/web/WebPluginContainerImpl.cpp
@@ -270,6 +270,8 @@ void WebPluginContainerImpl::setParent(Widget* widget)
Widget::setParent(widget);
if (widget)
reportGeometry();
+ else if (m_webPlugin)
+ m_webPlugin->containerDidDetachFromParent();
}
void WebPluginContainerImpl::setPlugin(WebPlugin* plugin)
@@ -915,4 +917,9 @@ WebCore::IntRect WebPluginContainerImpl::windowClipRect() const
return clipRect;
}
+bool WebPluginContainerImpl::pluginShouldPersist() const
+{
+ return m_webPlugin->shouldPersist();
+}
+
} // namespace blink
« no previous file with comments | « Source/web/WebPluginContainerImpl.h ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698