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

Side by Side 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: Rebased. 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MediaRemotingInterstitial_h
6 #define MediaRemotingInterstitial_h
7
8 #include "core/html/HTMLDivElement.h"
9
10 namespace blink {
11
12 class HTMLImageElement;
13 class HTMLVideoElement;
14 class MediaRemotingExitButtonElement;
15 class MediaRemotingCastMessageElement;
16 class MediaRemotingCastIconElement;
17
18 // Media Remoting UI. DOM structure looks like:
19 //
20 // MediaRemotingInterstitial
21 // (-internal-media-remoting-interstitial)
22 // +-HTMLImageElement
23 // | (-internal-media-remoting-background-image)
24 // \-MediaRemotingCastIconElement
25 // | (-internal-media-remoting-cast-icon)
26 // \-MediaRemotingCastMessageElement
27 // | (-internal-media-remoting-cast-text-message)
28 // \-MediaRemotingExitButtonElement
29 // (-internal-media-remoting-disable-button)
30 class MediaRemotingInterstitial final : public HTMLDivElement {
31 public:
32 explicit MediaRemotingInterstitial(HTMLVideoElement&);
33
34 // Show/Hide Media Remoting interstitial.
35 void Show();
36 void Hide();
37 void OnPosterImageChanged();
38
39 HTMLVideoElement& GetVideoElement() const { return *video_element_; }
40
41 DECLARE_VIRTUAL_TRACE();
42
43 private:
44 // Node override.
45 bool IsMediaRemotingInterstitial() const override { return true; }
46
47 Member<HTMLVideoElement> video_element_;
48 Member<HTMLImageElement> background_image_;
49 Member<MediaRemotingExitButtonElement> exit_button_;
50 Member<MediaRemotingCastIconElement> cast_icon_;
51 Member<MediaRemotingCastMessageElement> cast_text_message_;
52 };
53
54 } // namespace
55
56 #endif // MediaRemotingInterstitial_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698