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

Issue 453493002: Improve detection of touch events when hiding media controls. (Closed)

Created:
6 years, 4 months ago by Ignacio Solla
Modified:
6 years, 3 months ago
CC:
benm (inactive), blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-events_chromium.org, blink-reviews-html_chromium.org, dglazkov+blink, eae+blinkwatch, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, rwlbuis, sof, nessy, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@autoHideControls
Project:
blink
Visibility:
Public.

Description

Improve detection of touch events when hiding media controls. We propagate synthetic state down from PlatformMouseEvent into MouseEvent / MediaControls instead of relying on whether the platform does not support a mouse. This allows us to hide the controls after touch even in those platforms that support a mouse. We rename NotFromTouch to RealOrIndistinguishable in preparation for adding new values, for example to replace isSimulated. BUG=401177 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181055

Patch Set 1 #

Patch Set 2 : Fix test #

Patch Set 3 : Cannot use isSimulated, so define derivesFromTouch #

Total comments: 2

Patch Set 4 : Propagate SyntheticEventType to MouseRelatedEvent #

Total comments: 4

Patch Set 5 : Added multimodal tests and NotFromInput synthetic type. #

Total comments: 22

Patch Set 6 : Address Rick's comments #

Patch Set 7 : Fix build breakage #

Total comments: 6

Patch Set 8 : Change some RealOr.. to FromTouch #

