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

Unified Diff: media/blink/webmediaplayer_impl.h

Issue 2556333002: Detect change on video/viewport intersection when rendered remotely (Closed)
Patch Set: Add API to WebMediaPlayerClient. 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
Index: media/blink/webmediaplayer_impl.h
diff --git a/media/blink/webmediaplayer_impl.h b/media/blink/webmediaplayer_impl.h
index 6e01840d71c6e0e05129c139d91354fd04f2f4d9..929b5fda57a859fae666998887b954c18eac2d75 100644
--- a/media/blink/webmediaplayer_impl.h
+++ b/media/blink/webmediaplayer_impl.h
@@ -220,6 +220,9 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
// then seek to resume playback at the current position.
void ScheduleRestart();
+ // Called when media starts/stops being displayed remotely.
+ void OnRemoteDisplayChanged(bool is_displayed_remotely);
miu 2016/12/10 02:18:37 naming nit: s/rendering/display/ in method name, a
xjz 2016/12/12 18:58:45 Done.
+
// Distinct states that |delegate_| can be in.
// TODO(sandersd): This should move into WebMediaPlayerDelegate.
// (Public for testing.)

Powered by Google App Engine
This is Rietveld 408576698