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

Issue 2757323002: Prevent Media Controls from hiding when the user is interacting via the keyboard (Closed)

Created:
3 years, 9 months ago by steimel
Modified:
3 years, 8 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, mlamouri+watch-blink_chromium.org, nessy, Srirama
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent Media Controls from hiding when the user is interacting via the keyboard This CL prevents the controls from hiding by resetting the hide timer on events in two places: 1) Listening for focusin and input events on the MediaControls via defaultEventHandler, which get fired as the user tabs through the controls and as the user changes the timeline/volume sliders respectively. 2) Listening for keypress events on the media panel via adding an event listener to the panel element in MediaControlsMediaEventListener, which gets fired when the user mutes/unmutes, turns CC on/off, etc. BUG=701440 Review-Url: https://codereview.chromium.org/2757323002 Cr-Commit-Position: refs/heads/master@{#462990} Committed: https://chromium.googlesource.com/chromium/src/+/12df228997d26f76483eb438602b22897c24d094

Patch Set 1 #

Total comments: 6

Patch Set 2 : johnme@ feedback and add unit tests #

Total comments: 7

Patch Set 3 : johnme@ feedback #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -7 lines) Patch
M third_party/WebKit/Source/core/html/media/MediaControls.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControlsMediaEventListener.cpp View 1 2 3 4 chunks +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp View 1 2 3 2 chunks +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/media_controls/MediaControlsImplTest.cpp View 1 2 3 9 chunks +52 lines, -7 lines 0 comments Download

Messages

Total messages: 41 (27 generated)
steimel
PTAL :)
3 years, 9 months ago (2017-03-20 17:31:22 UTC) #5
mlamouri (slow - plz ping)
johnme@, can you take a look?
3 years, 9 months ago (2017-03-23 11:53:20 UTC) #13
steimel
friendly ping :)
3 years, 8 months ago (2017-03-30 16:55:07 UTC) #14
johnme
Looks good, thanks! Left a few questions. https://codereview.chromium.org/2757323002/diff/1/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp File third_party/WebKit/Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/2757323002/diff/1/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp#newcode908 third_party/WebKit/Source/core/html/shadow/MediaControls.cpp:908: resetHideMediaControlsTimer(); It ...
3 years, 8 months ago (2017-03-30 17:21:41 UTC) #15
mlamouri (slow - plz ping)
In addition of johnme@'s comments, can you add sweet sweet tests? :)
3 years, 8 months ago (2017-03-30 21:14:58 UTC) #16
steimel
PTAL https://codereview.chromium.org/2757323002/diff/1/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp File third_party/WebKit/Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/2757323002/diff/1/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp#newcode908 third_party/WebKit/Source/core/html/shadow/MediaControls.cpp:908: resetHideMediaControlsTimer(); On 2017/03/30 17:21:41, johnme wrote: > It ...
3 years, 8 months ago (2017-04-05 23:38:21 UTC) #18
johnme
lgtm with nits - thanks! https://codereview.chromium.org/2757323002/diff/20001/third_party/WebKit/Source/core/html/shadow/MediaControlsMediaEventListener.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlsMediaEventListener.cpp (right): https://codereview.chromium.org/2757323002/diff/20001/third_party/WebKit/Source/core/html/shadow/MediaControlsMediaEventListener.cpp#newcode47 third_party/WebKit/Source/core/html/shadow/MediaControlsMediaEventListener.cpp:47: if (m_mediaControls->panelElement()) { Nit: ...
3 years, 8 months ago (2017-04-06 17:15:28 UTC) #22
mlamouri (slow - plz ping)
lgtm https://codereview.chromium.org/2757323002/diff/20001/third_party/WebKit/Source/core/html/shadow/MediaControlsMediaEventListener.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlsMediaEventListener.cpp (right): https://codereview.chromium.org/2757323002/diff/20001/third_party/WebKit/Source/core/html/shadow/MediaControlsMediaEventListener.cpp#newcode47 third_party/WebKit/Source/core/html/shadow/MediaControlsMediaEventListener.cpp:47: if (m_mediaControls->panelElement()) { On 2017/04/06 at 17:15:28, johnme ...
3 years, 8 months ago (2017-04-07 13:21:21 UTC) #23
mlamouri (slow - plz ping)
Oh, I'm afraid you will likely need to rebase this :(
3 years, 8 months ago (2017-04-07 13:21:34 UTC) #24
steimel
PTAL. I rebased yesterday afternoon, not sure if the potential conflict you're thinking of happened ...
3 years, 8 months ago (2017-04-07 16:47:17 UTC) #27
johnme
Still lgtm. No, you'll still need to rebase over a patch that moves some of ...
3 years, 8 months ago (2017-04-07 17:16:12 UTC) #30
steimel
lol yep, figured once I saw all the bots had failed :). Rebased and uploaded
3 years, 8 months ago (2017-04-07 18:02:10 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2757323002/60001
3 years, 8 months ago (2017-04-07 20:16:11 UTC) #38
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 20:36:56 UTC) #41
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/12df228997d26f76483eb438602b...

Powered by Google App Engine
This is Rietveld 408576698