| 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..ec55e92707849735b8d0cfb18d5874a67f511d18
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/html/shadow/MediaRemotingInterstitial.h
|
| @@ -0,0 +1,69 @@
|
| +// 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 HTMLImageElement;
|
| +class HTMLVideoElement;
|
| +class MediaRemotingDisableButtonElement;
|
| +class MediaRemotingInterstitialElements;
|
| +
|
| +// Media Remoting UI. DOM structure looks like:
|
| +//
|
| +// MediaRemotingInterstitial
|
| +// (-internal-media-remoting-interstitial)
|
| +// +-HTMLImageElement
|
| +// | (-internal-media-remoting-background-image)
|
| +// \-MediaRemotingInterstitialElements
|
| +// | (-internal-media-remoting-interstitial-elements)
|
| +// \-HTMLInputElement
|
| +// | (-internal-media-remoting-cast-icon)
|
| +// \-MediaRemotingDisableButtonElement
|
| +// (-internal-media-remoting-disable-button)
|
| +class MediaRemotingInterstitial final : public HTMLDivElement {
|
| + public:
|
| + explicit MediaRemotingInterstitial(HTMLVideoElement&);
|
| +
|
| + // Show/Hide Media Remoting interstitial.
|
| + void Show();
|
| + void Hide();
|
| + void OnPosterImageChanged();
|
| +
|
| + HTMLVideoElement& VideoElement() const { return *video_element_; }
|
| +
|
| + DECLARE_VIRTUAL_TRACE();
|
| +
|
| + private:
|
| + // Node override.
|
| + bool IsMediaRemotingInterstitial() const override { return true; }
|
| +
|
| + Member<HTMLVideoElement> video_element_;
|
| + Member<MediaRemotingInterstitialElements> interstitial_elements_;
|
| + Member<HTMLImageElement> background_image_;
|
| +};
|
| +
|
| +class MediaRemotingInterstitialElements final : public HTMLDivElement {
|
| + public:
|
| + explicit MediaRemotingInterstitialElements(MediaRemotingInterstitial&);
|
| + void OnShown();
|
| + void OnHidden();
|
| + HTMLVideoElement& VideoElement() const;
|
| +
|
| + DECLARE_VIRTUAL_TRACE();
|
| +
|
| + private:
|
| + Member<MediaRemotingInterstitial> interstitial_;
|
| + Member<MediaRemotingDisableButtonElement> disable_button_;
|
| + Member<HTMLInputElement> cast_icon_;
|
| + Member<HTMLInputElement> cast_text_message_;
|
| +};
|
| +
|
| +} // namespace
|
| +
|
| +#endif // MediaRemotingInterstitial_h
|
|
|