| 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 | 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. |
| 221 void ScheduleRestart(); | 221 void ScheduleRestart(); |
| 222 | 222 |
| 223 // Called when requests to activate monitoring changes on viewport |
| 224 // intersection. |
| 225 void ActivateViewportIntersectionMonitoring(bool activate); |
| 226 |
| 223 // Distinct states that |delegate_| can be in. | 227 // Distinct states that |delegate_| can be in. |
| 224 // TODO(sandersd): This should move into WebMediaPlayerDelegate. | 228 // TODO(sandersd): This should move into WebMediaPlayerDelegate. |
| 225 // (Public for testing.) | 229 // (Public for testing.) |
| 226 enum class DelegateState { | 230 enum class DelegateState { |
| 227 GONE, | 231 GONE, |
| 228 PLAYING, | 232 PLAYING, |
| 229 PAUSED, | 233 PAUSED, |
| 230 ENDED, | 234 ENDED, |
| 231 }; | 235 }; |
| 232 | 236 |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 | 582 |
| 579 // Whether the player is currently in autoplay muted state. | 583 // Whether the player is currently in autoplay muted state. |
| 580 bool autoplay_muted_ = false; | 584 bool autoplay_muted_ = false; |
| 581 | 585 |
| 582 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 586 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 583 }; | 587 }; |
| 584 | 588 |
| 585 } // namespace media | 589 } // namespace media |
| 586 | 590 |
| 587 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 591 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |