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 | 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 bool supportsOverlayFullscreenVideo() override; | 181 bool supportsOverlayFullscreenVideo() override; |
182 void enteredFullscreen() override; | 182 void enteredFullscreen() override; |
183 void exitedFullscreen() override; | 183 void exitedFullscreen() override; |
| 184 void enterFullWindow() override; |
| 185 bool isFullWindow() override; |
| 186 void exitFullWindow() override; |
184 | 187 |
185 // WebMediaPlayerDelegate::Observer implementation. | 188 // WebMediaPlayerDelegate::Observer implementation. |
186 void OnHidden() override; | 189 void OnHidden() override; |
187 void OnShown() override; | 190 void OnShown() override; |
188 void OnSuspendRequested(bool must_suspend) override; | 191 void OnSuspendRequested(bool must_suspend) override; |
189 void OnPlay() override; | 192 void OnPlay() override; |
190 void OnPause() override; | 193 void OnPause() override; |
191 void OnVolumeMultiplierUpdate(double multiplier) override; | 194 void OnVolumeMultiplierUpdate(double multiplier) override; |
192 | 195 |
193 #if defined(OS_ANDROID) // WMPI_CAST | 196 #if defined(OS_ANDROID) // WMPI_CAST |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 base::OneShotTimer background_pause_timer_; | 550 base::OneShotTimer background_pause_timer_; |
548 | 551 |
549 // Monitors the watch time of the played content. | 552 // Monitors the watch time of the played content. |
550 std::unique_ptr<WatchTimeReporter> watch_time_reporter_; | 553 std::unique_ptr<WatchTimeReporter> watch_time_reporter_; |
551 bool is_encrypted_; | 554 bool is_encrypted_; |
552 | 555 |
553 // Number of times we've reached BUFFERING_HAVE_NOTHING during playback. | 556 // Number of times we've reached BUFFERING_HAVE_NOTHING during playback. |
554 int underflow_count_; | 557 int underflow_count_; |
555 std::unique_ptr<base::ElapsedTimer> underflow_timer_; | 558 std::unique_ptr<base::ElapsedTimer> underflow_timer_; |
556 | 559 |
| 560 // Whether the video covers most of the window when its ancestor enters full |
| 561 // screen. |
| 562 bool is_full_window_ = false; |
| 563 |
557 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 564 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
558 }; | 565 }; |
559 | 566 |
560 } // namespace media | 567 } // namespace media |
561 | 568 |
562 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 569 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |