| Index: third_party/WebKit/public/platform/WebMediaPlayer.h
|
| diff --git a/third_party/WebKit/public/platform/WebMediaPlayer.h b/third_party/WebKit/public/platform/WebMediaPlayer.h
|
| index 9979e856dae347c8f0d7c1aa103727dd3751640c..826a5db2761c2672d8639c158246ec91940b4ae5 100644
|
| --- a/third_party/WebKit/public/platform/WebMediaPlayer.h
|
| +++ b/third_party/WebKit/public/platform/WebMediaPlayer.h
|
| @@ -105,6 +105,16 @@ public:
|
| typedef WebString TrackId;
|
| enum TrackType { TextTrack, AudioTrack, VideoTrack };
|
|
|
| + // Overlay fullscreen video can work in these modes. VideoLayerVisible will
|
| + // leave the contents of the GraphicsLayer associated with the video element
|
| + // visible, whereas VideoLayerInvisible will hide it so that only the
|
| + // controls are visible.
|
| + enum class OverlayFullscreenVideoMode {
|
| + Disabled,
|
| + VideoLayerVisible,
|
| + VideoLayerInvisible,
|
| + };
|
| +
|
| virtual ~WebMediaPlayer() { }
|
|
|
| virtual void load(LoadType, const WebMediaPlayerSource&, CORSMode) = 0;
|
| @@ -188,11 +198,8 @@ public:
|
| // Sets the poster image URL.
|
| virtual void setPoster(const WebURL& poster) { }
|
|
|
| - // Whether the WebMediaPlayer supports overlay fullscreen video mode. When
|
| - // this is true, the video layer will be removed from the layer tree when
|
| - // entering fullscreen, and the WebMediaPlayer is responsible for displaying
|
| - // the video in enteredFullscreen().
|
| - virtual bool supportsOverlayFullscreenVideo() { return false; }
|
| + // Which OverlayFullscreenVideoMode should be used in fullscren.
|
| + virtual OverlayFullscreenVideoMode getOverlayFullscreenVideoMode() { return OverlayFullscreenVideoMode::Disabled; }
|
| // Inform WebMediaPlayer when the element has entered/exited fullscreen.
|
| virtual void enteredFullscreen() { }
|
| virtual void exitedFullscreen() { }
|
|
|