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

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

Issue 2696893002: [Blink>Media] Add heuristic for dominant video detection for Android (Closed)
Patch Set: nits Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/core/html/MediaCustomControlsFullscreenDetectorTest.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 dd88518fb0a277a27ae0762c2e3c46d9364c81f4..85a95762e065fcfe7aef3f770e9f3ecac0f99d5b 100644
--- a/third_party/WebKit/public/platform/WebMediaPlayer.h
+++ b/third_party/WebKit/public/platform/WebMediaPlayer.h
@@ -272,6 +272,14 @@ class WebMediaPlayer {
// WebMediaPlayerClient::activateViewportIntersectionMonitoring().
virtual void becameDominantVisibleContent(bool isDominant) {}
+ // Inform WebMediaPlayer when the element starts/stops being the effectively
+ // fullscreen video, i.e. being the fullscreen element or child of the
+ // fullscreen element, and being dominant in the viewport.
+ //
+ // TODO(zqzhang): merge with becameDominantVisibleContent(). See
+ // https://crbug.com/696211
+ virtual void setIsEffectivelyFullscreen(bool) {}
+
virtual void enabledAudioTracksChanged(
const WebVector<TrackId>& enabledTrackIds) {}
// |selectedTrackId| is null if no track is selected.
« no previous file with comments | « third_party/WebKit/Source/core/html/MediaCustomControlsFullscreenDetectorTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698