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

Unified Diff: media/blink/webmediaplayer_impl.cc

Issue 2475643004: Monitor the intersection of video and viewport. (Closed)
Patch Set: Fix trybots failure. 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
« no previous file with comments | « media/blink/webmediaplayer_impl.h ('k') | media/remoting/remoting_renderer_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webmediaplayer_impl.cc
diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc
index 32d5a896e44b37814eeb5ad2fc33cdfc523e9075..bdc35f6fe1cd576cab3303241d6d96be263684fb 100644
--- a/media/blink/webmediaplayer_impl.cc
+++ b/media/blink/webmediaplayer_impl.cc
@@ -361,6 +361,15 @@ void WebMediaPlayerImpl::exitedFullscreen() {
observer_->OnExitedFullscreen();
}
+void WebMediaPlayerImpl::videoViewportIntersectionChanged(
+ const blink::WebMediaPlayer::ViewportIntersectionInfo& info) {
+ MediaObserver::ViewportIntersectionInfo intersect_info;
+ intersect_info.root_rect = info.rootRect;
+ intersect_info.intersect_rect = info.intersectRect;
+ if (observer_)
+ observer_->OnVideoViewportIntersectionChanged(intersect_info);
+}
+
void WebMediaPlayerImpl::DoLoad(LoadType load_type,
const blink::WebURL& url,
CORSMode cors_mode) {
« no previous file with comments | « media/blink/webmediaplayer_impl.h ('k') | media/remoting/remoting_renderer_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698