| 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;
|
|
|