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

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

Issue 2204673004: WIP - WebMediaPlayer switch media renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add switching of CdmFactory. 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..1b0d60d12f3d3884856ba8a72ea82df6aa5edc06 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
@@ -278,6 +278,11 @@ public:
WebRemotePlaybackClient* remotePlaybackClient() { return m_remotePlaybackClient; }
void setRemotePlaybackClient(WebRemotePlaybackClient*);
+ // Indicates whether any parent of this element enters / exits full screen.
+ void parentEnteredFullscreen();
+ void parentExitedFullscreen();
+ bool isParentInFullscreen() const { return m_isParentInFullscreen; }
+
protected:
HTMLMediaElement(const QualifiedName&, Document&);
~HTMLMediaElement() override;
@@ -685,6 +690,9 @@ private:
Member<ElementVisibilityObserver> m_autoplayVisibilityObserver;
static URLRegistry* s_mediaStreamRegistry;
+
+ // Indicates whether any parent element is the full screen element.
+ bool m_isParentInFullscreen;
};
inline bool isHTMLMediaElement(const HTMLElement& element)

Powered by Google App Engine
This is Rietveld 408576698