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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 unsigned int texture, | 171 unsigned int texture, |
172 bool premultiply_alpha, | 172 bool premultiply_alpha, |
173 bool flip_y) override; | 173 bool flip_y) override; |
174 | 174 |
175 blink::WebAudioSourceProvider* getAudioSourceProvider() override; | 175 blink::WebAudioSourceProvider* getAudioSourceProvider() override; |
176 | 176 |
177 void setContentDecryptionModule( | 177 void setContentDecryptionModule( |
178 blink::WebContentDecryptionModule* cdm, | 178 blink::WebContentDecryptionModule* cdm, |
179 blink::WebContentDecryptionModuleResult result) override; | 179 blink::WebContentDecryptionModuleResult result) override; |
180 | 180 |
| 181 void SetMaxKeyframeDistanceToDisableBackgroundVideo(base::TimeDelta distance); |
| 182 |
181 void SetEnableFullscreenOverlays(bool enable_overlays); | 183 void SetEnableFullscreenOverlays(bool enable_overlays); |
182 bool supportsOverlayFullscreenVideo() override; | 184 bool supportsOverlayFullscreenVideo() override; |
183 void enteredFullscreen() override; | 185 void enteredFullscreen() override; |
184 void exitedFullscreen() override; | 186 void exitedFullscreen() override; |
185 void becameDominantVisibleContent(bool isDominant) override; | 187 void becameDominantVisibleContent(bool isDominant) override; |
186 | 188 |
187 void setPoster(const blink::WebURL& poster) override; | 189 void setPoster(const blink::WebURL& poster) override; |
188 | 190 |
189 // WebMediaPlayerDelegate::Observer implementation. | 191 // WebMediaPlayerDelegate::Observer implementation. |
190 void OnHidden() override; | 192 void OnHidden() override; |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 | 647 |
646 // Pipeline statistics overridden by tests. | 648 // Pipeline statistics overridden by tests. |
647 base::Optional<PipelineStatistics> pipeline_statistics_for_test_; | 649 base::Optional<PipelineStatistics> pipeline_statistics_for_test_; |
648 | 650 |
649 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 651 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
650 }; | 652 }; |
651 | 653 |
652 } // namespace media | 654 } // namespace media |
653 | 655 |
654 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 656 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |