Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MediaRemotingInterstitial_h | |
| 6 #define MediaRemotingInterstitial_h | |
| 7 | |
| 8 #include "core/html/HTMLDivElement.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 class HTMLImageElement; | |
| 13 class HTMLVideoElement; | |
| 14 class MediaRemotingDisableButtonElement; | |
| 15 class MediaRemotingCastMessageElement; | |
| 16 class MediaRemotingCastIconElement; | |
| 17 | |
| 18 // Media Remoting UI. DOM structure looks like: | |
| 19 // | |
| 20 // MediaRemotingInterstitial | |
| 21 // (-internal-media-remoting-interstitial) | |
| 22 // +-HTMLImageElement | |
| 23 // | (-internal-media-remoting-background-image) | |
| 24 // \-MediaRemotingCastIconElement | |
| 25 // | (-internal-media-remoting-cast-icon) | |
| 26 // \-MediaRemotingCastMessageElement | |
| 27 // | (-internal-media-remoting-cast-text-message) | |
| 28 // \-MediaRemotingDisableButtonElement | |
| 29 // (-internal-media-remoting-disable-button) | |
| 30 class MediaRemotingInterstitial final : public HTMLDivElement { | |
| 31 public: | |
| 32 explicit MediaRemotingInterstitial(HTMLVideoElement&); | |
| 33 | |
| 34 // Show/Hide Media Remoting interstitial. | |
| 35 void Show(); | |
| 36 void Hide(); | |
| 37 void OnPosterImageChanged(); | |
| 38 | |
| 39 HTMLVideoElement& VideoElement() const { return *video_element_; } | |
|
mlamouri (slow - plz ping)
2017/04/13 17:20:51
GetVideoElement()?
xjz
2017/04/13 19:12:12
Done.
| |
| 40 | |
| 41 DECLARE_VIRTUAL_TRACE(); | |
| 42 | |
| 43 private: | |
| 44 // Node override. | |
| 45 bool IsMediaRemotingInterstitial() const override { return true; } | |
| 46 | |
| 47 Member<HTMLVideoElement> video_element_; | |
| 48 Member<HTMLImageElement> background_image_; | |
| 49 Member<MediaRemotingDisableButtonElement> disable_button_; | |
|
mlamouri (slow - plz ping)
2017/04/13 17:20:51
Rename this?
xjz
2017/04/13 19:12:12
Done.
| |
| 50 Member<MediaRemotingCastIconElement> cast_icon_; | |
| 51 Member<MediaRemotingCastMessageElement> cast_text_message_; | |
| 52 }; | |
| 53 | |
| 54 } // namespace | |
| 55 | |
| 56 #endif // MediaRemotingInterstitial_h | |
| OLD | NEW |