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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 blink::WebAudioSourceProvider* getAudioSourceProvider() override; | 174 blink::WebAudioSourceProvider* getAudioSourceProvider() override; |
175 | 175 |
176 void setContentDecryptionModule( | 176 void setContentDecryptionModule( |
177 blink::WebContentDecryptionModule* cdm, | 177 blink::WebContentDecryptionModule* cdm, |
178 blink::WebContentDecryptionModuleResult result) override; | 178 blink::WebContentDecryptionModuleResult result) override; |
179 | 179 |
180 bool supportsOverlayFullscreenVideo() override; | 180 bool supportsOverlayFullscreenVideo() override; |
181 void enteredFullscreen() override; | 181 void enteredFullscreen() override; |
182 void exitedFullscreen() override; | 182 void exitedFullscreen() override; |
183 | 183 |
| 184 // These are called when any ancestor enters/exits full screen. We may switch |
| 185 // the media renderer with these calls. |
| 186 void ancestorEnteredFullscreen() override; |
| 187 void ancestorExitedFullscreen() override; |
| 188 |
184 // WebMediaPlayerDelegate::Observer implementation. | 189 // WebMediaPlayerDelegate::Observer implementation. |
185 void OnHidden() override; | 190 void OnHidden() override; |
186 void OnShown() override; | 191 void OnShown() override; |
187 void OnSuspendRequested(bool must_suspend) override; | 192 void OnSuspendRequested(bool must_suspend) override; |
188 void OnPlay() override; | 193 void OnPlay() override; |
189 void OnPause() override; | 194 void OnPause() override; |
190 void OnVolumeMultiplierUpdate(double multiplier) override; | 195 void OnVolumeMultiplierUpdate(double multiplier) override; |
191 | 196 |
192 #if defined(OS_ANDROID) // WMPI_CAST | 197 #if defined(OS_ANDROID) // WMPI_CAST |
193 bool isRemote() const override; | 198 bool isRemote() const override; |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 // Number of times we've reached BUFFERING_HAVE_NOTHING during playback. | 552 // Number of times we've reached BUFFERING_HAVE_NOTHING during playback. |
548 int underflow_count_; | 553 int underflow_count_; |
549 std::unique_ptr<base::ElapsedTimer> underflow_timer_; | 554 std::unique_ptr<base::ElapsedTimer> underflow_timer_; |
550 | 555 |
551 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 556 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
552 }; | 557 }; |
553 | 558 |
554 } // namespace media | 559 } // namespace media |
555 | 560 |
556 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 561 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |