| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 void OnDisconnectedFromRemoteDevice(double t); | 213 void OnDisconnectedFromRemoteDevice(double t); |
| 214 void SuspendForRemote(); | 214 void SuspendForRemote(); |
| 215 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame, | 215 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame, |
| 216 PipelineStatus status); | 216 PipelineStatus status); |
| 217 gfx::Size GetCanvasSize() const; | 217 gfx::Size GetCanvasSize() const; |
| 218 void SetDeviceScaleFactor(float scale_factor); | 218 void SetDeviceScaleFactor(float scale_factor); |
| 219 void SetUseFallbackPath(bool use_fallback_path); | 219 void SetUseFallbackPath(bool use_fallback_path); |
| 220 #endif | 220 #endif |
| 221 | 221 |
| 222 // MediaObserverClient implementation. | 222 // MediaObserverClient implementation. |
| 223 void SwitchRenderer(bool disable_pipeline_auto_suspend) override; | 223 void SwitchRenderer(bool is_rendered_remotely) override; |
| 224 void ActivateViewportIntersectionMonitoring(bool activate) override; | 224 void ActivateViewportIntersectionMonitoring(bool activate) override; |
| 225 | 225 |
| 226 // Called from WebMediaPlayerCast. | 226 // Called from WebMediaPlayerCast. |
| 227 // TODO(hubbe): WMPI_CAST make private. | 227 // TODO(hubbe): WMPI_CAST make private. |
| 228 void OnPipelineSeeked(bool time_updated); | 228 void OnPipelineSeeked(bool time_updated); |
| 229 | 229 |
| 230 // Distinct states that |delegate_| can be in. (Public for testing.) | 230 // Distinct states that |delegate_| can be in. (Public for testing.) |
| 231 enum class DelegateState { | 231 enum class DelegateState { |
| 232 GONE, | 232 GONE, |
| 233 PLAYING, | 233 PLAYING, |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 | 711 |
| 712 gfx::Size last_uploaded_frame_size_; | 712 gfx::Size last_uploaded_frame_size_; |
| 713 base::TimeDelta last_uploaded_frame_timestamp_; | 713 base::TimeDelta last_uploaded_frame_timestamp_; |
| 714 | 714 |
| 715 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 715 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 716 }; | 716 }; |
| 717 | 717 |
| 718 } // namespace media | 718 } // namespace media |
| 719 | 719 |
| 720 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 720 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |