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

Issue 892963003: Ensure media control goes to transparent(hide) after seek by touch (Closed)

Created:
5 years, 10 months ago by william.xie1
Modified:
5 years, 10 months ago
Reviewers:
haraken, philipj_slow, fs
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Ensure media control goes to transparent(hide) after seek by touch During full screen video playback, if user seek randomly and continuously using touch screen, media control bar will not go to transparent(hide) due to media control is hovered and m_wasLastEventTouch is overwritten by the following events before hideMediaControlsTimerFired, thus IgnoreControlsHover flag is not set in hideMediaControlsTimerFired. This CL is target to fix this issue by setting IgnoreControlsHover flag in startHideMediaControlsTimer instead of hideMediaControlsTimerFired. It doesn't impact the mouse over event to show the media control bar persistently. BUG=454304 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189690

Patch Set 1 #

Total comments: 4

Patch Set 2 : Schedule the hover state update in playbackProgressed only if media control bar is opaque #

Total comments: 1

Patch Set 3 : Schedule hover state update after m_wasLastEventTouch is true #

Total comments: 1

Patch Set 4 : Ensure IgnoreControlsHover flag is set effectively #

Total comments: 1

Patch Set 5 : #

Total comments: 9

Patch Set 6 : #

Total comments: 8

Patch Set 7 #

Patch Set 8 : #

Total comments: 3

Patch Set 9 : #

Total comments: 3

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -13 lines) Patch
A + LayoutTests/media/video-controls-auto-hide-after-play-by-touch.html View 1 2 3 4 5 6 7 8 9 2 chunks +15 lines, -8 lines 0 comments Download
A + LayoutTests/media/video-controls-auto-hide-after-play-by-touch-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/shadow/MediaControls.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/html/shadow/MediaControls.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 40 (10 generated)
william.xie1
PTAL
5 years, 10 months ago (2015-02-02 12:50:22 UTC) #2
fs
I get the feeling that this should rather be part of the other touch-specific code ...
5 years, 10 months ago (2015-02-02 13:13:46 UTC) #3
william.xie1
https://codereview.chromium.org/892963003/diff/1/Source/core/html/shadow/MediaControls.cpp File Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/892963003/diff/1/Source/core/html/shadow/MediaControls.cpp#newcode246 Source/core/html/shadow/MediaControls.cpp:246: document().frame()->eventHandler().scheduleHoverStateUpdate(); On 2015/02/02 13:13:46, fs wrote: > All this ...
5 years, 10 months ago (2015-02-02 14:29:18 UTC) #4
william.xie1
5 years, 10 months ago (2015-02-02 15:12:07 UTC) #7
fs
https://codereview.chromium.org/892963003/diff/60001/Source/core/html/shadow/MediaControls.cpp File Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/892963003/diff/60001/Source/core/html/shadow/MediaControls.cpp#newcode278 Source/core/html/shadow/MediaControls.cpp:278: document().frame()->eventHandler().scheduleHoverStateUpdate(); Did you consider doing something like: unsigned behaviorFlags ...
5 years, 10 months ago (2015-02-02 15:22:28 UTC) #8
philipj_slow
This reminds me of a similar problem: https://codereview.chromium.org/552903004/ I second Fredrik's suggestion to attempt a ...
5 years, 10 months ago (2015-02-02 15:54:11 UTC) #9
william.xie1
On 2015/02/02 15:54:11, philipj_UTC7 wrote: > This reminds me of a similar problem: https://codereview.chromium.org/552903004/ > ...
5 years, 10 months ago (2015-02-05 06:47:52 UTC) #10
philipj_slow
The test should use eventSender to emulate the very scenario you are having trouble with. ...
5 years, 10 months ago (2015-02-05 08:14:32 UTC) #12
philipj_slow
Replying to out-of-band email: On Thu, Feb 5, 2015 at 3:26 PM, Xie, William <william.xie@intel.com> ...
5 years, 10 months ago (2015-02-05 10:09:00 UTC) #13
fs
On 2015/02/05 10:09:00, philipj_UTC7 wrote: ... > On Thu, Feb 5, 2015 at 3:26 PM, ...
5 years, 10 months ago (2015-02-05 10:18:03 UTC) #14
william.xie1
On 2015/02/05 10:09:00, philipj_UTC7 wrote: > Replying to out-of-band email: > > On Thu, Feb ...
5 years, 10 months ago (2015-02-06 01:36:35 UTC) #15
william.xie1
Hi Philipj and fs, I have root caused the issue, the root cause is: If ...
5 years, 10 months ago (2015-02-06 05:30:31 UTC) #16
fs
https://codereview.chromium.org/892963003/diff/180001/Source/core/html/shadow/MediaControls.cpp File Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/892963003/diff/180001/Source/core/html/shadow/MediaControls.cpp#newcode447 Source/core/html/shadow/MediaControls.cpp:447: m_behaviorFlags |= IgnoreControlsHover; I think I'd prefer if we ...
5 years, 10 months ago (2015-02-06 10:32:36 UTC) #20
william.xie1
On 2015/02/06 10:32:36, fs wrote: > https://codereview.chromium.org/892963003/diff/180001/Source/core/html/shadow/MediaControls.cpp > File Source/core/html/shadow/MediaControls.cpp (right): > > https://codereview.chromium.org/892963003/diff/180001/Source/core/html/shadow/MediaControls.cpp#newcode447 > ...
5 years, 10 months ago (2015-02-06 13:12:00 UTC) #22
fs
Your description looks like it's indented - that will probably end up looking odd in ...
5 years, 10 months ago (2015-02-06 13:43:32 UTC) #23
william.xie1
Thank you so much for your review, fs. PTAL again. https://codereview.chromium.org/892963003/diff/220001/LayoutTests/media/video-controls-auto-hide-after-seek-by-touch.html File LayoutTests/media/video-controls-auto-hide-after-seek-by-touch.html (right): https://codereview.chromium.org/892963003/diff/220001/LayoutTests/media/video-controls-auto-hide-after-seek-by-touch.html#newcode39 ...
5 years, 10 months ago (2015-02-06 14:59:20 UTC) #24
fs
https://codereview.chromium.org/892963003/diff/220001/LayoutTests/media/video-controls-auto-hide-after-seek-by-touch.html File LayoutTests/media/video-controls-auto-hide-after-seek-by-touch.html (right): https://codereview.chromium.org/892963003/diff/220001/LayoutTests/media/video-controls-auto-hide-after-seek-by-touch.html#newcode20 LayoutTests/media/video-controls-auto-hide-after-seek-by-touch.html:20: target.dispatchEvent(event); Inconsistent indentation. https://codereview.chromium.org/892963003/diff/220001/LayoutTests/media/video-controls-auto-hide-after-seek-by-touch.html#newcode39 LayoutTests/media/video-controls-auto-hide-after-seek-by-touch.html:39: dispatchActivateEvent(controls); On 2015/02/06 14:59:20, ...
5 years, 10 months ago (2015-02-06 15:20:59 UTC) #25
william.xie1
Dear fs, I updated the layout test per your comments and answered the questions about ...
5 years, 10 months ago (2015-02-06 15:45:10 UTC) #26
fs
Your description now lack the subject line. Re-add the issue title: Ensure media control goes ...
5 years, 10 months ago (2015-02-06 16:01:59 UTC) #27
william.xie1
Dear fs, Make a much simpler one. Would you please take a look it? William
5 years, 10 months ago (2015-02-06 16:12:02 UTC) #28
william.xie1
Hi Philipj, Would you please take a look? William
5 years, 10 months ago (2015-02-06 16:26:25 UTC) #29
fs
https://codereview.chromium.org/892963003/diff/280001/Source/core/html/shadow/MediaControls.cpp File Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/892963003/diff/280001/Source/core/html/shadow/MediaControls.cpp#newcode445 Source/core/html/shadow/MediaControls.cpp:445: m_hideTimerBehaviorFlags |= m_wasLastEventTouch ? IgnoreControlsHover : IgnoreNone; Please add ...
5 years, 10 months ago (2015-02-06 16:28:58 UTC) #30
philipj_slow
I'm currently looking at a similar issue where I want to show the video controls ...
5 years, 10 months ago (2015-02-06 16:34:03 UTC) #31
philipj_slow
Oops, comments out-of-order :)
5 years, 10 months ago (2015-02-06 16:34:40 UTC) #32
william.xie1
Hi fs, Would you please take a look again? William https://codereview.chromium.org/892963003/diff/280001/Source/core/html/shadow/MediaControls.cpp File Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/892963003/diff/280001/Source/core/html/shadow/MediaControls.cpp#newcode445 ...
5 years, 10 months ago (2015-02-06 16:56:06 UTC) #33
william.xie1
On 2015/02/06 16:34:40, philipj_UTC7 wrote: > Oops, comments out-of-order :) Sorry philip, it's my fault, ...
5 years, 10 months ago (2015-02-06 16:57:01 UTC) #34
fs
LGTM w/ nits https://codereview.chromium.org/892963003/diff/300001/LayoutTests/media/video-controls-auto-hide-after-play-by-touch.html File LayoutTests/media/video-controls-auto-hide-after-play-by-touch.html (right): https://codereview.chromium.org/892963003/diff/300001/LayoutTests/media/video-controls-auto-hide-after-play-by-touch.html#newcode20 LayoutTests/media/video-controls-auto-hide-after-play-by-touch.html:20: target.dispatchEvent(event); Nit: Align/indent to same column ...
5 years, 10 months ago (2015-02-06 17:04:37 UTC) #35
william.xie1
Fixed the nits, Thank you so much for your great review, fs... Have a nice ...
5 years, 10 months ago (2015-02-06 17:11:06 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/892963003/320001
5 years, 10 months ago (2015-02-06 17:13:13 UTC) #39
commit-bot: I haz the power
5 years, 10 months ago (2015-02-06 21:43:06 UTC) #40
Message was sent while issue was closed.
Committed patchset #10 (id:320001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189690

Powered by Google App Engine
This is Rietveld 408576698