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

Issue 12441010: Attach panel while dragging to bring it in front of other panels. (Closed)

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

Description

Attach panel while dragging to bring it in front of other panels. BUG=181249 TEST=PanelWindowResizerTest.DragMovesToPanelLayer Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=189536

Patch Set 1 #

Total comments: 1

Patch Set 2 : Comments, etc. #

Total comments: 4

Patch Set 3 : Get workspace event handler from workspace controller. #

Total comments: 3

Patch Set 4 : Temporarily add handlers to another container when reparenting dragged window. #

Patch Set 5 : Check that dragged panel is in panel container before stacking at top. #

Total comments: 4

Patch Set 6 : Complete drag on reparenting otherwise and address comments #

Patch Set 7 : Fix merge. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -10 lines) Patch
M ash/wm/panels/panel_layout_manager.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M ash/wm/panels/panel_window_resizer.cc View 1 2 3 4 5 3 chunks +16 lines, -7 lines 0 comments Download
M ash/wm/panels/panel_window_resizer_unittest.cc View 1 2 3 4 5 6 4 chunks +23 lines, -0 lines 0 comments Download
M ash/wm/toplevel_window_event_handler.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M ash/wm/toplevel_window_event_handler.cc View 1 2 3 4 5 4 chunks +46 lines, -2 lines 1 comment Download
M ash/wm/window_properties.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ash/wm/window_properties.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
flackr
Hey, please take a look. I added a few extra checks to the panel detach ...
7 years, 9 months ago (2013-03-13 19:20:26 UTC) #1
stevenjb
+sky@ I haven't looked too deeply at the resizer or drag handler code yet and ...
7 years, 9 months ago (2013-03-13 19:31:39 UTC) #2
flackr
Alternately, we could try having a single TopLevelWindowEventHandler for the various containers and then we ...
7 years, 9 months ago (2013-03-13 19:41:22 UTC) #3
sky
https://codereview.chromium.org/12441010/diff/4002/ash/wm/window_resizer_owner.h File ash/wm/window_resizer_owner.h (right): https://codereview.chromium.org/12441010/diff/4002/ash/wm/window_resizer_owner.h#newcode17 ash/wm/window_resizer_owner.h:17: virtual void PassResizer(WindowResizerOwner* new_owner) = 0; This seems specific ...
7 years, 9 months ago (2013-03-13 21:21:34 UTC) #4
flackr
https://codereview.chromium.org/12441010/diff/4002/ash/wm/window_resizer_owner.h File ash/wm/window_resizer_owner.h (right): https://codereview.chromium.org/12441010/diff/4002/ash/wm/window_resizer_owner.h#newcode17 ash/wm/window_resizer_owner.h:17: virtual void PassResizer(WindowResizerOwner* new_owner) = 0; On 2013/03/13 21:21:34, ...
7 years, 9 months ago (2013-03-14 20:02:15 UTC) #5
sky
I don't think I understand this. Why doesn't the EventHandler for panels create the WindowResizer ...
7 years, 9 months ago (2013-03-14 20:34:46 UTC) #6
flackr
When the panel is detached it's reparented to the workspace container like a regular window ...
7 years, 9 months ago (2013-03-14 20:42:04 UTC) #7
flackr
Hi, as discussed I've changed the code such that the ToplevelWindowEventHandler::ScopedWindowResizer temporarily adds handlers on ...
7 years, 9 months ago (2013-03-16 13:33:32 UTC) #8
sky
I get that we don't cancel drags now if a window is reparented now, but ...
7 years, 9 months ago (2013-03-18 16:17:47 UTC) #9
flackr
Definitely agree, just wanted to be sure there wasn't any reason we didn't. It does ...
7 years, 9 months ago (2013-03-20 01:59:32 UTC) #10
flackr
https://codereview.chromium.org/12441010/diff/15006/ash/wm/toplevel_window_event_handler.cc File ash/wm/toplevel_window_event_handler.cc (right): https://codereview.chromium.org/12441010/diff/15006/ash/wm/toplevel_window_event_handler.cc#newcode112 ash/wm/toplevel_window_event_handler.cc:112: handler_->CompleteDrag(DRAG_COMPLETE, 0); If the new parent is also contained ...
7 years, 9 months ago (2013-03-20 10:01:40 UTC) #11
sky
LGTM
7 years, 9 months ago (2013-03-20 14:31:50 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/12441010/15006
7 years, 9 months ago (2013-03-20 20:53:50 UTC) #13
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=109540
7 years, 9 months ago (2013-03-20 23:10:36 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/12441010/15006
7 years, 9 months ago (2013-03-20 23:48:03 UTC) #15
commit-bot: I haz the power
7 years, 9 months ago (2013-03-21 06:41:27 UTC) #16
Message was sent while issue was closed.
Change committed as 189536

Powered by Google App Engine
This is Rietveld 408576698