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

Issue 2355403002: Consume entire touch sequence in touch selection controller (Closed)

Created:
4 years, 3 months ago by mohsen
Modified:
4 years, 2 months ago
Reviewers:
sadrul
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Consume entire touch sequence in touch selection controller If touch selection gets deactivated while the user is dragging a handle, the rest of the touch sequence should be consumed by the touch selection controller; otherwise, there would be an incomplete touch sequence which confuses gesture recognizer. In other words, if the touch selection controller consumes a touch press, it should consume the rest of events in the touch sequence up until the touch release. BUG=642820 TEST=See bug details Committed: https://crrev.com/4a024a3bfb952b02c0d0db8e52a9e7ed66df0e82 Cr-Commit-Position: refs/heads/master@{#424513}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Removed usage of ACTION_UP/ACTION_CANCEL #

Patch Set 3 : Fixed tests #

Patch Set 4 : Added a TODO comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -33 lines) Patch
M ui/touch_selection/touch_selection_controller.h View 2 chunks +5 lines, -0 lines 0 comments Download
M ui/touch_selection/touch_selection_controller.cc View 1 2 3 3 chunks +44 lines, -29 lines 0 comments Download
M ui/touch_selection/touch_selection_controller_unittest.cc View 1 2 2 chunks +63 lines, -4 lines 0 comments Download

Messages

Total messages: 29 (20 generated)
mohsen
Please take a look...
4 years, 3 months ago (2016-09-21 19:14:33 UTC) #6
sadrul
https://codereview.chromium.org/2355403002/diff/1/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://codereview.chromium.org/2355403002/diff/1/ui/touch_selection/touch_selection_controller.cc#newcode182 ui/touch_selection/touch_selection_controller.cc:182: bool handled = WillHandleTouchEventImpl(event) || consume_touch_sequence_; Reverse the order, ...
4 years, 3 months ago (2016-09-22 01:55:51 UTC) #7
mohsen
https://codereview.chromium.org/2355403002/diff/1/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://codereview.chromium.org/2355403002/diff/1/ui/touch_selection/touch_selection_controller.cc#newcode182 ui/touch_selection/touch_selection_controller.cc:182: bool handled = WillHandleTouchEventImpl(event) || consume_touch_sequence_; On 2016/09/22 at ...
4 years, 3 months ago (2016-09-22 02:50:16 UTC) #8
sadrul
lgtm (maybe double check with tdresser@ re ACTION_CANCEL?) https://codereview.chromium.org/2355403002/diff/1/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://codereview.chromium.org/2355403002/diff/1/ui/touch_selection/touch_selection_controller.cc#newcode182 ui/touch_selection/touch_selection_controller.cc:182: bool ...
4 years, 3 months ago (2016-09-22 03:10:33 UTC) #9
mohsen
https://codereview.chromium.org/2355403002/diff/1/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://codereview.chromium.org/2355403002/diff/1/ui/touch_selection/touch_selection_controller.cc#newcode182 ui/touch_selection/touch_selection_controller.cc:182: bool handled = WillHandleTouchEventImpl(event) || consume_touch_sequence_; On 2016/09/22 at ...
4 years, 3 months ago (2016-09-22 18:08:45 UTC) #12
mohsen
sadrul@: I changed the code in the last patch set to consume events from action-down ...
4 years, 2 months ago (2016-09-27 19:45:11 UTC) #19
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/2355403002/60001
4 years, 2 months ago (2016-10-11 19:30:54 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-11 19:37:13 UTC) #27
commit-bot: I haz the power
4 years, 2 months ago (2016-10-11 19:40:45 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4a024a3bfb952b02c0d0db8e52a9e7ed66df0e82
Cr-Commit-Position: refs/heads/master@{#424513}

Powered by Google App Engine
This is Rietveld 408576698