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

Unified Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 1414663011: Notifying the Out of Process Renderer about Visibility Change of a Remote Frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
Index: content/browser/frame_host/render_widget_host_view_child_frame.cc
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.cc b/content/browser/frame_host/render_widget_host_view_child_frame.cc
index 1324f77e15c2eef56d5b3e58849ed79b69f6f723..20a5e002b06fb34fc7385ef7a873f57b81f1dba8 100644
--- a/content/browser/frame_host/render_widget_host_view_child_frame.cc
+++ b/content/browser/frame_host/render_widget_host_view_child_frame.cc
@@ -482,4 +482,13 @@ void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() {
surface_id_ = cc::SurfaceId();
}
+// This method is called only when the renderer changes the visibility of the
+// corresponding frame.
+void RenderWidgetHostViewChildFrame::SetVisibility(bool visible) {
+ if (visible)
+ Show();
+ else
+ Hide();
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698