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

Issue 1102933003: [Contextual Search] Add support for tap on the selection. (Closed)

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

Description

[Contextual Search] Add support for tap on the selection. Adds handling to show the selection handles for a tap or long-press on an existing selection that does not yet show the selection handles. This approach works fine when the selection does not wrap, and it's currently very rare that we have a multi-line selection. However, some day we'll have the ability to expand the selection, so we should revisit this implementation then. More info on this in issue 393025. Based on CL 1086393003 by jdduke@. BUG=chromium:393025, chromium:420281 Committed: https://crrev.com/3de51de0426a9063026d21e60072b1b6bed4a2df Cr-Commit-Position: refs/heads/master@{#329542}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add helper method WillHandleTapOrLongPress(). #

Patch Set 3 : 1st cut at unit tests #

Total comments: 2

Patch Set 4 : Added unit tests. #

Total comments: 6

Patch Set 5 : Updated unit tests as suggested by Jared. #

Total comments: 2

Patch Set 6 : Fixed unit tests and merged with force-update change. #

Total comments: 5

Patch Set 7 : Moved implementation methods to match declaration order. Used INACTIVE for active_status_ state ch… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -62 lines) Patch
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 1 chunk +11 lines, -10 lines 0 comments Download
M ui/touch_selection/touch_selection_controller.h View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M ui/touch_selection/touch_selection_controller.cc View 1 2 3 4 5 6 3 chunks +36 lines, -11 lines 0 comments Download
M ui/touch_selection/touch_selection_controller_unittest.cc View 1 2 3 4 5 31 chunks +88 lines, -39 lines 0 comments Download

Messages

