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

Issue 2970043002: Simplify SelectionController::UpdateSelectionForMouseDrag() (Closed)

Created:
3 years, 5 months ago by yosin_UTC9
Modified:
3 years, 5 months ago
Reviewers:
yoichio
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify SelectionController::UpdateSelectionForMouseDrag() This patch changes |SelectionController::UpdateSelectionForMouseDrag()| to utilize |AdjustPositionRespectUserSelectAll()| and |ExtendSelectionAsDirectional()| as what we are doing for Shift+Click to simplify implementation for improving code health. Processing of Shift+Click and mouse drag are similar, we do as following: * Shift-Click: 1. Click to set selection base at clicked position selection.collapse(clickedPositon) 2. Shift+Click to extend selection to clicked position selection.extend(clickedPoosition) * Mouse Drag: 1. Mouse left-button down to set selection base at mouse down position. selection.collapse(downPosition) 2. Mouse move, holding left-button down, to extend selection to position where move moved. selection.extend(movedPosition) Step 2 of both are same, extend to position where mouse is. BUG=692923 TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2970043002 Cr-Commit-Position: refs/heads/master@{#484836} Committed: https://chromium.googlesource.com/chromium/src/+/8ba4cfa3d3beed403d349394e8569905381a21aa

Patch Set 1 : 2017-07-07T10:03:10 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -86 lines) Patch
M third_party/WebKit/Source/core/editing/SelectionController.cpp View 2 chunks +17 lines, -86 lines 0 comments Download

Messages

Total messages: 26 (22 generated)
yosin_UTC9
PTAL
3 years, 5 months ago (2017-07-07 02:06:31 UTC) #19
yoichio
lgtm
3 years, 5 months ago (2017-07-07 04:53:12 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2970043002/40001
3 years, 5 months ago (2017-07-07 05:08:36 UTC) #22
commit-bot: I haz the power
3 years, 5 months ago (2017-07-07 05:12:35 UTC) #26
Message was sent while issue was closed.
Committed patchset #1 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/8ba4cfa3d3beed403d349394e856...

Powered by Google App Engine
This is Rietveld 408576698