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

Issue 434583002: Prevent repeated taps from resetting insertion handle position (Closed)

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

Description

Prevent repeated taps from resetting insertion handle position Repeated longpress and tap gestures were resetting the cached handle positions in anticipation of receiving updated values from the renderer. However, if the gesture failed to change the selection position, no update was received, and subsequent taps on the handle would improperly position the paste popup at the reset position. Fix this by avoiding cached position resets when the insertion or selection is already active. BUG=399222 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287256

Patch Set 1 #

Total comments: 1

Patch Set 2 : Did the changes and added unit tests as per the review comments #

Patch Set 3 : Corrected the unit test to make selection empty #

Patch Set 4 : Rebased the patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -10 lines) Patch
M content/browser/renderer_host/input/touch_selection_controller.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/touch_selection_controller.cc View 1 2 3 6 chunks +9 lines, -9 lines 0 comments Download
M content/browser/renderer_host/input/touch_selection_controller_unittest.cc View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
raghu
Hi Jdduke, This issue is happening because, we call the ResetCachedValues when the selection is ...
6 years, 4 months ago (2014-07-31 10:25:54 UTC) #1
jdduke (slow)
https://codereview.chromium.org/434583002/diff/1/content/browser/renderer_host/input/touch_selection_controller.cc File content/browser/renderer_host/input/touch_selection_controller.cc (right): https://codereview.chromium.org/434583002/diff/1/content/browser/renderer_host/input/touch_selection_controller.cc#newcode160 content/browser/renderer_host/input/touch_selection_controller.cc:160: if (!is_insertion_active_ && !is_selection_active_) Hmm, maybe rename to ResetCachedValuesIfInactive ...
6 years, 4 months ago (2014-07-31 12:04:45 UTC) #2
jdduke (slow)
Hmm, I'm going to be unavailable over the weekend, but I wanted to get this ...
6 years, 4 months ago (2014-07-31 16:00:55 UTC) #3
raghu
On 2014/07/31 16:00:55, jdduke wrote: > Hmm, I'm going to be unavailable over the weekend, ...
6 years, 4 months ago (2014-08-01 10:13:32 UTC) #4
jdduke (slow)
lgtm
6 years, 4 months ago (2014-08-02 14:15:56 UTC) #5
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 4 months ago (2014-08-02 14:16:00 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/r.ghatage@samsung.com/434583002/40001
6 years, 4 months ago (2014-08-02 14:16:58 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-02 14:58:10 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-02 14:59:20 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/36773) ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/2188) ios_rel_device ...
6 years, 4 months ago (2014-08-02 14:59:20 UTC) #10
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 4 months ago (2014-08-02 17:45:28 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/r.ghatage@samsung.com/434583002/40001
6 years, 4 months ago (2014-08-02 17:46:27 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-02 17:53:50 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-02 17:55:00 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/2320)
6 years, 4 months ago (2014-08-02 17:55:01 UTC) #15
raghu
rebased the patch.
6 years, 4 months ago (2014-08-03 08:30:37 UTC) #16
raghu
The CQ bit was checked by r.ghatage@samsung.com
6 years, 4 months ago (2014-08-03 08:30:58 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/r.ghatage@samsung.com/434583002/60001
6 years, 4 months ago (2014-08-03 08:31:11 UTC) #18
commit-bot: I haz the power
6 years, 4 months ago (2014-08-03 11:12:35 UTC) #19
Message was sent while issue was closed.
Change committed as 287256

Powered by Google App Engine
This is Rietveld 408576698