Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(428)

Unified Diff: third_party/WebKit/Source/core/html/shadow/MediaControlElements.h

Issue 2767823002: Media Remoting: Add interstitial elements to media element shadow dom. (Closed)
Patch Set: Don't hide media control during media remoting. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/shadow/MediaControlElements.h
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControlElements.h b/third_party/WebKit/Source/core/html/shadow/MediaControlElements.h
index df272a9493bee9dd77330ad7c5154beb82b50715..9a4cef19502f701ae67ccfe9df688413dc0e290d 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControlElements.h
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControlElements.h
@@ -31,6 +31,7 @@
#define MediaControlElements_h
#include "core/html/shadow/MediaControlElementTypes.h"
+#include "core/html/shadow/MediaRemotingInterstitial.h"
#include "public/platform/WebLocalizedString.h"
namespace blink {
@@ -383,6 +384,63 @@ class MediaControlCurrentTimeDisplayElement final
explicit MediaControlCurrentTimeDisplayElement(MediaControls&);
};
+// ----------------------------
+
+class MediaRemotingDisableButtonElement final : public HTMLInputElement {
mlamouri (slow - plz ping) 2017/04/04 13:19:44 Can you create a MediaRemotingElements file instea
xjz 2017/04/04 20:56:26 Done.
+ public:
+ explicit MediaRemotingDisableButtonElement(
+ MediaRemotingInterstitialElements&);
+
+ void show();
+ void hide();
+ HTMLMediaElement& mediaElement() const {
+ return m_interstitialElements->mediaElement();
+ }
+
+ DECLARE_VIRTUAL_TRACE();
+
+ private:
+ class MouseEventsListener;
+
+ Member<MediaRemotingInterstitialElements> m_interstitialElements;
+ Member<MouseEventsListener> m_listener;
+};
+
+// ----------------------------
+
+class MediaRemotingCastIconElement final : public HTMLInputElement {
+ public:
+ explicit MediaRemotingCastIconElement(MediaRemotingInterstitialElements&);
+
+ void show();
+ void hide();
+};
+
+// ----------------------------
+
+class MediaRemotingCastMessageElement final : public HTMLInputElement {
+ public:
+ explicit MediaRemotingCastMessageElement(MediaRemotingInterstitialElements&);
+
+ void show();
+ void hide();
+};
+
+// ----------------------------
+
+class MediaRemotingBackgroundImageElement final : public HTMLInputElement {
+ public:
+ explicit MediaRemotingBackgroundImageElement(MediaRemotingInterstitial&);
+
+ void show();
+ void hide();
+
+ DECLARE_VIRTUAL_TRACE();
+
+ private:
+ Member<MediaRemotingInterstitial> m_interstitial;
+};
+
} // namespace blink
#endif // MediaControlElements_h

Powered by Google App Engine
This is Rietveld 408576698