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 enteredFullscreen() override; | 184 void enteredFullscreen() override; |
185 void exitedFullscreen() override; | 185 void exitedFullscreen() override; |
186 | 186 |
187 // WebMediaPlayerDelegate::Observer implementation. | 187 // WebMediaPlayerDelegate::Observer implementation. |
188 void OnHidden() override; | 188 void OnHidden() override; |
189 void OnShown() override; | 189 void OnShown() override; |
190 bool OnSuspendRequested(bool must_suspend) override; | 190 bool OnSuspendRequested(bool must_suspend) override; |
191 void OnPlay() override; | 191 void OnPlay() override; |
192 void OnPause() override; | 192 void OnPause() override; |
193 void OnVolumeMultiplierUpdate(double multiplier) override; | 193 void OnVolumeMultiplierUpdate(double multiplier) override; |
194 void setPoster(const blink::WebURL& poster) override; | |
xhwang
2016/12/15 18:35:23
This is not part of WebMediaPlayerDelegate::Observ
xjz
2016/12/22 23:21:11
Done in PS #6.
| |
194 | 195 |
195 #if defined(OS_ANDROID) // WMPI_CAST | 196 #if defined(OS_ANDROID) // WMPI_CAST |
196 bool isRemote() const override; | 197 bool isRemote() const override; |
197 void requestRemotePlayback() override; | 198 void requestRemotePlayback() override; |
198 void requestRemotePlaybackControl() override; | 199 void requestRemotePlaybackControl() override; |
199 void requestRemotePlaybackStop() override; | 200 void requestRemotePlaybackStop() override; |
200 | 201 |
201 void SetMediaPlayerManager( | 202 void SetMediaPlayerManager( |
202 RendererMediaPlayerManagerInterface* media_player_manager); | 203 RendererMediaPlayerManagerInterface* media_player_manager); |
203 void OnRemotePlaybackEnded(); | 204 void OnRemotePlaybackEnded(); |
204 void OnDisconnectedFromRemoteDevice(double t); | 205 void OnDisconnectedFromRemoteDevice(double t); |
205 void SuspendForRemote(); | 206 void SuspendForRemote(); |
206 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame, | 207 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame, |
207 PipelineStatus status); | 208 PipelineStatus status); |
208 gfx::Size GetCanvasSize() const; | 209 gfx::Size GetCanvasSize() const; |
209 void SetDeviceScaleFactor(float scale_factor); | 210 void SetDeviceScaleFactor(float scale_factor); |
210 void setPoster(const blink::WebURL& poster) override; | |
211 void SetUseFallbackPath(bool use_fallback_path); | 211 void SetUseFallbackPath(bool use_fallback_path); |
212 #endif | 212 #endif |
213 | 213 |
214 // Called from WebMediaPlayerCast. | 214 // Called from WebMediaPlayerCast. |
215 // TODO(hubbe): WMPI_CAST make private. | 215 // TODO(hubbe): WMPI_CAST make private. |
216 void OnPipelineSeeked(bool time_updated); | 216 void OnPipelineSeeked(bool time_updated); |
217 | 217 |
218 // Restart the player/pipeline as soon as possible. This will destroy the | 218 // Restart the player/pipeline as soon as possible. This will destroy the |
219 // current renderer, if any, and create a new one via the RendererFactory; and | 219 // current renderer, if any, and create a new one via the RendererFactory; and |
220 // then seek to resume playback at the current position. | 220 // then seek to resume playback at the current position. |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
579 | 579 |
580 // Whether the player is currently in autoplay muted state. | 580 // Whether the player is currently in autoplay muted state. |
581 bool autoplay_muted_ = false; | 581 bool autoplay_muted_ = false; |
582 | 582 |
583 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 583 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
584 }; | 584 }; |
585 | 585 |
586 } // namespace media | 586 } // namespace media |
587 | 587 |
588 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 588 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |