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

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

Issue 944763002: Make Page Visibility API work when the browser window is visible or not Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove the VisibilityNotify event handler Created 5 years, 10 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
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 ebbea17c2a927c70d7ad24f782b1946d61e31fdc..1afc5165f4606822a8fffd7e53d4f120f192c567 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
@@ -64,6 +64,10 @@ void RenderWidgetHostViewChildFrame::Hide() {
host_->WasHidden();
}
+void RenderWidgetHostViewChildFrame::Hide(bool content_visible) {
+ Hide();
+}
+
bool RenderWidgetHostViewChildFrame::IsShowing() {
return !host_->is_hidden();
}

Powered by Google App Engine
This is Rietveld 408576698