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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp

Issue 2235473002: Notify WebMediaPlayer when HTML video enters full screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
index f8f4ba806168d75890c3c02087971e5f04f3daac..6320bc2c923848a35b2f3c2a7e8924b6918696ee 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -451,6 +451,7 @@ HTMLMediaElement::HTMLMediaElement(const QualifiedName& tagName, Document& docum
, m_autoplayHelper(AutoplayExperimentHelper::create(m_autoplayHelperClient.get()))
, m_remotePlaybackClient(nullptr)
, m_autoplayVisibilityObserver(nullptr)
+ , m_isMediaInFullscreen(false)
{
ThreadState::current()->registerPreFinalizer(this);
@@ -3318,6 +3319,13 @@ void HTMLMediaElement::willStopBeingFullscreenElement()
m_inOverlayFullscreenVideo = false;
}
+void HTMLMediaElement::updateMediaInFullscreen(bool isFullscreen)
+{
+ m_isMediaInFullscreen = isFullscreen;
+ if (webMediaPlayer())
+ webMediaPlayer()->updateMediaInFullscreen(isFullscreen);
+}
+
WebLayer* HTMLMediaElement::platformLayer() const
{
return m_webLayer;

Powered by Google App Engine
This is Rietveld 408576698