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

Issue 1645613007: Redefined the bit WebTouchEvent.causesScrollingIfUncanceled. (Closed)

Created:
4 years, 10 months ago by mustaq
Modified:
4 years, 10 months ago
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, tdresser+watch_chromium.org, yusukes+watch_chromium.org, shuchen+watch_chromium.org, James Su, jam, dglazkov+blink, nyquist+watch-blimp_chromium.org, nona+watch_chromium.org, marcinjb+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, blink-reviews, darin-cc_chromium.org, dtrainor+watch-blimp_chromium.org, blink-reviews-api_chromium.org, jochen+watch_chromium.org, mlamouri+watch-test-runner_chromium.org, tdresser
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Redefined the bit WebTouchEvent.causesScrollingIfUncanceled. The "causesScrollingIfUncanceled" name is confusing because this bit essentially means that a touchmove has exceeded the touch slop region. A touchmove with this bit set doesn't necessarily cause scrolling, even when uncanceled, e.g. when the touch sequence started on a node with "touch-action:none". This CL redefines the bit: this bit remains unset as long as the touch-point is within the slop region, and is set after the first touchmove beyond the slop region. The bit is set by gesture-provider, and currently used in two places: for touchmove slop suppression and for suppressing PointerEvent firing for events that cause panning/zooming. This new definition was chosen to be useful for both the current slop suppression and to enable us to detect tap-like touchend events from blink (eg. for crbug.com/582140). We are fixing the PointerEvent use case through crbug.com/567740. BUG=582140, 567740 Committed: https://crrev.com/620be1f0cde37e56b8f8eb9e238e3d28b6471fc7 Cr-Commit-Position: refs/heads/master@{#374204}

Patch Set 1 #

Patch Set 2 : Rebased #

Total comments: 10

Patch Set 3 : Redefined the bit semantic, updated tests. #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : Fixed an aura unittest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -64 lines) Patch
M blimp/client/feature/compositor/blimp_input_manager.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/html_viewer/touch_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/test_runner/event_sender.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/touch_emulator.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/touch_event_queue_unittest.cc View 4 chunks +6 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M content/common/input/synthetic_web_input_event_builders.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/input/web_input_event_traits.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebInputEventConversion.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/public/web/WebInputEvent.h View 1 2 2 chunks +5 lines, -7 lines 0 comments Download
M ui/aura/window_event_dispatcher_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/events/blink/blink_event_util.cc View 1 3 2 chunks +3 lines, -3 lines 0 comments Download
M ui/events/gesture_detection/filtered_gesture_provider.h View 1 2 3 2 chunks +3 lines, -6 lines 0 comments Download
M ui/events/gesture_detection/filtered_gesture_provider.cc View 1 2 3 5 chunks +11 lines, -9 lines 0 comments Download
M ui/events/gesture_detection/filtered_gesture_provider_unittest.cc View 1 2 1 chunk +85 lines, -15 lines 0 comments Download
M ui/events/gestures/gesture_provider_aura.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 41 (19 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1645613007/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1645613007/1
4 years, 10 months ago (2016-01-29 17:06:30 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/59333)
4 years, 10 months ago (2016-01-29 17:09:18 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1645613007/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1645613007/20001
4 years, 10 months ago (2016-01-29 19:21:19 UTC) #7
mustaq
4 years, 10 months ago (2016-01-29 19:22:45 UTC) #9
mustaq
On 2016/01/29 19:22:45, mustaq wrote: ptal
4 years, 10 months ago (2016-01-29 20:11:16 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-01-29 21:22:26 UTC) #12
Rick Byers
Thanks for doing this. At a minimum let's cripen up the definition a bit to ...
4 years, 10 months ago (2016-02-02 04:24:16 UTC) #13
mustaq
ptal https://codereview.chromium.org/1645613007/diff/20001/third_party/WebKit/public/web/WebInputEvent.h File third_party/WebKit/public/web/WebInputEvent.h (right): https://codereview.chromium.org/1645613007/diff/20001/third_party/WebKit/public/web/WebInputEvent.h#newcode586 third_party/WebKit/public/web/WebInputEvent.h:586: // fling-generating touchend events. On 2016/02/02 04:24:16, Rick ...
4 years, 10 months ago (2016-02-04 21:17:22 UTC) #16
Rick Byers
LGTM - thanks! +tdresser for OWNERS For the record, this tweaked definition was chosen to ...
4 years, 10 months ago (2016-02-04 22:29:21 UTC) #18
tdresser
https://codereview.chromium.org/1645613007/diff/40001/ui/events/blink/blink_event_util.cc File ui/events/blink/blink_event_util.cc (right): https://codereview.chromium.org/1645613007/diff/40001/ui/events/blink/blink_event_util.cc#newcode208 ui/events/blink/blink_event_util.cc:208: bool IsTouchSequenceStart(const MotionEvent& event) { Isn't this equivalent to ...
4 years, 10 months ago (2016-02-05 14:19:00 UTC) #19
mustaq
@tdresser: ptal https://codereview.chromium.org/1645613007/diff/40001/ui/events/blink/blink_event_util.cc File ui/events/blink/blink_event_util.cc (right): https://codereview.chromium.org/1645613007/diff/40001/ui/events/blink/blink_event_util.cc#newcode208 ui/events/blink/blink_event_util.cc:208: bool IsTouchSequenceStart(const MotionEvent& event) { On 2016/02/05 ...
4 years, 10 months ago (2016-02-05 15:29:18 UTC) #20
tdresser
LGTM, thanks.
4 years, 10 months ago (2016-02-05 15:42:44 UTC) #22
mustaq
dtrainor@chromium.org: Please review changes in blimp/client/feature/compositor/blimp_input_manager.cc sadrul@chromium.org: Please review changes in components/html_viewer/touch_handler.cc
4 years, 10 months ago (2016-02-05 16:26:17 UTC) #25
sadrul
lgtm
4 years, 10 months ago (2016-02-08 15:47:32 UTC) #26
David Trainor- moved to gerrit
blimp/ lgtm
4 years, 10 months ago (2016-02-08 15:48:16 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1645613007/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1645613007/60001
4 years, 10 months ago (2016-02-08 15:52:36 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/122098)
4 years, 10 months ago (2016-02-08 16:34:11 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1645613007/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1645613007/80001
4 years, 10 months ago (2016-02-08 18:39:27 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 10 months ago (2016-02-08 22:47:57 UTC) #37
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/620be1f0cde37e56b8f8eb9e238e3d28b6471fc7 Cr-Commit-Position: refs/heads/master@{#374204}
4 years, 10 months ago (2016-02-08 22:48:59 UTC) #39
please use gerrit instead
This patch may have broken WebViewFocusInteractiveTest.FocusAndVisibility test on "Win 7 Tests x64 (1)" https://build.chromium.org/p/chromium.win/builders/Win%207%20Tests%20x64%20%281%29/builds/10741 [ ...
4 years, 10 months ago (2016-02-09 00:11:56 UTC) #40
mustaq
4 years, 10 months ago (2016-02-09 17:03:05 UTC) #41
Message was sent while issue was closed.
On 2016/02/09 00:11:56, Rouslan wrote:
> This patch may have broken WebViewFocusInteractiveTest.FocusAndVisibility test
> on "Win 7 Tests x64 (1)"
> 
>
https://build.chromium.org/p/chromium.win/builders/Win%207%20Tests%20x64%20%2...
> 
> [ RUN      ] WebViewFocusInteractiveTest.FocusAndVisibility
> [4020:4512:0208/154721:WARNING:suggestions_service.cc(169)] Token error: Not
> authorized.
> [4020:4512:0208/154721:INFO:CONSOLE(15)] "Setting URL to
>
"http://localhost:54274/extensions/platform_apps/web_view/focus_visibility/guest.html".",
> source: chrome-extension://cgbednfbmhloindaacgdnimfalljikph/window.js (15)
>
c:uild\slave\win_x64_builderuild\src\chromerowserpps\guest_view\web_view_interactive_browsertest.cc(1312):
> error: Value of: webview_button_focused_listener.WaitUntilSatisfied()
>   Actual: false
> Expected: true
>
c:uild\slave\win_x64_builderuild\src\chromerowserpps\guest_view\web_view_interactive_browsertest.cc(1331):
> error: Value of: webview_button_not_focused_listener.WaitUntilSatisfied()
>   Actual: false
> Expected: true
> [  FAILED  ] WebViewFocusInteractiveTest.FocusAndVisibility, where TypeParam =

> and GetParam() =  (1321 ms)
> 
> If the failure persists or the test starts to flake, I will be reverting this
> change.

I think the failing test involves only keyboard events (tabbing through elements
to be precise), so should be unaffected by this CL.

https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/app...

Powered by Google App Engine
This is Rietveld 408576698