Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MediaRemotingInterstitial_h | 5 #ifndef MediaRemotingInterstitial_h |
| 6 #define MediaRemotingInterstitial_h | 6 #define MediaRemotingInterstitial_h |
| 7 | 7 |
| 8 #include "core/html/HTMLDivElement.h" | 8 #include "core/html/HTMLDivElement.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 27 // | (-internal-media-remoting-cast-text-message) | 27 // | (-internal-media-remoting-cast-text-message) |
| 28 // \-MediaRemotingExitButtonElement | 28 // \-MediaRemotingExitButtonElement |
| 29 // (-internal-media-remoting-disable-button) | 29 // (-internal-media-remoting-disable-button) |
| 30 class MediaRemotingInterstitial final : public HTMLDivElement { | 30 class MediaRemotingInterstitial final : public HTMLDivElement { |
| 31 public: | 31 public: |
| 32 explicit MediaRemotingInterstitial(HTMLVideoElement&); | 32 explicit MediaRemotingInterstitial(HTMLVideoElement&); |
| 33 | 33 |
| 34 // Show/Hide Media Remoting interstitial. | 34 // Show/Hide Media Remoting interstitial. |
| 35 void Show(); | 35 void Show(); |
| 36 void Hide(); | 36 void Hide(); |
| 37 | |
| 37 void OnPosterImageChanged(); | 38 void OnPosterImageChanged(); |
| 38 | 39 |
| 39 HTMLVideoElement& GetVideoElement() const { return *video_element_; } | 40 HTMLVideoElement& GetVideoElement() const { return *video_element_; } |
| 40 | 41 |
| 41 DECLARE_VIRTUAL_TRACE(); | 42 DECLARE_VIRTUAL_TRACE(); |
| 42 | 43 |
| 43 private: | 44 private: |
| 44 // Node override. | 45 // Node override. |
| 45 bool IsMediaRemotingInterstitial() const override { return true; } | 46 bool IsMediaRemotingInterstitial() const override { return true; } |
| 47 void ToggleInterstitialTimerFired(TimerBase*); | |
|
kinuko
2017/04/19 06:13:43
If this one's not overrides please don't interleav
xjz
2017/04/19 17:11:20
Done.
| |
| 48 void DidMoveToNewDocument(Document&) override; | |
| 46 | 49 |
| 50 bool is_shown_; | |
|
mlamouri (slow - plz ping)
2017/04/19 16:17:19
nit: initialise the bool here. Also, add a comment
xjz
2017/04/19 17:11:20
Done. Added comments. This boolean indicates wheth
| |
| 51 TaskRunnerTimer<MediaRemotingInterstitial> toggle_insterstitial_timer_; | |
| 47 Member<HTMLVideoElement> video_element_; | 52 Member<HTMLVideoElement> video_element_; |
| 48 Member<HTMLImageElement> background_image_; | 53 Member<HTMLImageElement> background_image_; |
| 49 Member<MediaRemotingExitButtonElement> exit_button_; | 54 Member<MediaRemotingExitButtonElement> exit_button_; |
| 50 Member<MediaRemotingCastIconElement> cast_icon_; | 55 Member<MediaRemotingCastIconElement> cast_icon_; |
| 51 Member<MediaRemotingCastMessageElement> cast_text_message_; | 56 Member<MediaRemotingCastMessageElement> cast_text_message_; |
| 52 }; | 57 }; |
| 53 | 58 |
| 54 } // namespace | 59 } // namespace |
| 55 | 60 |
| 56 #endif // MediaRemotingInterstitial_h | 61 #endif // MediaRemotingInterstitial_h |
| OLD | NEW |