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

Unified Diff: media/blink/webmediaplayer_impl.cc

Issue 2538853002: Media Remoting: Draw remoting interstitial on poster image. (Closed)
Patch Set: Addressed nasko's comments. Created 3 years, 11 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 | « media/blink/webmediaplayer_impl.h ('k') | media/remoting/remote_renderer_impl.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 654ba89050299e2a31ec49243c759482815edc6c..6d0ff85b1e65532d7fe0802d87b8e21d59b3aba5 100644
--- a/media/blink/webmediaplayer_impl.cc
+++ b/media/blink/webmediaplayer_impl.cc
@@ -1474,15 +1474,20 @@ void WebMediaPlayerImpl::SetDeviceScaleFactor(float scale_factor) {
cast_impl_.SetDeviceScaleFactor(scale_factor);
}
-void WebMediaPlayerImpl::setPoster(const blink::WebURL& poster) {
- cast_impl_.setPoster(poster);
-}
-
void WebMediaPlayerImpl::SetUseFallbackPath(bool use_fallback_path) {
use_fallback_path_ = use_fallback_path;
}
#endif // defined(OS_ANDROID) // WMPI_CAST
+void WebMediaPlayerImpl::setPoster(const blink::WebURL& poster) {
+#if defined(OS_ANDROID)
+ cast_impl_.setPoster(poster);
+#endif
+
+ if (observer_)
+ observer_->OnSetPoster(poster);
+}
+
void WebMediaPlayerImpl::DataSourceInitialized(bool success) {
DVLOG(1) << __func__;
DCHECK(main_task_runner_->BelongsToCurrentThread());
« no previous file with comments | « media/blink/webmediaplayer_impl.h ('k') | media/remoting/remote_renderer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698