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

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

Issue 866443003: Push API: Don't require notification if tab is visible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ycm_outdir
Patch Set: Expose WebContents::IsHiddenIgnoringCapturing instead of PushMessagingService::IsWebContentsUserVis… Created 5 years, 11 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 49ea4cde75b80a1fb743ad92a9b429d356f05365..6df847043a4c22d52edc039ba1754e9f4c0f6fda 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -332,6 +332,9 @@ class WebContents : public PageNavigator,
// created or shown with WasShown()).
virtual base::TimeTicks GetLastActiveTime() const = 0;
+ // Whether the tab is currently hidden. Note that screenshots or video (e.g.
+ // mirroring) might be captured from a tab even through it's hidden.
+ virtual bool IsHiddenIgnoringCapturing() const = 0;
// Invoked when the WebContents becomes shown/hidden.
virtual void WasShown() = 0;
virtual void WasHidden() = 0;

Powered by Google App Engine
This is Rietveld 408576698