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

Unified Diff: components/plugins/renderer/webview_plugin.cc

Issue 2874133002: Removed WebFrameClient.cpp from Source/web (Closed)
Patch Set: Added TODO back Created 3 years, 7 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 | « components/plugins/renderer/webview_plugin.h ('k') | content/shell/test_runner/web_frame_test_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/plugins/renderer/webview_plugin.cc
diff --git a/components/plugins/renderer/webview_plugin.cc b/components/plugins/renderer/webview_plugin.cc
index 3bb9a8acf1222bb36acab4b5ef9dcab588a4066d..3aecdaf89384eb296d9786dd2f79c106f8ff417e 100644
--- a/components/plugins/renderer/webview_plugin.cc
+++ b/components/plugins/renderer/webview_plugin.cc
@@ -350,6 +350,14 @@ void WebViewPlugin::WebViewHelper::DidClearWindowObject() {
plugin_->delegate_->GetV8Handle(isolate));
}
+void WebViewPlugin::WebViewHelper::FrameDetached(blink::WebLocalFrame* frame,
+ DetachType type) {
+ if (frame->FrameWidget())
+ frame->FrameWidget()->Close();
+
+ frame->Close();
+}
+
void WebViewPlugin::OnZoomLevelChanged() {
if (container_) {
web_view()->SetZoomLevel(
« no previous file with comments | « components/plugins/renderer/webview_plugin.h ('k') | content/shell/test_runner/web_frame_test_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698