Chromium Code Reviews| 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..6016c155b36615ef23bab7d0240bbd4fa934f9d1 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, |
| @@ -130,6 +131,11 @@ class CORE_EXPORT HTMLVideoElement final : public HTMLMediaElement, |
| bool isPersistent() const; |
| + bool isMediaRemotingStarted() const override { |
| + return m_mediaRemotingStarted; |
| + } |
| + void disableMediaRemoting(); |
| + |
| private: |
| friend class MediaCustomControlsFullscreenDetectorTest; |
| friend class HTMLMediaElementEventListenersTest; |
| @@ -155,9 +161,20 @@ class CORE_EXPORT HTMLVideoElement final : public HTMLMediaElement, |
| void didMoveToNewDocument(Document& oldDocument) override; |
| void setDisplayMode(DisplayMode) override; |
| + void mediaRemotingStarted() final; |
| + void mediaRemotingStopped() final; |
| + |
| + bool isMediaRemotingDisabled() const override { |
| + return m_mediaRemotingDisabled; |
| + } |
| + |
| + bool m_mediaRemotingDisabled : 1; |
| + bool m_mediaRemotingStarted : 1; |
|
mlamouri (slow - plz ping)
2017/04/07 13:18:33
Could a `m_mediaRemotingStatus` be used with Disab
xjz
2017/04/07 23:07:01
Good suggestion. Done. Thanks! :)
|
| + |
| Member<HTMLImageLoader> m_imageLoader; |
| Member<MediaCustomControlsFullscreenDetector> |
| m_customControlsFullscreenDetector; |
| + Member<MediaRemotingInterstitial> m_remotingInterstitial; |
| AtomicString m_defaultPosterURL; |