Total messages: 25 (3 generated)
Donn Denman
Jared, I think we decided to just try to land this as-is. If that sounds ...
5 years, 7 months ago (2015-05-01 20:40:45 UTC) #2
jdduke (slow)
This needs a test or two in touch_selection_controller_unittest.cc. +mohsen to verify that this is compatible ...
5 years, 7 months ago (2015-05-01 20:52:06 UTC) #4
Donn Denman
Jared, PTAL. Thanks! https://chromiumcodereview.appspot.com/1102933003/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://chromiumcodereview.appspot.com/1102933003/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1646 content/browser/renderer_host/render_widget_host_view_android.cc:1646: const blink::WebGestureEvent& gesture_event = On 2015/05/01 ...
5 years, 7 months ago (2015-05-01 22:46:03 UTC) #5
jdduke (slow)
On 2015/05/01 22:46:03, Donn Denman wrote: > Jared, PTAL. Thanks! > Still waiting on those ...
5 years, 7 months ago (2015-05-04 14:57:54 UTC) #6
Donn Denman
On 2015/05/04 14:57:54, jdduke wrote: > On 2015/05/01 22:46:03, Donn Denman wrote: > > Jared, ...
5 years, 7 months ago (2015-05-05 16:57:35 UTC) #7
jdduke (slow)
On 2015/05/05 16:57:35, Donn Denman wrote: > Jared, I started on the tests, but could ...
5 years, 7 months ago (2015-05-05 17:37:16 UTC) #8
Donn Denman
Jared, I added tests, but not sure if it would be possible to make them ...
5 years, 7 months ago (2015-05-08 22:00:31 UTC) #9
jdduke (slow)
https://codereview.chromium.org/1102933003/diff/60001/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://codereview.chromium.org/1102933003/diff/60001/ui/touch_selection/touch_selection_controller.cc#newcode171 ui/touch_selection/touch_selection_controller.cc:171: activate_selection_automatically_ = false; This will need to be rebased. ...
5 years, 7 months ago (2015-05-08 22:05:52 UTC) #10
jdduke (slow)
https://codereview.chromium.org/1102933003/diff/60001/ui/touch_selection/touch_selection_controller_unittest.cc File ui/touch_selection/touch_selection_controller_unittest.cc (right): https://codereview.chromium.org/1102933003/diff/60001/ui/touch_selection/touch_selection_controller_unittest.cc#newcode992 ui/touch_selection/touch_selection_controller_unittest.cc:992: } On 2015/05/08 22:05:52, jdduke wrote: > I would ...
5 years, 7 months ago (2015-05-08 22:07:04 UTC) #11
Donn Denman
Jared, I know you're travelling, so don't feel any pressure to review this unless you ...
5 years, 7 months ago (2015-05-11 21:23:39 UTC) #12
jdduke (slow)
lgtm with test nit. https://chromiumcodereview.appspot.com/1102933003/diff/80001/ui/touch_selection/touch_selection_controller_unittest.cc File ui/touch_selection/touch_selection_controller_unittest.cc (right): https://chromiumcodereview.appspot.com/1102933003/diff/80001/ui/touch_selection/touch_selection_controller_unittest.cc#newcode998 ui/touch_selection/touch_selection_controller_unittest.cc:998: ChangeSelection(start_rect, visible, end_rect, visible); I ...
5 years, 7 months ago (2015-05-11 21:32:18 UTC) #13
jdduke (slow)
On 2015/05/11 21:32:18, jdduke wrote: https://chromiumcodereview.appspot.com/1102933003/diff/80001/ui/touch_selection/touch_selection_controller_unittest.cc#newcode1020 > ui/touch_selection/touch_selection_controller_unittest.cc:1020: // Reset the > selection. > Hmm, ...
5 years, 7 months ago (2015-05-11 21:33:02 UTC) #14
jdduke (slow)
On 2015/05/11 21:33:02, jdduke wrote: > On 2015/05/11 21:32:18, jdduke wrote: > https://chromiumcodereview.appspot.com/1102933003/diff/80001/ui/touch_selection/touch_selection_controller_unittest.cc#newcode1020 > > ...
5 years, 7 months ago (2015-05-11 21:34:11 UTC) #15
jdduke (slow)
On 2015/05/11 21:34:11, jdduke wrote: > On 2015/05/11 21:33:02, jdduke wrote: > > On 2015/05/11 ...
5 years, 7 months ago (2015-05-11 21:53:30 UTC) #16
Donn Denman
On 2015/05/11 21:53:30, jdduke wrote: > On 2015/05/11 21:34:11, jdduke wrote: > > On 2015/05/11 ...
5 years, 7 months ago (2015-05-12 21:42:12 UTC) #17
Donn Denman
Here's that comment. https://chromiumcodereview.appspot.com/1102933003/diff/100001/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://chromiumcodereview.appspot.com/1102933003/diff/100001/ui/touch_selection/touch_selection_controller.cc#newcode189 ui/touch_selection/touch_selection_controller.cc:189: if (active_status_ != SELECTION_ACTIVE && Jared, ...
5 years, 7 months ago (2015-05-12 21:42:49 UTC) #18
jdduke (slow)
https://chromiumcodereview.appspot.com/1102933003/diff/100001/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://chromiumcodereview.appspot.com/1102933003/diff/100001/ui/touch_selection/touch_selection_controller.cc#newcode182 ui/touch_selection/touch_selection_controller.cc:182: bool TouchSelectionController::WillHandleTapOrLongPress( Nit: The implementation order should match the ...
5 years, 7 months ago (2015-05-12 22:33:01 UTC) #19
Donn Denman
Jared, PTAL. Thanks! https://chromiumcodereview.appspot.com/1102933003/diff/100001/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://chromiumcodereview.appspot.com/1102933003/diff/100001/ui/touch_selection/touch_selection_controller.cc#newcode182 ui/touch_selection/touch_selection_controller.cc:182: bool TouchSelectionController::WillHandleTapOrLongPress( On 2015/05/12 22:33:01, jdduke ...
5 years, 7 months ago (2015-05-12 22:52:48 UTC) #20
jdduke (slow)
lgtm!
5 years, 7 months ago (2015-05-12 23:13:24 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1102933003/120001
5 years, 7 months ago (2015-05-12 23:24:48 UTC) #23
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 7 months ago (2015-05-13 00:32:53 UTC) #24
commit-bot: I haz the power
5 years, 7 months ago (2015-05-13 00:33:33 UTC) #25
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/3de51de0426a9063026d21e60072b1b6bed4a2df
Cr-Commit-Position: refs/heads/master@{#329542}

Powered by Google App Engine
This is Rietveld 408576698