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

Issue 178193022: [Android] Always insert a TouchCancel if window or tab focus is lost (Closed)

Created:
6 years, 9 months ago by jdduke (slow)
Modified:
6 years, 9 months ago
Reviewers:
tdresser
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[Android] Always insert a TouchCancel if window or tab focus is lost This fixes a recent regression where loss of tab focus would cancel a gesture sequence, but not the generating touch sequence. Resolve this by inserting a synthetic touch cancellation event into the pipeline, which will cause cancellation of both touch and gesture sequences. BUG=348528 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255030

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : Cleanup #

Patch Set 4 : Rebase #

Total comments: 6

Patch Set 5 : Code review #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -165 lines) Patch
M content/browser/android/content_view_core_impl.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 4 chunks +24 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/content_gesture_provider.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/content_gesture_provider.cc View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_android.h View 4 chunks +4 lines, -5 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_android.cc View 4 chunks +12 lines, -16 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_web.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_web.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/web_input_event_builders_android.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/web_input_event_builders_android.cc View 2 chunks +2 lines, -113 lines 0 comments Download
M content/browser/renderer_host/input/web_input_event_util.h View 2 chunks +8 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/web_input_event_util.cc View 3 chunks +91 lines, -1 line 0 comments Download
M ui/events/gesture_detection/gesture_provider.h View 1 2 3 4 2 chunks +5 lines, -6 lines 0 comments Download
M ui/events/gesture_detection/gesture_provider.cc View 1 2 3 4 5 1 chunk +0 lines, -7 lines 0 comments Download
M ui/events/gesture_detection/gesture_provider_unittest.cc View 1 2 3 4 5 5 chunks +13 lines, -6 lines 0 comments Download
M ui/events/gesture_detection/mock_motion_event.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/gesture_detection/mock_motion_event.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/motion_event.h View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
jdduke (slow)
PTAL. This looks like a big change but it's fairly straightforward. Note that this patch ...
6 years, 9 months ago (2014-03-03 22:18:08 UTC) #1
tdresser
On 2014/03/03 22:18:08, jdduke wrote: > PTAL. This looks like a big change but it's ...
6 years, 9 months ago (2014-03-04 13:53:03 UTC) #2
jdduke (slow)
On 2014/03/04 13:53:03, tdresser wrote: > On 2014/03/03 22:18:08, jdduke wrote: > > PTAL. This ...
6 years, 9 months ago (2014-03-04 15:47:44 UTC) #3
tdresser
LGTM with a few small nits. https://codereview.chromium.org/178193022/diff/80001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/178193022/diff/80001/content/browser/android/content_view_core_impl.cc#newcode1000 content/browser/android/content_view_core_impl.cc:1000: if (!rwhv) Is ...
6 years, 9 months ago (2014-03-04 16:19:33 UTC) #4
jdduke (slow)
https://codereview.chromium.org/178193022/diff/80001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/178193022/diff/80001/content/browser/android/content_view_core_impl.cc#newcode1000 content/browser/android/content_view_core_impl.cc:1000: if (!rwhv) On 2014/03/04 16:19:34, tdresser wrote: > Is ...
6 years, 9 months ago (2014-03-04 19:07:02 UTC) #5
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 9 months ago (2014-03-04 19:09:55 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/178193022/100001
6 years, 9 months ago (2014-03-04 19:12:16 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-04 22:41:32 UTC) #8
commit-bot: I haz the power
Failed to apply patch for ui/events/gesture_detection/gesture_provider_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-04 22:41:32 UTC) #9
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 9 months ago (2014-03-04 22:50:21 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/178193022/110001
6 years, 9 months ago (2014-03-04 22:52:00 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-05 00:35:16 UTC) #12
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=274652
6 years, 9 months ago (2014-03-05 00:35:16 UTC) #13
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 9 months ago (2014-03-05 01:30:59 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/178193022/110001
6 years, 9 months ago (2014-03-05 01:38:25 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-05 06:59:41 UTC) #16
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=274990
6 years, 9 months ago (2014-03-05 06:59:42 UTC) #17
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 9 months ago (2014-03-05 13:29:54 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/178193022/110001
6 years, 9 months ago (2014-03-05 13:30:03 UTC) #19
commit-bot: I haz the power
6 years, 9 months ago (2014-03-05 14:12:47 UTC) #20
Message was sent while issue was closed.
Change committed as 255030

Powered by Google App Engine
This is Rietveld 408576698