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

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

Issue 2767823002: Media Remoting: Add interstitial elements to media element shadow dom. (Closed)
Patch Set: Addressed mlamouri's comments. Created 3 years, 8 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/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..55936617ad64e4d63dcd4a602f847b159dfea291
--- /dev/null
+++ b/third_party/WebKit/Source/core/html/shadow/MediaRemotingElements.h
@@ -0,0 +1,55 @@
+// 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;
+
+ 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 {
mlamouri (slow - plz ping) 2017/04/10 13:44:22 I just realised this. Why is thin as HTMLInputElem
xjz 2017/04/11 04:29:44 Changed it to a HTMLImageElement. Thanks for the s
+ public:
+ explicit MediaRemotingBackgroundImageElement(MediaRemotingInterstitial&);
+ void onPosterImageChanged();
+
+ DECLARE_VIRTUAL_TRACE();
+
+ private:
+ void show();
+ void hide();
+ Member<MediaRemotingInterstitial> m_interstitial;
+};
+
+} // namespace blink
+
+#endif // MediaRemotingElements_h

Powered by Google App Engine
This is Rietveld 408576698