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

Issue 657803002: Update touch selection to only modify one selection point at a time. (Closed)

Created:
6 years, 2 months ago by christiank
Modified:
6 years, 1 month ago
CC:
chromium-reviews, creis+watch_chromium.org, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, nasko+codewatch_chromium.org, jam, penghuang+watch_chromium.org, mkwst+moarreviews-ipc_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, James Su, jdduke+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Update touch selection to only modify one selection point at a time. This is made in preparation for enabling selection auto scroll using touch handles. BUG=340658 Committed: https://crrev.com/aeed9866ec8ef2172404784edeebc85aaafbf330 Cr-Commit-Position: refs/heads/master@{#302776}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Updates #

Patch Set 3 : Fix DCHECK #

Total comments: 4

Patch Set 4 : Rename |position| to |extent| #

Patch Set 5 : More updates #

Total comments: 3

Patch Set 6 : Address issues and add tests #

Total comments: 4

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+468 lines, -67 lines) Patch
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 1 chunk +13 lines, -6 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl.h View 1 2 3 4 5 6 3 chunks +8 lines, -6 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl.cc View 1 2 3 4 5 6 7 chunks +36 lines, -15 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl_unittest.cc View 1 2 3 4 5 6 4 chunks +194 lines, -4 lines 0 comments Download
M content/browser/renderer_host/input/touch_selection_controller.h View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/touch_selection_controller.cc View 1 2 chunks +11 lines, -5 lines 0 comments Download
M content/browser/renderer_host/input/touch_selection_controller_unittest.cc View 1 2 3 4 5 6 5 chunks +135 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 1 chunk +9 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 1 chunk +12 lines, -3 lines 0 comments Download
M content/common/input_messages.h View 1 2 3 4 5 6 2 chunks +16 lines, -2 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 3 chunks +15 lines, -4 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (4 generated)
christiank
First patch in preparation for touch selection auto scroll on Android. After some discussion we ...
6 years, 2 months ago (2014-10-15 09:55:03 UTC) #3
jdduke (slow)
Thanks! This looks pretty sensible, just a few minor notes. https://codereview.chromium.org/657803002/diff/1/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/657803002/diff/1/content/browser/renderer_host/input/input_router_impl.cc#newcode320 ...
6 years, 2 months ago (2014-10-15 15:46:07 UTC) #4
christiank
https://codereview.chromium.org/657803002/diff/1/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/657803002/diff/1/content/browser/renderer_host/input/input_router_impl.cc#newcode320 content/browser/renderer_host/input/input_router_impl.cc:320: if (move_selection_extent_pending_) { On 2014/10/15 15:46:07, jdduke (OOO until ...
6 years, 2 months ago (2014-10-17 14:33:05 UTC) #5
christiank
6 years, 2 months ago (2014-10-17 14:37:55 UTC) #6
palmer
IPC security LGTM.
6 years, 2 months ago (2014-10-17 21:47:03 UTC) #7
jdduke (slow)
Thanks, this is looking pretty good. https://codereview.chromium.org/657803002/diff/40001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/657803002/diff/40001/content/browser/android/content_view_core_impl.cc#newcode781 content/browser/android/content_view_core_impl.cc:781: const gfx::PointF& position) ...
6 years, 2 months ago (2014-10-21 16:57:36 UTC) #8
christiank
https://codereview.chromium.org/657803002/diff/40001/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/657803002/diff/40001/content/browser/renderer_host/input/input_router_impl.cc#newcode319 content/browser/renderer_host/input/input_router_impl.cc:319: DCHECK(message->type() == InputMsg_MoveRangeSelectionExtent::ID); On 2014/10/21 16:57:36, jdduke wrote: > ...
6 years, 2 months ago (2014-10-22 12:16:06 UTC) #9
christiank
On 2014/10/21 16:57:36, jdduke wrote: > Thanks, this is looking pretty good. > > https://codereview.chromium.org/657803002/diff/40001/content/browser/android/content_view_core_impl.cc ...
6 years, 1 month ago (2014-10-27 07:06:09 UTC) #10
jdduke (slow)
content/browser/android lgtm. content/browser/renderer_host/input lgtm with an additional input_router_impl test for the interleaved message types. Thanks! ...
6 years, 1 month ago (2014-10-27 15:22:13 UTC) #11
christiank
On 2014/10/27 15:22:13, jdduke wrote: > content/browser/android lgtm. > content/browser/renderer_host/input lgtm with an additional input_router_impl ...
6 years, 1 month ago (2014-10-28 13:53:36 UTC) #13
christiank
On 2014/10/28 13:53:36, christiank wrote: > On 2014/10/27 15:22:13, jdduke wrote: > > content/browser/android lgtm. ...
6 years, 1 month ago (2014-11-03 07:06:13 UTC) #14
jdduke (slow)
Wow, I'm a bad person, I had this all reviewed but I forgot to publish ...
6 years, 1 month ago (2014-11-03 17:58:49 UTC) #15
christiank
https://codereview.chromium.org/657803002/diff/100001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/657803002/diff/100001/content/browser/android/content_view_core_impl.cc#newcode784 content/browser/android/content_view_core_impl.cc:784: web_contents_->MoveRangeSelectionExtent(gfx::Point(extent.x(), extent.y())); On 2014/11/03 17:58:48, jdduke wrote: > I ...
6 years, 1 month ago (2014-11-04 09:44:28 UTC) #16
jamesr
content/renderer/ lgtm
6 years, 1 month ago (2014-11-04 19:09:54 UTC) #17
no sievers
lgtm https://codereview.chromium.org/657803002/diff/100001/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/657803002/diff/100001/content/browser/renderer_host/input/input_router_impl.cc#newcode87 content/browser/renderer_host/input/input_router_impl.cc:87: STLDeleteElements(&pending_select_messages_); You can use STLElementDeleter to auto-delete when ...
6 years, 1 month ago (2014-11-04 22:12:10 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/657803002/120001
6 years, 1 month ago (2014-11-05 09:39:03 UTC) #20
commit-bot: I haz the power
Committed patchset #7 (id:120001)
6 years, 1 month ago (2014-11-05 10:49:24 UTC) #21
commit-bot: I haz the power
6 years, 1 month ago (2014-11-05 10:49:59 UTC) #22
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/aeed9866ec8ef2172404784edeebc85aaafbf330
Cr-Commit-Position: refs/heads/master@{#302776}

Powered by Google App Engine
This is Rietveld 408576698