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

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

Issue 2767823002: Media Remoting: Add interstitial elements to media element shadow dom. (Closed)
Patch Set: Don't hide media control during media remoting. Created 3 years, 9 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 5d42da7ec3c7d9b275cca434ea7caae3068da761..6f2ea37e63eaff678df0b8bb27bcc86b1f44f6f8 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
@@ -63,6 +63,7 @@ class HTMLTrackElement;
class KURL;
class MediaControls;
class MediaError;
+class MediaRemotingInterstitial;
class MediaStreamDescriptor;
class HTMLMediaSource;
class ScriptState;
@@ -130,6 +131,7 @@ class CORE_EXPORT HTMLMediaElement
bool hasRemoteRoutes() const;
bool isPlayingRemotely() const { return m_playingRemotely; }
+ bool isMediaRemotingStarted() const { return m_mediaRemotingStarted; }
// error state
MediaError* error() const;
@@ -323,6 +325,8 @@ class CORE_EXPORT HTMLMediaElement
return m_remotePlaybackClient;
}
+ void disableMediaRemoting();
+
protected:
HTMLMediaElement(const QualifiedName&, Document&);
~HTMLMediaElement() override;
@@ -343,6 +347,8 @@ class CORE_EXPORT HTMLMediaElement
DisplayMode getDisplayMode() const { return m_displayMode; }
virtual void setDisplayMode(DisplayMode mode) { m_displayMode = mode; }
+ void onPosterImageChanged();
+
private:
// Friend class for testing.
friend class MediaElementFillingViewportTest;
@@ -408,6 +414,8 @@ class CORE_EXPORT HTMLMediaElement
bool isAutoplayingMuted() final;
void requestReload(const WebURL&) final;
void activateViewportIntersectionMonitoring(bool) final;
+ void mediaRemotingStarted() final;
+ void mediaRemotingStopped() final;
void loadTimerFired(TimerBase*);
void progressEventTimerFired(TimerBase*);
@@ -668,6 +676,10 @@ class CORE_EXPORT HTMLMediaElement
bool m_mostlyFillingViewport : 1;
+ bool m_mediaRemotingDisabled : 1;
+
+ bool m_mediaRemotingStarted : 1;
+
TraceWrapperMember<AudioTrackList> m_audioTracks;
TraceWrapperMember<VideoTrackList> m_videoTracks;
TraceWrapperMember<TextTrackList> m_textTracks;
@@ -758,6 +770,7 @@ class CORE_EXPORT HTMLMediaElement
Member<MediaControls> m_mediaControls;
Member<HTMLMediaElementControlsList> m_controlsList;
+ Member<MediaRemotingInterstitial> m_remotingInterstitial;
bool m_isPersistentVideo;

Powered by Google App Engine
This is Rietveld 408576698