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: Source/core/html/shadow/MediaControls.cpp

Issue 1197773002: Always show "exit fullscreen" button. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: updated test expectations Created 5 years, 6 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 | « LayoutTests/virtual/android/fullscreen/compositor-touch-hit-rects-fullscreen-video-controls-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/shadow/MediaControls.cpp
diff --git a/Source/core/html/shadow/MediaControls.cpp b/Source/core/html/shadow/MediaControls.cpp
index 43d22a4cf8f2bc617013e90ffb0185038d8b74aa..888d76060961af0ccde7976e9b4514ed72563ebf 100644
--- a/Source/core/html/shadow/MediaControls.cpp
+++ b/Source/core/html/shadow/MediaControls.cpp
@@ -184,7 +184,8 @@ void MediaControls::reset()
refreshClosedCaptionsButtonVisibility();
- if (mediaElement().hasVideo() && fullscreenIsSupported(document()))
+ if ((mediaElement().hasVideo() && fullscreenIsSupported(document()))
+ || mediaElement().isFullscreen())
xhwang 2015/06/23 20:22:01 Maybe add some comment here. Otherwise it makes pe
eae 2015/06/23 20:30:45 Seconded.
liberato (no reviews please) 2015/06/23 20:37:41 third-ed. i had additional logic that i removed,
m_fullScreenButton->show();
else
m_fullScreenButton->hide();
« no previous file with comments | « LayoutTests/virtual/android/fullscreen/compositor-touch-hit-rects-fullscreen-video-controls-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698