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

Unified Diff: media/base/media_observer.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 | « no previous file | media/blink/webmediaplayer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_observer.h
diff --git a/media/base/media_observer.h b/media/base/media_observer.h
index 101badf9d27a61cdf42a30e892b646c7f6ac81ec..ce81e3bb15ca4bd799edc60ff960340f04eb199d 100644
--- a/media/base/media_observer.h
+++ b/media/base/media_observer.h
@@ -20,6 +20,10 @@ class MEDIA_EXPORT MediaObserver {
virtual void OnEnteredFullscreen() = 0;
virtual void OnExitedFullscreen() = 0;
+ // Called when the media element starts/stops being the dominant visible
+ // content.
+ virtual void OnBecameDominantVisibleContent(bool is_dominant) {}
+
// Called when CDM is attached to the media element. The |cdm_context| is
// only guaranteed to be valid in this call.
virtual void OnSetCdm(CdmContext* cdm_context) = 0;
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698