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 HTMLMediaElement; |
| 13 class MediaRemotingDisableButtonElement; |
| 14 |
| 15 class MediaRemotingInterstitial final : public HTMLDivElement { |
| 16 public: |
| 17 explicit MediaRemotingInterstitial(HTMLMediaElement&); |
| 18 |
| 19 // Show/Hide Media Remoting interstitial. |
| 20 void show(); |
| 21 void hide(); |
| 22 |
| 23 HTMLMediaElement& mediaElement() const { return *m_mediaElement; } |
| 24 |
| 25 DECLARE_VIRTUAL_TRACE(); |
| 26 |
| 27 private: |
| 28 // Node override. |
| 29 bool isMediaControls() const override { return true; } |
| 30 |
| 31 Member<HTMLMediaElement> m_mediaElement; |
| 32 Member<MediaRemotingDisableButtonElement> m_mediaRemotingDisableButton; |
| 33 }; |
| 34 |
| 35 } // namespace |
| 36 |
| 37 #endif // MediaRemotingInterstitial_h |
OLD | NEW |