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

Unified Diff: content/public/browser/web_contents.h

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: 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/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 879e8d8513c03fa6ccb621249098bb66873a0fab..2776c78d0041b678b643501ea3cff47a0e4a8665 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -339,6 +339,7 @@ class WebContents : public PageNavigator,
// Invoked when the WebContents becomes shown/hidden.
virtual void WasShown() = 0;
virtual void WasHidden() = 0;
+ virtual void WasHidden(bool content_visible) = 0;
// Returns true if the before unload and unload listeners need to be
// fired. The value of this changes over time. For example, if true and the

Powered by Google App Engine
This is Rietveld 408576698