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

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. 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..2b01f6a5964df3ecd440449f0c806b0988b81079 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
xhwang 2016/11/30 18:13:09 nit: WebMediaPlayer
xjz 2016/11/30 18:58:16 Done.
+ // the viewport.
+ virtual void stablyFilledViewport(bool isMostlyFillingViewport) {}
xhwang 2016/11/30 18:13:09 nit: IMHO this is a bit hard to read, especially s
xhwang 2016/11/30 18:13:09 nit: Could you please clarify what "stably" and "m
Z_DONOTUSE 2016/11/30 18:48:23 How about just filledViewport(bool isMostlyFilling
xjz 2016/11/30 18:58:16 I am fine with either way, but think this one is s
xhwang 2016/11/30 19:06:21 filledViewport(bool isMostlyFillingViewport) l-g-t
miu 2016/11/30 19:56:56 I don't like filledViewport, for multiple reasons:
+
virtual void enabledAudioTracksChanged(
const WebVector<TrackId>& enabledTrackIds) {}
// |selectedTrackId| is null if no track is selected.

Powered by Google App Engine
This is Rietveld 408576698