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

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

Issue 2767823002: Media Remoting: Add interstitial elements to media element shadow dom. (Closed)
Patch Set: 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/MediaRemotingInterstitial.h
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaRemotingInterstitial.h b/third_party/WebKit/Source/core/html/shadow/MediaRemotingInterstitial.h
new file mode 100644
index 0000000000000000000000000000000000000000..bef3ec95c131c0d773e537a97048f72039f8a23f
--- /dev/null
+++ b/third_party/WebKit/Source/core/html/shadow/MediaRemotingInterstitial.h
@@ -0,0 +1,37 @@
+// 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 MediaRemotingInterstitial_h
+#define MediaRemotingInterstitial_h
+
+#include "core/html/HTMLDivElement.h"
+
+namespace blink {
+
+class HTMLMediaElement;
+class MediaRemotingDisableButtonElement;
+
+class MediaRemotingInterstitial final : public HTMLDivElement {
+ public:
+ explicit MediaRemotingInterstitial(HTMLMediaElement&);
+
+ // Show/Hide Media Remoting interstitial.
+ void show();
+ void hide();
+
+ HTMLMediaElement& mediaElement() const { return *m_mediaElement; }
+
+ DECLARE_VIRTUAL_TRACE();
+
+ private:
+ // Node override.
+ bool isMediaControls() const override { return true; }
+
+ Member<HTMLMediaElement> m_mediaElement;
+ Member<MediaRemotingDisableButtonElement> m_mediaRemotingDisableButton;
+};
+
+} // namespace
+
+#endif // MediaRemotingInterstitial_h

Powered by Google App Engine
This is Rietveld 408576698