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

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

Issue 2475643004: Monitor the intersection of video and viewport. (Closed)
Patch Set: Add ElementViewportRatioObserver. 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 87c058c8da7cf3760c0fa3293db6c6c03b65dd3d..3f477272e85c35cd60c9f82fe8479ff6e06742ab 100644
--- a/third_party/WebKit/public/platform/WebMediaPlayer.h
+++ b/third_party/WebKit/public/platform/WebMediaPlayer.h
@@ -226,6 +226,8 @@ class WebMediaPlayer {
// Inform WebMediaPlayer when the element has entered/exited fullscreen.
virtual void enteredFullscreen() {}
virtual void exitedFullscreen() {}
+ // Inform WebMediaPlayer when the video/viewport ratio changed.
+ virtual void videoViewportRatioChanged(double ratio) {}
miu 2016/11/09 22:02:08 This value was a float type in the intersection/vi
xjz 2016/11/11 01:07:29 Done. Changed to float.
virtual void enabledAudioTracksChanged(
const WebVector<TrackId>& enabledTrackIds) {}

Powered by Google App Engine
This is Rietveld 408576698