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

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: Rebased. 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 6f14c6785080a8cd8125b30d7ab20e7ca36a52f1..cef9ba040f17b7137c26ec40cead47d797411e59 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 class MediaRemotingStatus { kNotStarted, kStarted, kDisabled };
+
// Node override.
Node::InsertionNotificationRequest InsertedInto(ContainerNode*) override;
void RemovedFrom(ContainerNode*) override;
@@ -132,6 +135,11 @@ class CORE_EXPORT HTMLVideoElement final : public HTMLMediaElement,
bool IsPersistent() const;
+ MediaRemotingStatus GetMediaRemotingStatus() const {
+ return media_remoting_status_;
+ }
+ void DisableMediaRemoting();
+
private:
friend class MediaCustomControlsFullscreenDetectorTest;
friend class HTMLMediaElementEventListenersTest;
@@ -156,11 +164,17 @@ class CORE_EXPORT HTMLVideoElement final : public HTMLMediaElement,
void UpdateDisplayState() override;
void DidMoveToNewDocument(Document& old_document) override;
void SetDisplayMode(DisplayMode) override;
+ void MediaRemotingStarted() final;
+ void MediaRemotingStopped() final;
Member<HTMLImageLoader> image_loader_;
Member<MediaCustomControlsFullscreenDetector>
custom_controls_fullscreen_detector_;
+ MediaRemotingStatus media_remoting_status_;
+
+ Member<MediaRemotingInterstitial> remoting_interstitial_;
+
AtomicString default_poster_url_;
bool is_persistent_ = false;
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMediaElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLVideoElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698