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

Issue 14273008: Add ash-enable-sticky-edges for 'sticky' instead of 'snap' behavior. (Closed)

Created:
7 years, 8 months ago by stevenjb
Modified:
7 years, 8 months ago
Reviewers:
flackr, varkha, sky
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Add ash-enable-sticky-edges for 'sticky' instead of 'snap' behavior. I renamed everything related to edges to 'sticky' to differentiate it from SnapSizer in the code. I put the new behavior (which is a pretty trivial change) behind a flag. I moved ShouldStickToEdge to window_util.cc in case we want to use the smae logic in snapping panels to / from the launcher. However, my initial experimentation with that was not great so I left that change out for now. BUG=228955 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195809

Patch Set 1 #

Total comments: 10

Patch Set 2 : Revert max bounds change, address feedback #

Patch Set 3 : Fewer sticky renames + unittests #

Patch Set 4 : . #

Total comments: 14

Patch Set 5 : Address feedback #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -44 lines) Patch
M ash/ash_switches.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ash/ash_switches.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer.h View 1 2 3 4 1 chunk +9 lines, -10 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer.cc View 1 2 3 4 10 chunks +43 lines, -29 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer_unittest.cc View 1 2 5 chunks +120 lines, -5 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
stevenjb
7 years, 8 months ago (2013-04-15 23:27:00 UTC) #1
stevenjb
7 years, 8 months ago (2013-04-16 00:11:57 UTC) #2
flackr
https://codereview.chromium.org/14273008/diff/1/ash/wm/window_util.cc File ash/wm/window_util.cc (right): https://codereview.chromium.org/14273008/diff/1/ash/wm/window_util.cc#newcode238 ash/wm/window_util.cc:238: const int sticky_size = internal::WorkspaceWindowResizer::kScreenEdgeInset; Assuming this method stays ...
7 years, 8 months ago (2013-04-16 00:32:14 UTC) #3
varkha
https://codereview.chromium.org/14273008/diff/1/ash/wm/base_layout_manager.cc File ash/wm/base_layout_manager.cc (right): https://codereview.chromium.org/14273008/diff/1/ash/wm/base_layout_manager.cc#newcode58 ash/wm/base_layout_manager.cc:58: switches::kAshEnableStickyEdges)) { This changes the behavior of restore after ...
7 years, 8 months ago (2013-04-16 02:12:12 UTC) #4
stevenjb
PTAL https://codereview.chromium.org/14273008/diff/1/ash/wm/base_layout_manager.cc File ash/wm/base_layout_manager.cc (right): https://codereview.chromium.org/14273008/diff/1/ash/wm/base_layout_manager.cc#newcode58 ash/wm/base_layout_manager.cc:58: switches::kAshEnableStickyEdges)) { On 2013/04/16 02:12:12, varkha wrote: > ...
7 years, 8 months ago (2013-04-16 20:08:20 UTC) #5
flackr
I do think it's odd that we pass sticky_size around when the only thing that ...
7 years, 8 months ago (2013-04-16 21:07:00 UTC) #6
flackr
Sorry, just noticed there are snapping tests. Can you add sticky tests? I think for ...
7 years, 8 months ago (2013-04-16 21:08:21 UTC) #7
stevenjb
Tests added.
7 years, 8 months ago (2013-04-18 00:02:23 UTC) #8
flackr
lgtm
7 years, 8 months ago (2013-04-18 04:43:59 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/14273008/21001
7 years, 8 months ago (2013-04-18 15:21:13 UTC) #10
commit-bot: I haz the power
Presubmit check for 14273008-21001 failed and returned exit status 1. INFO:root:Found 5 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-18 15:21:17 UTC) #11
stevenjb
sky@ - OWNER review please.
7 years, 8 months ago (2013-04-18 15:22:24 UTC) #12
varkha
https://codereview.chromium.org/14273008/diff/21001/ash/wm/workspace/workspace_window_resizer_unittest.cc File ash/wm/workspace/workspace_window_resizer_unittest.cc (right): https://codereview.chromium.org/14273008/diff/21001/ash/wm/workspace/workspace_window_resizer_unittest.cc#newcode170 ash/wm/workspace/workspace_window_resizer_unittest.cc:170: virtual ~WorkspaceWindowResizerTestSticky() {} Should the test clean the command ...
7 years, 8 months ago (2013-04-20 15:03:58 UTC) #13
sky
Just nits https://codereview.chromium.org/14273008/diff/21001/ash/wm/workspace/workspace_window_resizer.cc File ash/wm/workspace/workspace_window_resizer.cc (right): https://codereview.chromium.org/14273008/diff/21001/ash/wm/workspace/workspace_window_resizer.cc#newcode79 ash/wm/workspace/workspace_window_resizer.cc:79: const int kStickySize = 64; Comment. https://codereview.chromium.org/14273008/diff/21001/ash/wm/workspace/workspace_window_resizer.cc#newcode87 ...
7 years, 8 months ago (2013-04-22 17:20:00 UTC) #14
stevenjb
https://codereview.chromium.org/14273008/diff/21001/ash/wm/workspace/workspace_window_resizer_unittest.cc File ash/wm/workspace/workspace_window_resizer_unittest.cc (right): https://codereview.chromium.org/14273008/diff/21001/ash/wm/workspace/workspace_window_resizer_unittest.cc#newcode170 ash/wm/workspace/workspace_window_resizer_unittest.cc:170: virtual ~WorkspaceWindowResizerTestSticky() {} On 2013/04/20 15:03:58, varkha wrote: > ...
7 years, 8 months ago (2013-04-22 17:49:01 UTC) #15
stevenjb
https://codereview.chromium.org/14273008/diff/21001/ash/wm/workspace/workspace_window_resizer.cc File ash/wm/workspace/workspace_window_resizer.cc (right): https://codereview.chromium.org/14273008/diff/21001/ash/wm/workspace/workspace_window_resizer.cc#newcode79 ash/wm/workspace/workspace_window_resizer.cc:79: const int kStickySize = 64; On 2013/04/22 17:20:00, sky ...
7 years, 8 months ago (2013-04-22 18:09:41 UTC) #16
stevenjb
sky@ - PTAL Note: linux_chromeos failure was flakiness.
7 years, 8 months ago (2013-04-22 22:27:52 UTC) #17
sky
LGTM
7 years, 8 months ago (2013-04-22 22:31:44 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/14273008/35001
7 years, 8 months ago (2013-04-22 23:03:34 UTC) #19
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-23 00:33:41 UTC) #20
stevenjb
7 years, 8 months ago (2013-04-23 16:28:31 UTC) #21
Message was sent while issue was closed.
Committed patchset #6 manually as r195809 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698