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

Unified Diff: content/browser/media/android/browser_media_player_manager.cc

Issue 246523006: Force a second video to exit fullscreen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed unnecessary change Created 6 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/android/browser_media_player_manager.cc
diff --git a/content/browser/media/android/browser_media_player_manager.cc b/content/browser/media/android/browser_media_player_manager.cc
index ccc548e33ead1f253688ddd8b5ff245ab5f12340..279a74ce05eb3804e0028241495c734caf59add5 100644
--- a/content/browser/media/android/browser_media_player_manager.cc
+++ b/content/browser/media/android/browser_media_player_manager.cc
@@ -480,6 +480,10 @@ void BrowserMediaPlayerManager::OnEnterFullscreen(int player_id) {
// fullscreen video, we just ignore the second one.
fullscreen_player_id_ = player_id;
video_view_.reset(new ContentVideoView(this));
+ } else {
+ // Force the second video to exit fullscreen.
+ Send(new MediaPlayerMsg_DidEnterFullscreen(routing_id(), player_id));
+ Send(new MediaPlayerMsg_DidExitFullscreen(routing_id(), player_id));
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698