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

Issue 2074093003: Fix more corner cases for empty touch selection. (Closed)

Created:
4 years, 6 months ago by aelias_OOO_until_Jul13
Modified:
4 years, 6 months ago
CC:
amaralp, blink-reviews, Changwan Ryu, chromium-reviews, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix more corner cases for empty touch selection. 1) In r373606 I fixed the case where selection would select whitespace, but that still left a broken case -- when the hit test intersects with the empty space at the end of a textbox (which doesn't have whitespace characters per se). Add an explicit comparison to lastPositionInNode to cover this. 2) The same empty selection conventions apply to double-tap as well as long-press, so extend the enum enabling this behavior to them. (Double taps enter SelectionController as synthetic mouse events with clickCount=2 and fromTouch=true.) BUG=415933 Committed: https://crrev.com/18c145f35f2dbbb10b4ff7168a115b9119fef6fc Cr-Commit-Position: refs/heads/master@{#401155}

Patch Set 1 #

Patch Set 2 : Shrink Android textbox size #

Patch Set 3 : Tweak more textbox sizes to make center-long-press hit word #

Patch Set 4 : Fix type assertion in WebViewTest #

Total comments: 7

Patch Set 5 : Remove std::string in test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -18 lines) Patch
M content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java View 1 2 7 chunks +7 lines, -7 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/data/android/input/input_forms.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionController.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionController.cpp View 4 chunks +8 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 4 2 chunks +25 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
aelias_OOO_until_Jul13
Hi yosin@, PTAL.
4 years, 6 months ago (2016-06-21 04:45:32 UTC) #2
yosin_UTC9
https://codereview.chromium.org/2074093003/diff/60001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java File content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java (right): https://codereview.chromium.org/2074093003/diff/60001/content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java#newcode38 content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java:38: + "<br/><input id=\"password\" type=\"password\" value=\"SamplePassword\" size=\"10\"/>" Why do you ...
4 years, 6 months ago (2016-06-21 07:50:45 UTC) #3
aelias_OOO_until_Jul13
+dtrainor for OWNERS of small test data changes in content/public/android/. (The tests relied on the ...
4 years, 6 months ago (2016-06-21 18:30:41 UTC) #5
David Trainor- moved to gerrit
content/public/android lgtm thanks!
4 years, 6 months ago (2016-06-21 23:13:42 UTC) #6
yosin_UTC9
lgtm Thanks for explanation of about Java changes.
4 years, 6 months ago (2016-06-22 01:19:25 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2074093003/80001
4 years, 6 months ago (2016-06-22 01:20:51 UTC) #9
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-22 01:26:05 UTC) #10
commit-bot: I haz the power
4 years, 6 months ago (2016-06-22 01:28:04 UTC) #12
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/18c145f35f2dbbb10b4ff7168a115b9119fef6fc
Cr-Commit-Position: refs/heads/master@{#401155}

Powered by Google App Engine
This is Rietveld 408576698