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

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: review comments and compile fix 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 2daf76a0a060f226895085cd7feedadfe38e5cd6..08ef8e497e7998eace5d0872f9a2d60441130011 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -4256,6 +4256,10 @@ bool WebContentsImpl::HasPersistentVideo() const {
return has_persistent_video_;
}
+bool WebContentsImpl::HasActiveEffectivelyFullscreenVideo() const {
+ return media_web_contents_observer_->HasActiveEffectivelyFullscreenVideo();
Charlie Reis 2017/02/23 00:18:08 I found this pretty weird at first glance-- that W
mlamouri (slow - plz ping) 2017/02/23 13:34:19 Ack
+}
+
bool WebContentsImpl::IsFocusedElementEditable() {
RenderFrameHostImpl* frame = GetFocusedFrame();
return frame && frame->has_focused_editable_element();

Powered by Google App Engine
This is Rietveld 408576698