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

Side by Side 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: Remove cast text message element. Not assuming remoting interstitial is media control. 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 MediaRemotingElements_h
6 #define MediaRemotingElements_h
7
8 #include "core/html/shadow/MediaControlElementTypes.h"
9 #include "core/html/shadow/MediaRemotingInterstitial.h"
10
11 namespace blink {
12
13 class MediaRemotingDisableButtonElement final : public HTMLInputElement {
14 public:
15 explicit MediaRemotingDisableButtonElement(
16 MediaRemotingInterstitialElements&);
17
18 void onShown();
19 void onHidden();
20 HTMLVideoElement& videoElement() const {
21 return m_interstitialElements->videoElement();
22 }
mlamouri (slow - plz ping) 2017/04/07 13:18:36 nit: can you move this to the cpp file?
xjz 2017/04/07 23:07:01 Done.
23
24 DECLARE_VIRTUAL_TRACE();
25
26 private:
27 class MouseEventsListener;
28
29 Member<MediaRemotingInterstitialElements> m_interstitialElements;
30 Member<MouseEventsListener> m_listener;
31 };
32
33 // ----------------------------
34
35 class MediaRemotingCastIconElement final : public HTMLInputElement {
36 public:
37 explicit MediaRemotingCastIconElement(MediaRemotingInterstitialElements&);
38 };
39
40 // ----------------------------
41
42 class MediaRemotingBackgroundImageElement final : public HTMLInputElement {
43 public:
44 explicit MediaRemotingBackgroundImageElement(MediaRemotingInterstitial&);
45 void onPosterImageChanged();
46
47 DECLARE_VIRTUAL_TRACE();
48
49 private:
50 void show();
51 void hide();
52 Member<MediaRemotingInterstitial> m_interstitial;
53 };
54
55 } // namespace blink
56
57 #endif // MediaRemotingElements_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698