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

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

Issue 2693203002: Provide a WebContents API to discover the playback of a fullscreen video. (Closed)
Patch Set: Created 3 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/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index b7b3e51020d2e64f84a40b9bcc4176c399a179ca..57434f36850efa8ad34ea967bb0c8434d663a635 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -786,6 +786,11 @@ class CONTENT_EXPORT WebContentsImpl
// Called when the WebContents gains or loses a persistent video.
void SetHasPersistentVideo(bool value);
+ // Whether the WebContents has an active fullscreen video or a dominant video
+ // while the WebContents is fullscreen.
+ // |IsFullscreen| must return |true| when this method is called.
liberato (no reviews please) 2017/02/14 23:00:01 why?
mlamouri (slow - plz ping) 2017/02/17 16:36:24 The DCHECK() is just because it would basically me
+ virtual bool HasActiveFullscreenDominantVideo() const;
+
#if defined(OS_ANDROID)
// Called by FindRequestManager when all of the find match rects are in.
void NotifyFindMatchRectsReply(int version,

Powered by Google App Engine
This is Rietveld 408576698