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

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

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.h
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.h b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
index 2505616af94ea7ca993426a45f40c022475b1f5b..11f088c39a00e0534efc6db11e4ffa15ed0ff1a4 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
@@ -278,6 +278,12 @@ public:
WebRemotePlaybackClient* remotePlaybackClient() { return m_remotePlaybackClient; }
void setRemotePlaybackClient(WebRemotePlaybackClient*);
+ // Inform whether the media is in full screen. The media could be in full
+ // screen because either the element itself or its parent element enters
+ // full screen.
+ void updateMediaInFullscreen(bool isFullscreen);
+ bool isMediaInFullscreen() const { return m_isMediaInFullscreen; }
+
protected:
HTMLMediaElement(const QualifiedName&, Document&);
~HTMLMediaElement() override;
@@ -685,6 +691,10 @@ private:
Member<ElementVisibilityObserver> m_autoplayVisibilityObserver;
static URLRegistry* s_mediaStreamRegistry;
+
+ // Indicates whether the media is in full screen. When this is true, either
+ // the element itself or its parent element is full screen element.
+ bool m_isMediaInFullscreen;
};
inline bool isHTMLMediaElement(const HTMLElement& element)

Powered by Google App Engine
This is Rietveld 408576698