| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 189 |
| 190 void SetMediaPlayerManager( | 190 void SetMediaPlayerManager( |
| 191 RendererMediaPlayerManagerInterface* media_player_manager); | 191 RendererMediaPlayerManagerInterface* media_player_manager); |
| 192 void OnRemotePlaybackEnded(); | 192 void OnRemotePlaybackEnded(); |
| 193 void OnDisconnectedFromRemoteDevice(double t); | 193 void OnDisconnectedFromRemoteDevice(double t); |
| 194 void SuspendForRemote(); | 194 void SuspendForRemote(); |
| 195 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame, | 195 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame, |
| 196 PipelineStatus status); | 196 PipelineStatus status); |
| 197 gfx::Size GetCanvasSize() const; | 197 gfx::Size GetCanvasSize() const; |
| 198 void SetDeviceScaleFactor(float scale_factor); | 198 void SetDeviceScaleFactor(float scale_factor); |
| 199 void setPoster(const blink::WebURL& poster) override; |
| 199 #endif | 200 #endif |
| 200 | 201 |
| 201 // Called from WebMediaPlayerCast. | 202 // Called from WebMediaPlayerCast. |
| 202 // TODO(hubbe): WMPI_CAST make private. | 203 // TODO(hubbe): WMPI_CAST make private. |
| 203 void OnPipelineSeeked(bool time_updated); | 204 void OnPipelineSeeked(bool time_updated); |
| 204 | 205 |
| 205 // Distinct states that |delegate_| can be in. | 206 // Distinct states that |delegate_| can be in. |
| 206 // TODO(sandersd): This should move into WebMediaPlayerDelegate. | 207 // TODO(sandersd): This should move into WebMediaPlayerDelegate. |
| 207 // (Public for testing.) | 208 // (Public for testing.) |
| 208 enum class DelegateState { | 209 enum class DelegateState { |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 // state will be set to YES or NO respectively if a frame is available. | 501 // state will be set to YES or NO respectively if a frame is available. |
| 501 enum class CanSuspendState { UNKNOWN, YES, NO }; | 502 enum class CanSuspendState { UNKNOWN, YES, NO }; |
| 502 CanSuspendState can_suspend_state_; | 503 CanSuspendState can_suspend_state_; |
| 503 | 504 |
| 504 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 505 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 505 }; | 506 }; |
| 506 | 507 |
| 507 } // namespace media | 508 } // namespace media |
| 508 | 509 |
| 509 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 510 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |