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

Issue 1404163004: Swap touch selection handles when they are interchanged (Closed)

Created:
5 years, 2 months ago by AviD
Modified:
5 years ago
Reviewers:
AKV, mohsen, jdduke (slow)
CC:
asanka, benjhayden+dwatch_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Swap touch selection handles when they are interchanged When the end selection handle and start selection handle are interchanged when dragging selection, swapping of handles is done to maintain states of appropriate handles. BUG=544095 Committed: https://crrev.com/0ee7ae6db8d2ecb16154b1678827991a2f3f9160 Cr-Commit-Position: refs/heads/master@{#366031}

Patch Set 1 #

Patch Set 2 : unittests #

Patch Set 3 : cleanup #

Total comments: 9

Patch Set 4 : #

Total comments: 6

Patch Set 5 : review comments #

Patch Set 6 : linux build error #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -0 lines) Patch
M ui/touch_selection/touch_handle_drawable_aura.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 1 comment Download
M ui/touch_selection/touch_selection_controller.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M ui/touch_selection/touch_selection_controller_test_api.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/touch_selection/touch_selection_controller_test_api.cc View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M ui/touch_selection/touch_selection_controller_unittest.cc View 1 2 3 4 1 chunk +118 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (9 generated)
AKV
Please check inline comments. https://codereview.chromium.org/1404163004/diff/40001/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://codereview.chromium.org/1404163004/diff/40001/ui/touch_selection/touch_selection_controller.cc#newcode93 ui/touch_selection/touch_selection_controller.cc:93: if (active_status_ == SELECTION_ACTIVE && ...
5 years, 2 months ago (2015-10-21 06:19:29 UTC) #2
AviD
https://codereview.chromium.org/1404163004/diff/40001/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://codereview.chromium.org/1404163004/diff/40001/ui/touch_selection/touch_selection_controller.cc#newcode93 ui/touch_selection/touch_selection_controller.cc:93: if (active_status_ == SELECTION_ACTIVE && On 2015/10/21 06:19:29, AKV ...
5 years, 2 months ago (2015-10-21 06:40:02 UTC) #3
AKV
Thanks. peer review looks good to me!
5 years, 2 months ago (2015-10-21 13:21:33 UTC) #4
AviD
@jdduke: Could you PTAL?
5 years, 2 months ago (2015-10-21 13:39:58 UTC) #6
jdduke (slow)
On 2015/10/21 13:39:58, AviD wrote: > @jdduke: Could you PTAL? This has been a known ...
5 years, 2 months ago (2015-10-21 16:29:44 UTC) #7
AviD
On 2015/10/21 16:29:44, jdduke wrote: > On 2015/10/21 13:39:58, AviD wrote: > > @jdduke: Could ...
5 years, 2 months ago (2015-10-22 11:24:14 UTC) #8
jdduke (slow)
+mohsen might have some thoughts here. I guess the right (long term) thing to do ...
5 years, 2 months ago (2015-10-22 15:32:48 UTC) #10
AviD
On 2015/10/22 15:32:48, jdduke wrote: > +mohsen might have some thoughts here. > > I ...
5 years, 1 month ago (2015-10-26 14:32:06 UTC) #11
AviD
@mohsen: Could you PTAL?
5 years, 1 month ago (2015-11-16 06:57:48 UTC) #12
mohsen
This patch generally looks good to me. However, because of an issue in TouchHandleDrawableAura, it ...
5 years, 1 month ago (2015-11-19 21:35:36 UTC) #13
AviD
Added call to SchedulePaintInRect(relative_bounds_) in Aura handles. Could you PTAL? https://codereview.chromium.org/1404163004/diff/60001/ui/touch_selection/touch_selection_controller.cc File ui/touch_selection/touch_selection_controller.cc (right): https://codereview.chromium.org/1404163004/diff/60001/ui/touch_selection/touch_selection_controller.cc#newcode663 ...
5 years ago (2015-12-11 11:25:54 UTC) #14
mohsen
Thanks, LGTM.
5 years ago (2015-12-14 15:55:40 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1404163004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1404163004/80001
5 years ago (2015-12-15 05:49:05 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/93128) linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years ago (2015-12-15 05:59:11 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1404163004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1404163004/100001
5 years ago (2015-12-18 05:32:50 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years ago (2015-12-18 06:34:33 UTC) #24
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/0ee7ae6db8d2ecb16154b1678827991a2f3f9160 Cr-Commit-Position: refs/heads/master@{#366031}
5 years ago (2015-12-18 06:36:04 UTC) #26
mohsen
5 years ago (2015-12-21 21:05:50 UTC) #27
Message was sent while issue was closed.
https://codereview.chromium.org/1404163004/diff/100001/ui/touch_selection/tou...
File ui/touch_selection/touch_handle_drawable_aura.cc (right):

https://codereview.chromium.org/1404163004/diff/100001/ui/touch_selection/tou...
ui/touch_selection/touch_handle_drawable_aura.cc:121: relative_bounds_.width(),
relative_bounds_.height());
I think you should've used gfx::ToEnclosingRect() function to convert gfx::RectF
to gfx::Rect.

Powered by Google App Engine
This is Rietveld 408576698