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

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

Issue 2767823002: Media Remoting: Add interstitial elements to media element shadow dom. (Closed)
Patch Set: Addressed mlamouri's comments. Created 3 years, 8 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/HTMLVideoElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLVideoElement.h b/third_party/WebKit/Source/core/html/HTMLVideoElement.h
index 385cc3a62fc01554d991c0381d50fc32f3ae21d9..c1059913343190f033377972c3aea76760029b13 100644
--- a/third_party/WebKit/Source/core/html/HTMLVideoElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.h
@@ -43,6 +43,7 @@ namespace blink {
class ExceptionState;
class ImageBitmapOptions;
class MediaCustomControlsFullscreenDetector;
+class MediaRemotingInterstitial;
class CORE_EXPORT HTMLVideoElement final : public HTMLMediaElement,
public CanvasImageSource,
@@ -53,6 +54,8 @@ class CORE_EXPORT HTMLVideoElement final : public HTMLMediaElement,
static HTMLVideoElement* create(Document&);
DECLARE_VIRTUAL_TRACE();
+ enum MediaRemotingStatus { NotStarted, Started, Disabled };
+
// Node override.
Node::InsertionNotificationRequest insertedInto(ContainerNode*) override;
void removedFrom(ContainerNode*) override;
@@ -130,6 +133,11 @@ class CORE_EXPORT HTMLVideoElement final : public HTMLMediaElement,
bool isPersistent() const;
+ MediaRemotingStatus mediaRemotingStatus() const {
+ return m_mediaRemotingStatus;
+ }
+ void disableMediaRemoting();
+
private:
friend class MediaCustomControlsFullscreenDetectorTest;
friend class HTMLMediaElementEventListenersTest;
@@ -155,9 +163,15 @@ class CORE_EXPORT HTMLVideoElement final : public HTMLMediaElement,
void didMoveToNewDocument(Document& oldDocument) override;
void setDisplayMode(DisplayMode) override;
+ void mediaRemotingStarted() final;
+ void mediaRemotingStopped() final;
+
+ MediaRemotingStatus m_mediaRemotingStatus;
+
Member<HTMLImageLoader> m_imageLoader;
Member<MediaCustomControlsFullscreenDetector>
m_customControlsFullscreenDetector;
+ Member<MediaRemotingInterstitial> m_remotingInterstitial;
AtomicString m_defaultPosterURL;

Powered by Google App Engine
This is Rietveld 408576698