| Index: third_party/WebKit/Source/core/html/shadow/MediaRemotingInterstitial.h
|
| diff --git a/third_party/WebKit/Source/core/html/shadow/MediaRemotingInterstitial.h b/third_party/WebKit/Source/core/html/shadow/MediaRemotingInterstitial.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..78a15c54e4f4bd4a3c501d5d9deda5682b5897b0
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/html/shadow/MediaRemotingInterstitial.h
|
| @@ -0,0 +1,76 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef MediaRemotingInterstitial_h
|
| +#define MediaRemotingInterstitial_h
|
| +
|
| +#include "core/html/HTMLDivElement.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class HTMLMediaElement;
|
| +class MediaRemotingDisableButtonElement;
|
| +class MediaRemotingCastIconElement;
|
| +class MediaRemotingCastMessageElement;
|
| +class MediaRemotingBackgroundImageElement;
|
| +class MediaRemotingInterstitialElements;
|
| +
|
| +// Media Remoting UI. DOM structure looks like:
|
| +//
|
| +// MediaRemotingInterstitial
|
| +// (-internal-media-remoting-interstitial)
|
| +// +-MediaRemotingBackgroundImageElement
|
| +// | (-internal-media-remoting-background-image)
|
| +// \-MediaRemotingInterstitialElements
|
| +// | (-internal-media-remoting-interstitial-elements)
|
| +// \-MediaRemotingCastIconElement
|
| +// | (-internal-media-remoting-cast-icon)
|
| +// +-MediaRemotingCastMessageElement
|
| +// | (-internal-media-remoting-cast-text)
|
| +// \-MediaRemotingDisableButtonElement
|
| +// (-internal-media-remoting-disable-button)
|
| +class MediaRemotingInterstitial final : public HTMLDivElement {
|
| + public:
|
| + explicit MediaRemotingInterstitial(HTMLMediaElement&);
|
| +
|
| + // Show/Hide Media Remoting interstitial.
|
| + void show();
|
| + void hide();
|
| + bool shouldShow() { return m_shown; }
|
| + void onPosterImageChanged();
|
| +
|
| + HTMLMediaElement& mediaElement() const { return *m_mediaElement; }
|
| +
|
| + DECLARE_VIRTUAL_TRACE();
|
| +
|
| + private:
|
| + // Node override.
|
| + bool isMediaControls() const override { return true; }
|
| +
|
| + Member<HTMLMediaElement> m_mediaElement;
|
| + Member<MediaRemotingInterstitialElements> m_interstitialElements;
|
| + Member<MediaRemotingBackgroundImageElement> m_mediaRemotingBackgroundImage;
|
| +
|
| + bool m_shown = false;
|
| +};
|
| +
|
| +class MediaRemotingInterstitialElements final : public HTMLDivElement {
|
| + public:
|
| + explicit MediaRemotingInterstitialElements(MediaRemotingInterstitial&);
|
| + void show();
|
| + void hide();
|
| + HTMLMediaElement& mediaElement() const;
|
| +
|
| + DECLARE_VIRTUAL_TRACE();
|
| +
|
| + private:
|
| + Member<MediaRemotingInterstitial> m_interstitial;
|
| + Member<MediaRemotingDisableButtonElement> m_mediaRemotingDisableButton;
|
| + Member<MediaRemotingCastIconElement> m_MediaRemotingCastIcon;
|
| + Member<MediaRemotingCastMessageElement> m_mediaRemotingCastMessage;
|
| +};
|
| +
|
| +} // namespace
|
| +
|
| +#endif // MediaRemotingInterstitial_h
|
|
|