Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/shadow/MediaRemotingElements.h |
| diff --git a/third_party/WebKit/Source/core/html/shadow/MediaRemotingElements.h b/third_party/WebKit/Source/core/html/shadow/MediaRemotingElements.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a83e7c43acc902cb93dcc8d049b15d0eac43b4f8 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/html/shadow/MediaRemotingElements.h |
| @@ -0,0 +1,57 @@ |
| +// 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 MediaRemotingElements_h |
| +#define MediaRemotingElements_h |
| + |
| +#include "core/html/shadow/MediaControlElementTypes.h" |
| +#include "core/html/shadow/MediaRemotingInterstitial.h" |
| + |
| +namespace blink { |
| + |
| +class MediaRemotingDisableButtonElement final : public HTMLInputElement { |
| + public: |
| + explicit MediaRemotingDisableButtonElement( |
| + MediaRemotingInterstitialElements&); |
| + |
| + void onShown(); |
| + void onHidden(); |
| + HTMLVideoElement& videoElement() const { |
| + return m_interstitialElements->videoElement(); |
| + } |
|
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.
|
| + |
| + DECLARE_VIRTUAL_TRACE(); |
| + |
| + private: |
| + class MouseEventsListener; |
| + |
| + Member<MediaRemotingInterstitialElements> m_interstitialElements; |
| + Member<MouseEventsListener> m_listener; |
| +}; |
| + |
| +// ---------------------------- |
| + |
| +class MediaRemotingCastIconElement final : public HTMLInputElement { |
| + public: |
| + explicit MediaRemotingCastIconElement(MediaRemotingInterstitialElements&); |
| +}; |
| + |
| +// ---------------------------- |
| + |
| +class MediaRemotingBackgroundImageElement final : public HTMLInputElement { |
| + public: |
| + explicit MediaRemotingBackgroundImageElement(MediaRemotingInterstitial&); |
| + void onPosterImageChanged(); |
| + |
| + DECLARE_VIRTUAL_TRACE(); |
| + |
| + private: |
| + void show(); |
| + void hide(); |
| + Member<MediaRemotingInterstitial> m_interstitial; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // MediaRemotingElements_h |