OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 void SetContentDecryptionModule( | 184 void SetContentDecryptionModule( |
185 blink::WebContentDecryptionModule* cdm, | 185 blink::WebContentDecryptionModule* cdm, |
186 blink::WebContentDecryptionModuleResult result) override; | 186 blink::WebContentDecryptionModuleResult result) override; |
187 | 187 |
188 bool SupportsOverlayFullscreenVideo() override; | 188 bool SupportsOverlayFullscreenVideo() override; |
189 void EnteredFullscreen() override; | 189 void EnteredFullscreen() override; |
190 void ExitedFullscreen() override; | 190 void ExitedFullscreen() override; |
191 void BecameDominantVisibleContent(bool isDominant) override; | 191 void BecameDominantVisibleContent(bool isDominant) override; |
192 void SetIsEffectivelyFullscreen(bool isEffectivelyFullscreen) override; | 192 void SetIsEffectivelyFullscreen(bool isEffectivelyFullscreen) override; |
193 | 193 |
194 void SetPoster(const blink::WebURL& poster) override; | |
195 | |
196 // WebMediaPlayerDelegate::Observer implementation. | 194 // WebMediaPlayerDelegate::Observer implementation. |
197 void OnFrameHidden() override; | 195 void OnFrameHidden() override; |
198 void OnFrameClosed() override; | 196 void OnFrameClosed() override; |
199 void OnFrameShown() override; | 197 void OnFrameShown() override; |
200 void OnIdleTimeout() override; | 198 void OnIdleTimeout() override; |
201 void OnPlay() override; | 199 void OnPlay() override; |
202 void OnPause() override; | 200 void OnPause() override; |
203 void OnVolumeMultiplierUpdate(double multiplier) override; | 201 void OnVolumeMultiplierUpdate(double multiplier) override; |
204 void OnBecamePersistentVideo(bool value) override; | 202 void OnBecamePersistentVideo(bool value) override; |
205 | 203 |
206 void RequestRemotePlaybackDisabled(bool disabled) override; | 204 void RequestRemotePlaybackDisabled(bool disabled) override; |
207 #if defined(OS_ANDROID) // WMPI_CAST | 205 #if defined(OS_ANDROID) // WMPI_CAST |
208 bool IsRemote() const override; | 206 bool IsRemote() const override; |
209 void RequestRemotePlayback() override; | 207 void RequestRemotePlayback() override; |
210 void RequestRemotePlaybackControl() override; | 208 void RequestRemotePlaybackControl() override; |
211 void RequestRemotePlaybackStop() override; | 209 void RequestRemotePlaybackStop() override; |
212 | 210 |
213 void SetMediaPlayerManager( | 211 void SetMediaPlayerManager( |
214 RendererMediaPlayerManagerInterface* media_player_manager); | 212 RendererMediaPlayerManagerInterface* media_player_manager); |
215 void OnRemotePlaybackEnded(); | 213 void OnRemotePlaybackEnded(); |
216 void OnDisconnectedFromRemoteDevice(double t); | 214 void OnDisconnectedFromRemoteDevice(double t); |
217 void SuspendForRemote(); | 215 void SuspendForRemote(); |
218 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame, | 216 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame, |
219 PipelineStatus status); | 217 PipelineStatus status); |
220 gfx::Size GetCanvasSize() const; | 218 gfx::Size GetCanvasSize() const; |
221 void SetDeviceScaleFactor(float scale_factor); | 219 void SetDeviceScaleFactor(float scale_factor); |
222 void SetUseFallbackPath(bool use_fallback_path); | 220 void SetUseFallbackPath(bool use_fallback_path); |
| 221 void SetPoster(const blink::WebURL& poster) override; |
223 #endif | 222 #endif |
224 | 223 |
225 // MediaObserverClient implementation. | 224 // MediaObserverClient implementation. |
226 void SwitchRenderer(bool is_rendered_remotely) override; | 225 void SwitchRenderer(bool is_rendered_remotely) override; |
227 void ActivateViewportIntersectionMonitoring(bool activate) override; | 226 void ActivateViewportIntersectionMonitoring(bool activate) override; |
228 | 227 |
229 // Called from WebMediaPlayerCast. | 228 // Called from WebMediaPlayerCast. |
230 // TODO(hubbe): WMPI_CAST make private. | 229 // TODO(hubbe): WMPI_CAST make private. |
231 void OnPipelineSeeked(bool time_updated); | 230 void OnPipelineSeeked(bool time_updated); |
232 | 231 |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 base::TimeDelta last_uploaded_frame_timestamp_; | 715 base::TimeDelta last_uploaded_frame_timestamp_; |
717 | 716 |
718 base::CancelableCallback<void(base::TimeTicks)> frame_time_report_cb_; | 717 base::CancelableCallback<void(base::TimeTicks)> frame_time_report_cb_; |
719 | 718 |
720 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 719 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
721 }; | 720 }; |
722 | 721 |
723 } // namespace media | 722 } // namespace media |
724 | 723 |
725 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 724 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |