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

Issue 38073004: Not moving a docked window when restoring a previously maximized window (Closed)

Created:
7 years, 2 months ago by varkha
Modified:
7 years, 1 month ago
CC:
chromium-reviews, sadrul, tfarina, dcheng, kalyank, ben+views_chromium.org, ben+ash_chromium.org, pkotwicz
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Not moving a docked window when restoring a previously maximized window. When a maximized window gets docked (possible with a secondary monitor - see bug steps to repro) it now gets restored first. This prevents weird animated behavior or hiding it when it gets undocked or restored. Additionally a tab dragged out of a maximized browser and docked is not maximized anymore at the end of the drag (this used to be causing it to get undocked immediately). BUG=309954 BUG=305276 TEST=interactive_ui_tests --gtest_filter=*TabDragControllerTest*DetachToDockedWindowFromMaximizedWindow* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231698

Patch Set 1 #

Patch Set 2 : Not moving a docked window when restoring a previously maximized window (test) #

Total comments: 4

Patch Set 3 : Not moving a docked window when restoring a previously maximized window (nits) #

Total comments: 2

Patch Set 4 : Not moving a docked window when restoring a previously maximized window (delegating IsDocked to non… #

Total comments: 3

Patch Set 5 : Not moving a docked window when restoring a previously maximized window (IsDocked local to TabDragC… #

Total comments: 2

Patch Set 6 : Not moving a docked window when restoring a previously maximized window (IsDocked moved to namespac… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -9 lines) Patch
M ash/wm/dock/docked_window_layout_manager.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/panels/panel_frame_view.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M ash/wm/window_state.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ash/wm/window_state.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller.cc View 1 2 3 4 5 4 chunks +24 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc View 1 2 3 4 8 chunks +116 lines, -2 lines 0 comments Download
M ui/views/widget/root_view.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
varkha
oshima@, please take a look. The CL prevents a maximized window from staying maximized when ...
7 years, 2 months ago (2013-10-23 23:54:18 UTC) #1
oshima
can you add test for this?
7 years, 2 months ago (2013-10-24 15:54:50 UTC) #2
varkha
PTAL. I have added a test that docks a maximized tab and verifies that it ...
7 years, 2 months ago (2013-10-24 21:58:43 UTC) #3
oshima
lgtm with nits https://codereview.chromium.org/38073004/diff/190001/chrome/browser/ui/views/tabs/tab_drag_controller.cc File chrome/browser/ui/views/tabs/tab_drag_controller.cc (right): https://codereview.chromium.org/38073004/diff/190001/chrome/browser/ui/views/tabs/tab_drag_controller.cc#newcode1899 chrome/browser/ui/views/tabs/tab_drag_controller.cc:1899: if (host_desktop_type_ == chrome::HOST_DESKTOP_TYPE_ASH && I ...
7 years, 1 month ago (2013-10-25 16:12:31 UTC) #4
varkha
+sky@ for OWNERS review. This is a case when dragging a tab from a maximized ...
7 years, 1 month ago (2013-10-25 17:05:03 UTC) #5
sky
https://codereview.chromium.org/38073004/diff/260001/chrome/browser/ui/views/tabs/tab_drag_controller.cc File chrome/browser/ui/views/tabs/tab_drag_controller.cc (right): https://codereview.chromium.org/38073004/diff/260001/chrome/browser/ui/views/tabs/tab_drag_controller.cc#newcode1878 chrome/browser/ui/views/tabs/tab_drag_controller.cc:1878: if (attached_tabstrip_->GetWidget()->GetNativeWindow()->parent()->id() == Is there a way for these ...
7 years, 1 month ago (2013-10-28 14:30:08 UTC) #6
varkha
https://codereview.chromium.org/38073004/diff/260001/chrome/browser/ui/views/tabs/tab_drag_controller.cc File chrome/browser/ui/views/tabs/tab_drag_controller.cc (right): https://codereview.chromium.org/38073004/diff/260001/chrome/browser/ui/views/tabs/tab_drag_controller.cc#newcode1878 chrome/browser/ui/views/tabs/tab_drag_controller.cc:1878: if (attached_tabstrip_->GetWidget()->GetNativeWindow()->parent()->id() == On 2013/10/28 14:30:08, sky wrote: > ...
7 years, 1 month ago (2013-10-29 03:08:25 UTC) #7
sky
https://codereview.chromium.org/38073004/diff/400001/ui/views/widget/widget.h File ui/views/widget/widget.h (right): https://codereview.chromium.org/38073004/diff/400001/ui/views/widget/widget.h#newcode482 ui/views/widget/widget.h:482: bool IsDocked() const; Ben is trying to keep ash ...
7 years, 1 month ago (2013-10-29 16:36:06 UTC) #8
varkha
https://codereview.chromium.org/38073004/diff/400001/ui/views/widget/widget.h File ui/views/widget/widget.h (right): https://codereview.chromium.org/38073004/diff/400001/ui/views/widget/widget.h#newcode482 ui/views/widget/widget.h:482: bool IsDocked() const; On 2013/10/29 16:36:06, sky wrote: > ...
7 years, 1 month ago (2013-10-29 17:06:17 UTC) #9
sky
On Tue, Oct 29, 2013 at 10:06 AM, <varkha@chromium.org> wrote: > > https://codereview.chromium.org/38073004/diff/400001/ui/views/widget/widget.h > File ...
7 years, 1 month ago (2013-10-29 17:28:34 UTC) #10
varkha
https://codereview.chromium.org/38073004/diff/400001/ui/views/widget/widget.h File ui/views/widget/widget.h (right): https://codereview.chromium.org/38073004/diff/400001/ui/views/widget/widget.h#newcode482 ui/views/widget/widget.h:482: bool IsDocked() const; On 2013/10/29 16:36:06, sky wrote: > ...
7 years, 1 month ago (2013-10-29 18:28:02 UTC) #11
sky
LGTM https://codereview.chromium.org/38073004/diff/500001/chrome/browser/ui/views/tabs/tab_drag_controller.cc File chrome/browser/ui/views/tabs/tab_drag_controller.cc (right): https://codereview.chromium.org/38073004/diff/500001/chrome/browser/ui/views/tabs/tab_drag_controller.cc#newcode212 chrome/browser/ui/views/tabs/tab_drag_controller.cc:212: // Returns true if |bounds| contains the y-coordinate ...
7 years, 1 month ago (2013-10-29 20:46:41 UTC) #12
varkha
https://codereview.chromium.org/38073004/diff/500001/chrome/browser/ui/views/tabs/tab_drag_controller.cc File chrome/browser/ui/views/tabs/tab_drag_controller.cc (right): https://codereview.chromium.org/38073004/diff/500001/chrome/browser/ui/views/tabs/tab_drag_controller.cc#newcode212 chrome/browser/ui/views/tabs/tab_drag_controller.cc:212: // Returns true if |bounds| contains the y-coordinate |y|. ...
7 years, 1 month ago (2013-10-29 21:08:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/38073004/560001
7 years, 1 month ago (2013-10-29 21:16:59 UTC) #14
commit-bot: I haz the power
7 years, 1 month ago (2013-10-30 01:05:44 UTC) #15
Message was sent while issue was closed.
Change committed as 231698

Powered by Google App Engine
This is Rietveld 408576698