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

Issue 1358263002: [Android] Support double-tap selection (Closed)

Created:
5 years, 3 months ago by jdduke (slow)
Modified:
5 years, 2 months ago
Reviewers:
Donn Denman, tdresser
CC:
chromium-reviews, yusukes+watch_chromium.org, tdresser+watch_chromium.org, shuchen+watch_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, jdduke+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Support double-tap selection Add single tap repeat count detection to GestureDetector for cases when double-tap detection is disabled. Refactor Aura to use this path, and also update the TouchSelectionController to support selection handle display when the user's double (or triple) tap gesture selects text. BUG=234986, 453476, 522268 Committed: https://crrev.com/b1c7ccf1e392ea2b3bef380148a86978f43a2967 Cr-Commit-Position: refs/heads/master@{#350902}

Patch Set 1 #

Patch Set 2 : Minor tweak #

Patch Set 3 : Add TouchSelectionController tests #

Patch Set 4 : Fix aura #

Total comments: 5

Patch Set 5 : No min tap repeat time for non double-taps #

Patch Set 6 : Fix contextual search #

Unified diffs Side-by-side diffs Delta from patch set Stats (+294 lines, -101 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionController.java View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManagerTest.java View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/stylus_text_selector.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/stylus_text_selector.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M ui/events/gesture_detection/gesture_configuration.h View 2 chunks +6 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/gesture_configuration.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/gesture_detection/gesture_configuration_android.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/gesture_detection/gesture_detector.h View 1 2 3 4 3 chunks +19 lines, -3 lines 0 comments Download
M ui/events/gesture_detection/gesture_detector.cc View 1 2 3 4 5 8 chunks +39 lines, -14 lines 0 comments Download
M ui/events/gesture_detection/gesture_listeners.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ui/events/gesture_detection/gesture_listeners.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ui/events/gesture_detection/gesture_provider.cc View 9 chunks +31 lines, -26 lines 0 comments Download
M ui/events/gesture_detection/gesture_provider_config_helper.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/gesture_detection/gesture_provider_unittest.cc View 1 2 3 4 2 chunks +117 lines, -0 lines 0 comments Download
M ui/events/gestures/gesture_provider_aura.h View 1 chunk +0 lines, -5 lines 0 comments Download
M ui/events/gestures/gesture_provider_aura.cc View 2 chunks +0 lines, -34 lines 0 comments Download
M ui/touch_selection/touch_selection_controller.h View 2 chunks +4 lines, -2 lines 0 comments Download
M ui/touch_selection/touch_selection_controller.cc View 1 3 chunks +15 lines, -7 lines 0 comments Download
M ui/touch_selection/touch_selection_controller_unittest.cc View 1 2 3 chunks +39 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
jdduke (slow)
tdresser@: PTAL, thanks.
5 years, 3 months ago (2015-09-22 20:12:31 UTC) #2
tdresser
LGTM, though it looks like there's some test flake. https://codereview.chromium.org/1358263002/diff/80001/ui/events/gesture_detection/gesture_detector.h File ui/events/gesture_detection/gesture_detector.h (right): https://codereview.chromium.org/1358263002/diff/80001/ui/events/gesture_detection/gesture_detector.h#newcode142 ui/events/gesture_detection/gesture_detector.h:142: ...
5 years, 3 months ago (2015-09-23 14:10:46 UTC) #4
jdduke (slow)
I went ahead and removed the "min" double-tap check when we're not detecting double-taps. It's ...
5 years, 3 months ago (2015-09-23 19:56:04 UTC) #5
tdresser
Still LGTM. https://codereview.chromium.org/1358263002/diff/80001/ui/events/gesture_detection/gesture_detector.h File ui/events/gesture_detection/gesture_detector.h (right): https://codereview.chromium.org/1358263002/diff/80001/ui/events/gesture_detection/gesture_detector.h#newcode142 ui/events/gesture_detection/gesture_detector.h:142: int single_tap_count_; On 2015/09/23 19:56:04, jdduke wrote: ...
5 years, 3 months ago (2015-09-24 12:05:00 UTC) #6
jdduke (slow)
donnd@: Could you take a look at the contextual search changes? I think we're actually ...
5 years, 2 months ago (2015-09-25 16:50:45 UTC) #8
Donn Denman
On 2015/09/25 16:50:45, jdduke wrote: > donnd@: Could you take a look at the contextual ...
5 years, 2 months ago (2015-09-25 19:58:06 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1358263002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1358263002/120001
5 years, 2 months ago (2015-09-25 20:01:27 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:120001)
5 years, 2 months ago (2015-09-25 20:41:50 UTC) #13
commit-bot: I haz the power
5 years, 2 months ago (2015-09-25 20:42:42 UTC) #14
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b1c7ccf1e392ea2b3bef380148a86978f43a2967
Cr-Commit-Position: refs/heads/master@{#350902}

Powered by Google App Engine
This is Rietveld 408576698