Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: public/platform/WebMediaPlayer.h

Issue 1254613003: Let the WebMediaPlayer decide whether to use overlay video. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address Xianzhu's Comments Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebMediaPlayer.h
diff --git a/public/platform/WebMediaPlayer.h b/public/platform/WebMediaPlayer.h
index e9f7a60c782d73335f55d7520ca3591e47dbf01a..c7f0a013304e2abec4af4084a45cf4b5afd61f37 100644
--- a/public/platform/WebMediaPlayer.h
+++ b/public/platform/WebMediaPlayer.h
@@ -176,6 +176,11 @@ 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 enterFullscreen().
+ virtual bool supportsOverlayFullscreenVideo() { return false; }
// Instruct WebMediaPlayer to enter/exit fullscreen.
virtual void enterFullscreen() { }
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698