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

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

Issue 2511143006: Detect change on the intersection of video and viewport. (Closed)
Patch Set: Addressed comments from PS#2. Created 4 years, 1 month 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 75db1339d060c067c15e633cd2baa69f5af61843..0f4322ca0fdcddab1889145def5b488e416f4227 100644
--- a/third_party/WebKit/public/platform/WebMediaPlayer.h
+++ b/third_party/WebKit/public/platform/WebMediaPlayer.h
@@ -228,6 +228,10 @@ class WebMediaPlayer {
virtual void enteredFullscreen() {}
virtual void exitedFullscreen() {}
+ // Inform WebmediaPlayer when the element starts/stops stably filling most of
+ // the viewport.
+ virtual void stablyFilledMostViewport(bool isMostlyFillingViewport) {}
+
virtual void enabledAudioTracksChanged(
const WebVector<TrackId>& enabledTrackIds) {}
// |selectedTrackId| is null if no track is selected.

Powered by Google App Engine
This is Rietveld 408576698