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

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 liberato's comments. Changed to use HTMLDivElement instead of HTMLInputElement. 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..00c18d965c5096c18421e4f2f091baa44a190cb2
--- /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/MediaRemotingInterstitial.h"
+
+namespace blink {
+
+class Text;
+
+// ----------------------------
mlamouri (slow - plz ping) 2017/04/13 17:20:51 style: remove this here and below, add a quick doc
xjz 2017/04/13 19:12:12 Done.
+
+class MediaRemotingDisableButtonElement final : public HTMLDivElement {
miu 2017/04/13 01:32:10 Nice. Yes, I think the DIV elements will be much l
xjz 2017/04/13 19:12:12 Thanks for the suggestion. :)
+ public:
+ explicit MediaRemotingDisableButtonElement(MediaRemotingInterstitial&);
mlamouri (slow - plz ping) 2017/04/13 17:20:51 I think this should be renamed. The name no longer
xjz 2017/04/13 19:12:12 Done. Renamed it to MediaRemotingExitButtonElement
+
+ void OnShown();
+ void OnHidden();
+ HTMLVideoElement& VideoElement() const;
mlamouri (slow - plz ping) 2017/04/13 17:20:51 nit: GetVideoElement()?
xjz 2017/04/13 19:12:12 Done.
+
+ DECLARE_VIRTUAL_TRACE();
+
+ private:
+ class MouseEventsListener;
+
+ Member<MediaRemotingInterstitial> interstitial_;
+ Member<MouseEventsListener> listener_;
+ Member<Text> text_;
+};
+
+// ----------------------------
+
+class MediaRemotingCastMessageElement final : public HTMLDivElement {
+ public:
+ explicit MediaRemotingCastMessageElement(MediaRemotingInterstitial&);
+
+ DECLARE_VIRTUAL_TRACE();
+
+ private:
+ Member<Text> text_;
+};
+
+// ----------------------------
+
+class MediaRemotingCastIconElement final : public HTMLDivElement {
+ public:
+ explicit MediaRemotingCastIconElement(MediaRemotingInterstitial&);
+};
+
+} // namespace blink
+
+#endif // MediaRemotingElements_h

Powered by Google App Engine
This is Rietveld 408576698