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 MediaRemotingElements_h | |
| 6 #define MediaRemotingElements_h | |
| 7 | |
| 8 #include "core/html/shadow/MediaControlElementTypes.h" | |
| 9 #include "core/html/shadow/MediaRemotingInterstitial.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 class MediaRemotingDisableButtonElement final : public HTMLInputElement { | |
| 14 public: | |
| 15 explicit MediaRemotingDisableButtonElement( | |
| 16 MediaRemotingInterstitialElements&); | |
| 17 | |
| 18 void onShown(); | |
| 19 void onHidden(); | |
| 20 HTMLVideoElement& videoElement() const { | |
| 21 return m_interstitialElements->videoElement(); | |
| 22 } | |
|
mlamouri (slow - plz ping)
2017/04/07 13:18:36
nit: can you move this to the cpp file?
xjz
2017/04/07 23:07:01
Done.
| |
| 23 | |
| 24 DECLARE_VIRTUAL_TRACE(); | |
| 25 | |
| 26 private: | |
| 27 class MouseEventsListener; | |
| 28 | |
| 29 Member<MediaRemotingInterstitialElements> m_interstitialElements; | |
| 30 Member<MouseEventsListener> m_listener; | |
| 31 }; | |
| 32 | |
| 33 // ---------------------------- | |
| 34 | |
| 35 class MediaRemotingCastIconElement final : public HTMLInputElement { | |
| 36 public: | |
| 37 explicit MediaRemotingCastIconElement(MediaRemotingInterstitialElements&); | |
| 38 }; | |
| 39 | |
| 40 // ---------------------------- | |
| 41 | |
| 42 class MediaRemotingBackgroundImageElement final : public HTMLInputElement { | |
| 43 public: | |
| 44 explicit MediaRemotingBackgroundImageElement(MediaRemotingInterstitial&); | |
| 45 void onPosterImageChanged(); | |
| 46 | |
| 47 DECLARE_VIRTUAL_TRACE(); | |
| 48 | |
| 49 private: | |
| 50 void show(); | |
| 51 void hide(); | |
| 52 Member<MediaRemotingInterstitial> m_interstitial; | |
| 53 }; | |
| 54 | |
| 55 } // namespace blink | |
| 56 | |
| 57 #endif // MediaRemotingElements_h | |
| OLD | NEW |