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

Issue 182613006: Remove media controls when not in use. (Closed)

Created:
6 years, 9 months ago by Fredrik Öhrn
Modified:
6 years, 5 months ago
CC:
blink-reviews, nessy, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, adamk+blink_chromium.org, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Remove media controls when not in use. To avoid ambiguity remove the meda controls when the controls attribute is false rather than just hiding them. In addition there is no need to force enable the controls for fullscreen video on Android. BUG=347105

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add shouldDisplayControls and fix overlay logic #

Total comments: 1

Patch Set 3 : Remove overlayFullscreenVideoEnabled test #

Total comments: 3

Patch Set 4 : Track visibility in controls. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -8 lines) Patch
M Source/core/html/HTMLMediaElement.h View 1 1 chunk +5 lines, -1 line 2 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 6 chunks +10 lines, -5 lines 0 comments Download
M Source/core/html/shadow/MediaControlElements.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/html/shadow/MediaControlElements.cpp View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M Source/core/html/shadow/MediaControlsAndroid.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/html/shadow/MediaControlsAndroid.cpp View 1 2 3 1 chunk +14 lines, -0 lines 4 comments Download
M Source/web/ContextMenuClientImpl.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 26 (0 generated)
Fredrik Öhrn
Adding qinmin for Android and adamk, abarth becasue it looks like you guys have reviewed ...
6 years, 9 months ago (2014-02-27 12:31:51 UTC) #1
adamk
-adams, +acolwell who's the media expert
6 years, 9 months ago (2014-02-27 17:13:41 UTC) #2
qinmin
no lgtm https://codereview.chromium.org/182613006/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/182613006/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode2307 Source/core/html/HTMLMediaElement.cpp:2307: // Always show controls when in full ...
6 years, 9 months ago (2014-02-27 18:07:40 UTC) #3
qinmin
not lgtm On 2014/02/27 18:07:40, qinmin wrote: > no lgtm > > https://codereview.chromium.org/182613006/diff/1/Source/core/html/HTMLMediaElement.cpp > File ...
6 years, 9 months ago (2014-02-27 18:07:56 UTC) #4
qinmin
There is a fullscreen mode that android will use html5 media controls, currently that is ...
6 years, 9 months ago (2014-02-27 18:12:02 UTC) #5
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/182613006/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/182613006/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode2309 Source/core/html/HTMLMediaElement.cpp:2309: if (isFullscreen()) This and the "script disabled" code above ...
6 years, 9 months ago (2014-02-27 18:35:22 UTC) #6
Fredrik Öhrn
On 2014/02/27 18:12:02, qinmin wrote: > There is a fullscreen mode that android will use ...
6 years, 9 months ago (2014-02-28 10:56:50 UTC) #7
Fredrik Öhrn
On 2014/02/27 18:35:22, acolwell wrote: > https://codereview.chromium.org/182613006/diff/1/Source/core/html/HTMLMediaElement.cpp > File Source/core/html/HTMLMediaElement.cpp (right): > > https://codereview.chromium.org/182613006/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode2309 > ...
6 years, 9 months ago (2014-02-28 11:05:29 UTC) #8
qinmin
https://codereview.chromium.org/182613006/diff/20001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/182613006/diff/20001/Source/core/html/HTMLMediaElement.cpp#newcode2312 Source/core/html/HTMLMediaElement.cpp:2312: if (isFullscreen() && !RuntimeEnabledFeatures::overlayFullscreenVideoEnabled()) overlayFullscreenVideoEnabled is enabled by default ...
6 years, 9 months ago (2014-02-28 17:12:44 UTC) #9
Fredrik Öhrn
On 2014/02/28 17:12:44, qinmin wrote: > https://codereview.chromium.org/182613006/diff/20001/Source/core/html/HTMLMediaElement.cpp > File Source/core/html/HTMLMediaElement.cpp (right): > > https://codereview.chromium.org/182613006/diff/20001/Source/core/html/HTMLMediaElement.cpp#newcode2312 > ...
6 years, 9 months ago (2014-03-04 14:14:34 UTC) #10
acolwell GONE FROM CHROMIUM
Most of the changes look good. Just one remaining issue I'd like you to fix. ...
6 years, 9 months ago (2014-03-05 00:09:49 UTC) #11
Fredrik Öhrn
https://codereview.chromium.org/182613006/diff/40001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/182613006/diff/40001/Source/core/html/HTMLMediaElement.cpp#newcode3605 Source/core/html/HTMLMediaElement.cpp:3605: userAgentShadowRoot()->removeChild(mediaControls()); On 2014/03/05 00:09:50, acolwell wrote: > This still ...
6 years, 9 months ago (2014-03-06 10:20:16 UTC) #12
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/182613006/diff/40001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/182613006/diff/40001/Source/core/html/HTMLMediaElement.cpp#newcode3605 Source/core/html/HTMLMediaElement.cpp:3605: userAgentShadowRoot()->removeChild(mediaControls()); On 2014/03/06 10:20:16, Fredrik Öhrn wrote: > On ...
6 years, 9 months ago (2014-03-06 16:30:56 UTC) #13
Fredrik Öhrn
On 2014/03/06 16:30:56, acolwell wrote: > https://codereview.chromium.org/182613006/diff/40001/Source/core/html/HTMLMediaElement.cpp > File Source/core/html/HTMLMediaElement.cpp (right): > > https://codereview.chromium.org/182613006/diff/40001/Source/core/html/HTMLMediaElement.cpp#newcode3605 > ...
6 years, 9 months ago (2014-03-06 17:51:40 UTC) #14
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/182613006/diff/60001/Source/core/html/shadow/MediaControlsAndroid.cpp File Source/core/html/shadow/MediaControlsAndroid.cpp (right): https://codereview.chromium.org/182613006/diff/60001/Source/core/html/shadow/MediaControlsAndroid.cpp#newcode79 Source/core/html/shadow/MediaControlsAndroid.cpp:79: m_overlayPlayButton->updateDisplayType(); nit: It seems like you could unconditionally hide ...
6 years, 9 months ago (2014-03-06 19:21:54 UTC) #15
acolwell GONE FROM CHROMIUM
On 2014/03/06 17:51:40, Fredrik Öhrn wrote: > On 2014/03/06 16:30:56, acolwell wrote: > > > ...
6 years, 9 months ago (2014-03-06 19:28:29 UTC) #16
Fredrik Öhrn
https://codereview.chromium.org/182613006/diff/60001/Source/core/html/shadow/MediaControlsAndroid.cpp File Source/core/html/shadow/MediaControlsAndroid.cpp (right): https://codereview.chromium.org/182613006/diff/60001/Source/core/html/shadow/MediaControlsAndroid.cpp#newcode85 Source/core/html/shadow/MediaControlsAndroid.cpp:85: m_overlayPlayButton->updateDisplayType(); On 2014/03/06 19:21:54, acolwell wrote: > It seems ...
6 years, 9 months ago (2014-03-07 09:45:44 UTC) #17
Fredrik Öhrn
On 2014/03/07 09:45:44, Fredrik Öhrn wrote: > On 2014/03/06 19:21:54, acolwell wrote: > > It ...
6 years, 9 months ago (2014-03-12 12:59:50 UTC) #18
acolwell GONE FROM CHROMIUM
On 2014/03/12 12:59:50, Fredrik Öhrn wrote: > On 2014/03/07 09:45:44, Fredrik Öhrn wrote: > > ...
6 years, 9 months ago (2014-03-12 13:52:16 UTC) #19
philipj_slow
I like the shouldDisplayControls() clarification! As for making MediaControls::hide() really hide them, I think the ...
6 years, 9 months ago (2014-03-12 16:43:33 UTC) #20
Fredrik Öhrn
On 2014/03/12 13:52:16, acolwell_OOO_til_3-15 wrote: > > Hi. Once https://codereview.chromium.org/195473002/ lands you should rebase your ...
6 years, 9 months ago (2014-03-13 13:12:55 UTC) #21
philipj_slow
I tried out my own suggestion of hiding the whole controls in <https://codereview.chromium.org/199413008/>, does that ...
6 years, 9 months ago (2014-03-14 07:55:19 UTC) #22
philipj_slow
acolwell found a pretty big hole in that approach. Until the text track rendering is ...
6 years, 9 months ago (2014-03-18 04:12:59 UTC) #23
philipj_slow
https://codereview.chromium.org/182613006/diff/60001/Source/core/html/shadow/MediaControlsAndroid.cpp File Source/core/html/shadow/MediaControlsAndroid.cpp (right): https://codereview.chromium.org/182613006/diff/60001/Source/core/html/shadow/MediaControlsAndroid.cpp#newcode79 Source/core/html/shadow/MediaControlsAndroid.cpp:79: m_overlayPlayButton->updateDisplayType(); On 2014/03/06 19:21:54, acolwell wrote: > nit: It ...
6 years, 9 months ago (2014-03-18 04:14:12 UTC) #24
Fredrik Öhrn
I've made a new review for the controls attribute fix alone to get it rolling: ...
6 years, 5 months ago (2014-06-27 13:56:22 UTC) #25
Fredrik Öhrn
6 years, 5 months ago (2014-07-01 13:11:46 UTC) #26
Message was sent while issue was closed.
New simpler solution posted in https://codereview.chromium.org/363563007/

Powered by Google App Engine
This is Rietveld 408576698