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

Unified Diff: third_party/WebKit/public/platform/WebMediaPlayer.h

Issue 2411553003: Notify WebMediaPlayer when its ancestor enters/exists fullscreen. (Closed)
Patch Set: Created 4 years, 2 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
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 87c058c8da7cf3760c0fa3293db6c6c03b65dd3d..26e7b7e5e041a7c09702967782ae4c3ecc798ed1 100644
--- a/third_party/WebKit/public/platform/WebMediaPlayer.h
+++ b/third_party/WebKit/public/platform/WebMediaPlayer.h
@@ -227,6 +227,16 @@ class WebMediaPlayer {
virtual void enteredFullscreen() {}
virtual void exitedFullscreen() {}
+ // Inform WebMediaPlayer when its ancestor enters full screen and the element
+ // covers most of the window.
+ virtual void enterFullWindow() {}
+ // Whether its ancestor entered full screen and the element covers most of
+ // of the window.
+ virtual bool isFullWindow() { return false; }
+ // Inform WebMediaPlayer when isFullWindow() is true and its ancestor exits
+ // full screen.
+ virtual void exitFullWindow() {}
+
virtual void enabledAudioTracksChanged(
const WebVector<TrackId>& enabledTrackIds) {}
// |selectedTrackId| is null if no track is selected.

Powered by Google App Engine
This is Rietveld 408576698