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

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

Issue 2511143006: Detect change on the intersection of video and viewport. (Closed)
Patch Set: Rebase again. Created 4 years 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 | « third_party/WebKit/Source/web/tests/MediaElementFillingViewportTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 792328531796a3b0b2a1c7f682cfdaf51f79012e..f82ba332d088577d3da9e1947584173322edb931 100644
--- a/third_party/WebKit/public/platform/WebMediaPlayer.h
+++ b/third_party/WebKit/public/platform/WebMediaPlayer.h
@@ -229,6 +229,10 @@ class WebMediaPlayer {
virtual void enteredFullscreen() {}
virtual void exitedFullscreen() {}
+ // Inform WebMediaPlayer when the element starts/stops being the dominant
+ // visible content.
+ virtual void becameDominantVisibleContent(bool isDominant) {}
+
virtual void enabledAudioTracksChanged(
const WebVector<TrackId>& enabledTrackIds) {}
// |selectedTrackId| is null if no track is selected.
« no previous file with comments | « third_party/WebKit/Source/web/tests/MediaElementFillingViewportTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698