Patch Set 9 : Revert Patch Set 8 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -74 lines) Patch
M LayoutTests/media/video-controls-hide-after-touch-on-control.html View 1 2 3 4 5 2 chunks +5 lines, -8 lines 0 comments Download
A + LayoutTests/media/video-controls-visibility-multimodal-mouse-after-touch.html View 1 2 3 4 5 1 chunk +11 lines, -12 lines 0 comments Download
A + LayoutTests/media/video-controls-visibility-multimodal-mouse-after-touch-expected.txt View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
A LayoutTests/media/video-controls-visibility-multimodal-touch-after-mouse.html View 1 2 3 4 5 1 chunk +64 lines, -0 lines 0 comments Download
A + LayoutTests/media/video-controls-visibility-multimodal-touch-after-mouse-expected.txt View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/events/MouseEvent.h View 1 2 3 4 5 6 5 chunks +8 lines, -3 lines 0 comments Download
M Source/core/events/MouseEvent.cpp View 1 2 3 4 5 4 chunks +7 lines, -7 lines 0 comments Download
M Source/core/events/MouseRelatedEvent.h View 1 2 3 4 5 2 chunks +7 lines, -4 lines 0 comments Download
M Source/core/events/WheelEvent.cpp View 1 2 3 4 5 2 chunks +4 lines, -5 lines 0 comments Download
M Source/core/html/shadow/MediaControls.h View 1 2 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/shadow/MediaControls.cpp View 1 2 3 4 5 4 chunks +4 lines, -7 lines 0 comments Download
M Source/core/inspector/InspectorInputAgent.cpp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/page/DragController.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 4 5 8 4 chunks +5 lines, -5 lines 0 comments Download
M Source/platform/PlatformMouseEvent.h View 1 2 3 4 5 5 chunks +8 lines, -5 lines 0 comments Download
M Source/web/PopupContainer.cpp View 1 2 3 4 5 8 1 chunk +3 lines, -3 lines 0 comments Download
M Source/web/PopupMenuTest.cpp View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M Source/web/tests/WebInputEventConversionTest.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
Ignacio Solla
Discussion moved from https://codereview.chromium.org/441193003/: -> philipj noted: "The isSimulated idea sounded promising. In https://codereview.chromium.org/453493002/ you ...
6 years, 4 months ago (2014-08-19 11:58:50 UTC) #1
philipj_slow
OK, I guess isSimulated as a more generic name than it should. It's also only ...
6 years, 4 months ago (2014-08-19 12:29:02 UTC) #2
Rick Byers
Extending MouseEvent to be aware when it's derived from touch is definitely a good idea ...
6 years, 4 months ago (2014-08-19 16:06:48 UTC) #3
Ignacio Solla
On 2014/08/19 16:06:48, Rick Byers wrote: > Extending MouseEvent to be aware when it's derived ...
6 years, 4 months ago (2014-08-20 14:23:40 UTC) #4
Rick Byers
This is much cleaner, thanks! Can you add a test - eg. that verifies media ...
6 years, 4 months ago (2014-08-20 23:32:56 UTC) #5
Ignacio Solla
Tests are good. When adding them I discovered a case where this did not work, ...
6 years, 4 months ago (2014-08-21 17:30:14 UTC) #6
Ignacio Solla
https://codereview.chromium.org/453493002/diff/80001/LayoutTests/media/video-controls-visibility-multimodal-touch-after-mouse.html File LayoutTests/media/video-controls-visibility-multimodal-touch-after-mouse.html (right): https://codereview.chromium.org/453493002/diff/80001/LayoutTests/media/video-controls-visibility-multimodal-touch-after-mouse.html#newcode31 LayoutTests/media/video-controls-visibility-multimodal-touch-after-mouse.html:31: // And the controls should hide after a timeout. ...
6 years, 4 months ago (2014-08-21 17:42:31 UTC) #7
Rick Byers
https://codereview.chromium.org/453493002/diff/80001/LayoutTests/media/video-controls-hide-after-touch-on-control.html File LayoutTests/media/video-controls-hide-after-touch-on-control.html (right): https://codereview.chromium.org/453493002/diff/80001/LayoutTests/media/video-controls-hide-after-touch-on-control.html#newcode25 LayoutTests/media/video-controls-hide-after-touch-on-control.html:25: eventSender.gestureTap(coords[0], coords[1]); for maximum fidelity with how touch actually ...
6 years, 4 months ago (2014-08-22 18:11:13 UTC) #8
Ignacio Solla
Thanks for the suggestions / review. I think not distinguishing NotFromIput events is much better. ...
6 years, 3 months ago (2014-08-26 13:40:53 UTC) #9
Rick Byers
This LGTM (modulo changing a couple RealOr.. to FromTouch). Please update the CL description to ...
6 years, 3 months ago (2014-08-26 15:25:46 UTC) #10
Ignacio Solla
igsolla@chromium.org changed reviewers: + aelias@chromium.org, eroman@chromium.org
6 years, 3 months ago (2014-08-26 17:30:43 UTC) #11
Ignacio Solla
Thanks for the review Rick. aelias: Could you review the changes in Source/web please eroman: ...
6 years, 3 months ago (2014-08-26 17:30:43 UTC) #12
aelias_OOO_until_Jul13
Source/web lgtm
6 years, 3 months ago (2014-08-26 17:59:34 UTC) #13
Ignacio Solla
igsolla@chromium.org changed reviewers: + abarth@chromium.org, eseidel@chromium.org
6 years, 3 months ago (2014-08-27 13:18:28 UTC) #14
Ignacio Solla
abarth or eseidel or eroman: could anyone of you help me review the changes to ...
6 years, 3 months ago (2014-08-27 13:19:40 UTC) #15
eseidel
lgtm The names seem a bit funny to me. The previous axis was touch or ...
6 years, 3 months ago (2014-08-28 15:38:08 UTC) #16
Ignacio Solla
On 2014/08/28 15:38:08, eseidel wrote: > lgtm > > The names seem a bit funny ...
6 years, 3 months ago (2014-08-28 16:00:47 UTC) #17
Ignacio Solla
The CQ bit was checked by igsolla@chromium.org
6 years, 3 months ago (2014-08-28 16:01:11 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/igsolla@chromium.org/453493002/140001
6 years, 3 months ago (2014-08-28 16:02:00 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 3 months ago (2014-08-28 16:14:40 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-28 16:27:31 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/23069)
6 years, 3 months ago (2014-08-28 16:27:32 UTC) #22
abarth-chromium
The CQ bit was checked by abarth@chromium.org
6 years, 3 months ago (2014-08-28 17:10:25 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/igsolla@chromium.org/453493002/140001
6 years, 3 months ago (2014-08-28 17:11:02 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 3 months ago (2014-08-28 17:24:23 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-28 17:37:56 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/23081)
6 years, 3 months ago (2014-08-28 17:37:58 UTC) #27
Ignacio Solla
On 2014/08/28 17:37:58, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 3 months ago (2014-08-28 18:14:48 UTC) #28
Rick Byers
On 2014/08/28 18:14:48, Ignacio Solla wrote: > On 2014/08/28 17:37:58, I haz the power (commit-bot) ...
6 years, 3 months ago (2014-08-28 18:20:55 UTC) #29
Ignacio Solla
The CQ bit was checked by igsolla@chromium.org
6 years, 3 months ago (2014-08-28 18:22:23 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/igsolla@chromium.org/453493002/160001
6 years, 3 months ago (2014-08-28 18:23:28 UTC) #31
commit-bot: I haz the power
6 years, 3 months ago (2014-08-28 19:03:35 UTC) #32
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as 181055

Powered by Google App Engine
This is Rietveld 408576698