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

Issue 1127133003: Adjusts dragging logic to be less likely to trigger false positive switch from snapping to docking (Closed)

Created:
5 years, 7 months ago by varkha
Modified:
5 years, 7 months ago
Reviewers:
pkotwicz
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adjusts dragging logic to be less likely to trigger false positive switch from snapping to docking. This CL adjusts the logic which selects whether a window will be snapped to half of the workspace width or will be docked at the end of the drag when the window is dragged to the edge of the workspace in the special case of the dock being visible. The CL makes it easier to snap a window to half the workspace width in this special case (and harder to inadvertently dock the window) BUG=484877 TEST=None Committed: https://crrev.com/988c697aff35b3fd347dec35f2f2ac159c8328a9 Cr-Commit-Position: refs/heads/master@{#329268}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Adjusts docking dragging logic to be more tolerant (comments) #

Patch Set 3 : Adjusts docking dragging logic to be more tolerant (adjustment to allow touch) #

Total comments: 5

Patch Set 4 : Adjusts docking dragging logic to be more tolerant (optimization) #

Total comments: 8

Patch Set 5 : Adjusts docking dragging logic to be more tolerant (nits) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -25 lines) Patch
M ash/wm/workspace/two_step_edge_cycler.h View 1 2 3 4 2 chunks +13 lines, -1 line 0 comments Download
M ash/wm/workspace/two_step_edge_cycler.cc View 1 2 3 4 2 chunks +30 lines, -12 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer.h View 1 1 chunk +4 lines, -9 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer.cc View 1 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 32 (11 generated)
varkha
pkotwicz@, can you please take a look - see if you think this logic can ...
5 years, 7 months ago (2015-05-06 15:03:03 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1127133003/1
5 years, 7 months ago (2015-05-06 15:31:01 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-06 16:48:48 UTC) #6
pkotwicz
Mostly looks good. Can you make the CL description more descriptive? It has been a ...
5 years, 7 months ago (2015-05-07 17:10:28 UTC) #7
varkha
Thanks! PTAL. https://codereview.chromium.org/1127133003/diff/1/ash/wm/workspace/two_step_edge_cycler.cc File ash/wm/workspace/two_step_edge_cycler.cc (right): https://codereview.chromium.org/1127133003/diff/1/ash/wm/workspace/two_step_edge_cycler.cc#newcode17 ash/wm/workspace/two_step_edge_cycler.cc:17: // . The mouse is moved |kMaxMoves| ...
5 years, 7 months ago (2015-05-07 20:27:28 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1127133003/20001
5 years, 7 months ago (2015-05-07 20:31:01 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1127133003/40001
5 years, 7 months ago (2015-05-07 21:09:01 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-07 22:06:11 UTC) #14
varkha
pkotwicz@, ping?
5 years, 7 months ago (2015-05-08 20:00:30 UTC) #15
pkotwicz
Sorry, I was on vacation. I think that this CL makes it harder to get ...
5 years, 7 months ago (2015-05-11 17:32:41 UTC) #16
pkotwicz
Sorry, I was on vacation. I think that this CL makes it harder to get ...
5 years, 7 months ago (2015-05-11 17:32:46 UTC) #17
pkotwicz
https://codereview.chromium.org/1127133003/diff/40001/ash/wm/workspace/two_step_edge_cycler.cc File ash/wm/workspace/two_step_edge_cycler.cc (right): https://codereview.chromium.org/1127133003/diff/40001/ash/wm/workspace/two_step_edge_cycler.cc#newcode45 ash/wm/workspace/two_step_edge_cycler.cc:45: Correction: I would be tempted to do something like ...
5 years, 7 months ago (2015-05-11 17:35:06 UTC) #18
varkha
Thanks for a suggestion, it also makes the code a bit more optimal in some ...
5 years, 7 months ago (2015-05-11 20:19:38 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1127133003/60001
5 years, 7 months ago (2015-05-11 20:20:50 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-11 21:23:17 UTC) #23
pkotwicz
LGTM with nits https://codereview.chromium.org/1127133003/diff/60001/ash/wm/workspace/two_step_edge_cycler.cc File ash/wm/workspace/two_step_edge_cycler.cc (right): https://codereview.chromium.org/1127133003/diff/60001/ash/wm/workspace/two_step_edge_cycler.cc#newcode20 ash/wm/workspace/two_step_edge_cycler.cc:20: // direction. Nit: Can you remove ...
5 years, 7 months ago (2015-05-11 21:35:21 UTC) #24
varkha
Thanks, makes it easier to understand! https://codereview.chromium.org/1127133003/diff/60001/ash/wm/workspace/two_step_edge_cycler.cc File ash/wm/workspace/two_step_edge_cycler.cc (right): https://codereview.chromium.org/1127133003/diff/60001/ash/wm/workspace/two_step_edge_cycler.cc#newcode20 ash/wm/workspace/two_step_edge_cycler.cc:20: // direction. On ...
5 years, 7 months ago (2015-05-11 22:09:31 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1127133003/90001
5 years, 7 months ago (2015-05-11 22:12:45 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:90001)
5 years, 7 months ago (2015-05-11 23:12:58 UTC) #30
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/988c697aff35b3fd347dec35f2f2ac159c8328a9 Cr-Commit-Position: refs/heads/master@{#329268}
5 years, 7 months ago (2015-05-11 23:13:45 UTC) #31
Dirk Pranke
5 years, 7 months ago (2015-05-12 00:51:06 UTC) #32
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:90001) has been created in
https://codereview.chromium.org/1128933005/ by dpranke@chromium.org.

The reason for reverting is: I suspect this is causing a browser_tests failure
on the bots:

http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%2...
https://build.chromium.org/p/chromium.webkit/builders/Linux%20ChromiumOS%20Te...

Sorry!.

Powered by Google App Engine
This is Rietveld 408576698