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 type, | 171 unsigned int type, |
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 SetEnableFullscreenOverlays(bool enable_overlays); | |
181 bool supportsOverlayFullscreenVideo() override; | 182 bool supportsOverlayFullscreenVideo() override; |
182 void enteredFullscreen() override; | 183 void enteredFullscreen() override; |
183 void exitedFullscreen() override; | 184 void exitedFullscreen() override; |
184 void becameDominantVisibleContent(bool isDominant) override; | 185 void becameDominantVisibleContent(bool isDominant) override; |
185 | 186 |
186 // WebMediaPlayerDelegate::Observer implementation. | 187 // WebMediaPlayerDelegate::Observer implementation. |
187 void OnHidden() override; | 188 void OnHidden() override; |
188 void OnShown() override; | 189 void OnShown() override; |
189 bool OnSuspendRequested(bool must_suspend) override; | 190 bool OnSuspendRequested(bool must_suspend) override; |
190 void OnPlay() override; | 191 void OnPlay() override; |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
525 // The current overlay surface id. Populated while in fullscreen once the | 526 // The current overlay surface id. Populated while in fullscreen once the |
526 // surface is created. | 527 // surface is created. |
527 int overlay_surface_id_; | 528 int overlay_surface_id_; |
528 | 529 |
529 // If a surface is requested before it's finished being created, the request | 530 // If a surface is requested before it's finished being created, the request |
530 // is saved and satisfied once the surface is available. If the decoder does | 531 // is saved and satisfied once the surface is available. If the decoder does |
531 // not require restart to change surfaces, this is callback is kept until | 532 // not require restart to change surfaces, this is callback is kept until |
532 // cleared by the decoder. | 533 // cleared by the decoder. |
533 SurfaceCreatedCB set_surface_cb_; | 534 SurfaceCreatedCB set_surface_cb_; |
534 | 535 |
535 // Force to use SurfaceView instead of SurfaceTexture on Android. | 536 // On Android an overlay surface means using |
537 // SurfaceView instead of SurfaceTexture. | |
538 | |
539 // Force using video overlays for all uses of WMPI. | |
ddorwin
2016/12/16 19:15:18
nit: WMPI is the class, so "this class" might be b
amp
2016/12/16 19:25:03
Done.
| |
536 bool force_video_overlays_; | 540 bool force_video_overlays_; |
537 | 541 |
538 // Prevent use of SurfaceView on Android. (Ignored when | 542 // Use overlays for fullscreen video. |
539 // |force_video_overlays_| is true.) | 543 // (Implied if |force_video_overlays_| is true.) |
540 bool disable_fullscreen_video_overlays_; | 544 bool enable_fullscreen_video_overlays_; |
541 | 545 |
542 // Suppresses calls to OnPipelineError() after destruction / shutdown has been | 546 // Suppresses calls to OnPipelineError() after destruction / shutdown has been |
543 // started; prevents us from spuriously logging errors that are transient or | 547 // started; prevents us from spuriously logging errors that are transient or |
544 // unimportant. | 548 // unimportant. |
545 bool suppress_destruction_errors_; | 549 bool suppress_destruction_errors_; |
546 | 550 |
547 // State indicating if it's okay to suspend or not. Updated on the first time | 551 // State indicating if it's okay to suspend or not. Updated on the first time |
548 // OnSuspendRequested() is called. If the state is UNKNOWN, the current frame | 552 // OnSuspendRequested() is called. If the state is UNKNOWN, the current frame |
549 // from the compositor will be queried to see if suspend is supported; the | 553 // from the compositor will be queried to see if suspend is supported; the |
550 // state will be set to YES or NO respectively if a frame is available. | 554 // state will be set to YES or NO respectively if a frame is available. |
(...skipping 27 matching lines...) Expand all 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 |