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

Issue 121153003: Prevents panels attached to shelf from docking (Closed)

Created:
6 years, 11 months ago by varkha
Modified:
6 years, 11 months ago
Reviewers:
oshima
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Removes individual instances of Details structure in WindowResizer subclasses and adds DragDetails to WindowState. It is possible to access the current WindowResizer during the drag via window_state->drag_details()->window_resizer. Simplifies construction of WindowResizer chain by creating DragDetails once at a point where creation of the resizer chain is imminent (after all checks that would return empty WindowResizer object are made). Keeps track of whether currently dragged window is a panel attached to the shelf and if so prevents it from indicating that it can be docked (and from getting docked). BUG=310931 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244246

Patch Set 1 #

Patch Set 2 : Prevents panels attached to shelf from docking (comments+rebased) #

Total comments: 12

Patch Set 3 : Prevents panels attached to shelf from docking (comments) #

Total comments: 10

Patch Set 4 : Prevents panels attached to shelf from docking (nits) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+547 lines, -579 lines) Patch
M ash/ash.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ash/wm/default_window_resizer.h View 1 1 chunk +5 lines, -13 lines 0 comments Download
M ash/wm/default_window_resizer.cc View 1 2 chunks +13 lines, -26 lines 0 comments Download
M ash/wm/dock/docked_window_layout_manager.cc View 1 2 chunks +7 lines, -3 lines 0 comments Download
M ash/wm/dock/docked_window_resizer.h View 1 2 chunks +2 lines, -9 lines 0 comments Download
M ash/wm/dock/docked_window_resizer.cc View 1 10 chunks +20 lines, -36 lines 0 comments Download
A ash/wm/drag_details.h View 1 2 3 1 chunk +72 lines, -0 lines 0 comments Download
A ash/wm/drag_details.cc View 1 2 3 1 chunk +74 lines, -0 lines 0 comments Download
M ash/wm/drag_window_resizer.h View 1 3 chunks +2 lines, -9 lines 0 comments Download
M ash/wm/drag_window_resizer.cc View 1 2 10 chunks +18 lines, -33 lines 0 comments Download
M ash/wm/panels/panel_window_resizer.h View 1 4 chunks +2 lines, -12 lines 0 comments Download
M ash/wm/panels/panel_window_resizer.cc View 1 6 chunks +19 lines, -32 lines 0 comments Download
M ash/wm/window_resizer.h View 1 2 4 chunks +25 lines, -74 lines 0 comments Download
M ash/wm/window_resizer.cc View 1 2 8 chunks +104 lines, -178 lines 0 comments Download
M ash/wm/window_state.h View 1 2 4 chunks +26 lines, -13 lines 0 comments Download
M ash/wm/window_state.cc View 1 2 3 2 chunks +16 lines, -1 line 0 comments Download
M ash/wm/workspace/multi_window_resize_controller.cc View 1 2 3 chunks +8 lines, -6 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer.h View 1 3 chunks +3 lines, -12 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer.cc View 1 2 3 28 chunks +99 lines, -103 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer_unittest.cc View 1 2 20 chunks +30 lines, -19 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
varkha
flackr@, what do you think about this? I have tried adjusting panel attachment to only ...
6 years, 11 months ago (2014-01-03 20:24:45 UTC) #1
varkha
oshima@, can you please take a look? I wasn't sure if passing data between the ...
6 years, 11 months ago (2014-01-06 20:47:22 UTC) #2
oshima
can't we move should_attach to WindowResizer::Details, add WindowResizer WindowState->window_resizer()->details.should_attach ? (could be WindowState->drag_details().should_attach) (I think ...
6 years, 11 months ago (2014-01-08 01:21:42 UTC) #3
oshima
On 2014/01/08 01:21:42, oshima wrote: > can't we move should_attach to WindowResizer::Details, > add WindowResizer ...
6 years, 11 months ago (2014-01-08 01:25:11 UTC) #4
varkha
>> Or simply store DragDetails to WindowState. If we can replace WindowResizer in >> WindowState ...
6 years, 11 months ago (2014-01-09 04:15:51 UTC) #5
oshima
thanks looks good. https://codereview.chromium.org/121153003/diff/200001/ash/wm/drag_details.h File ash/wm/drag_details.h (right): https://codereview.chromium.org/121153003/diff/200001/ash/wm/drag_details.h#newcode26 ash/wm/drag_details.h:26: DragDetails(); where is this constructor used? ...
6 years, 11 months ago (2014-01-09 19:13:45 UTC) #6
varkha
https://codereview.chromium.org/121153003/diff/200001/ash/wm/drag_details.h File ash/wm/drag_details.h (right): https://codereview.chromium.org/121153003/diff/200001/ash/wm/drag_details.h#newcode26 ash/wm/drag_details.h:26: DragDetails(); On 2014/01/09 19:13:45, oshima wrote: > where is ...
6 years, 11 months ago (2014-01-10 01:34:50 UTC) #7
oshima
lgtm with nits. https://codereview.chromium.org/121153003/diff/410001/ash/wm/drag_details.cc File ash/wm/drag_details.cc (right): https://codereview.chromium.org/121153003/diff/410001/ash/wm/drag_details.cc#newcode1 ash/wm/drag_details.cc:1: // Copyright (c) 2013 The Chromium ...
6 years, 11 months ago (2014-01-10 02:28:51 UTC) #8
oshima
https://codereview.chromium.org/121153003/diff/410001/ash/wm/window_state.cc File ash/wm/window_state.cc (right): https://codereview.chromium.org/121153003/diff/410001/ash/wm/window_state.cc#newcode262 ash/wm/window_state.cc:262: drag_details_.reset(details.release()); Forgot to mention. If you want to keep ...
6 years, 11 months ago (2014-01-10 02:41:38 UTC) #9
varkha
Thanks, this was interesting and the end result is less code - always a good ...
6 years, 11 months ago (2014-01-10 06:13:07 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/121153003/420002
6 years, 11 months ago (2014-01-10 06:14:35 UTC) #11
commit-bot: I haz the power
Retried try job too often on linux_chromeos_clang for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos_clang&number=66304
6 years, 11 months ago (2014-01-10 07:20:51 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/121153003/880001
6 years, 11 months ago (2014-01-10 15:27:40 UTC) #13
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=244824
6 years, 11 months ago (2014-01-10 17:03:23 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/121153003/880001
6 years, 11 months ago (2014-01-10 17:17:59 UTC) #15
commit-bot: I haz the power
6 years, 11 months ago (2014-01-10 21:41:28 UTC) #16
Message was sent while issue was closed.
Change committed as 244246

Powered by Google App Engine
This is Rietveld 408576698