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

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

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.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index e5560966a674c2924dbc9e3e8a76a259a0efe1dd..eaa73df32b1cb6dd06b988da8f4fa9461ce2e6fe 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -4222,6 +4222,10 @@ bool WebContentsImpl::HasPersistentVideo() const {
return has_persistent_video_;
}
+bool WebContentsImpl::HasActiveFullscreenDominantVideo() const {
+ return media_web_contents_observer_->HasActiveFullscreenDominantVideo();
+}
+
bool WebContentsImpl::IsFocusedElementEditable() {
RenderFrameHostImpl* frame = GetFocusedFrame();
return frame && frame->has_focused_editable_element();

Powered by Google App Engine
This is Rietveld 408576698