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

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: apply review comments 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 244b5d4922c835be697dc75cfa18afcd4ba50f94..307e3fc64903bfe5bd14401e86a16e665fcc792a 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -4255,6 +4255,10 @@ bool WebContentsImpl::HasPersistentVideo() const {
return has_persistent_video_;
}
+bool WebContentsImpl::HasActiveEffectivelyFullscreenVideo() const {
+ return media_web_contents_observer_->HasActiveEffectivelyFullscreenVideo();
+}
+
bool WebContentsImpl::IsFocusedElementEditable() {
RenderFrameHostImpl* frame = GetFocusedFrame();
return frame && frame->has_focused_editable_element();
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/media/media_player_delegate_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698