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

Issue 80323002: Restores maximized browser before dragging a tab (Closed)

Created:
7 years, 1 month ago by varkha
Modified:
7 years ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, dcheng, pkotwicz
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Restores maximized browser before dragging a tab. Allows a tab dragged out of a maximized browser to get properly side-snapped (similar to how docking is allowed). BUG=319205 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238236

Patch Set 1 #

Total comments: 6

Patch Set 2 : Restores maximized browser before dragging a tab (no animations) #

Total comments: 2

Patch Set 3 : Restores maximized browser before dragging a tab (comments) #

Patch Set 4 : Restores maximized browser before dragging a tab (ash only) #

Total comments: 3

Patch Set 5 : Restores maximized browser before dragging a tab (rebase) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -58 lines) Patch
M ash/wm/window_animations.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M ash/wm/window_animations.cc View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller.h View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller.cc View 1 2 3 4 8 chunks +86 lines, -50 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
varkha
sky@, I was not completely satisfied with https://codereview.chromium.org/77013003/. Can you please see if you like ...
7 years, 1 month ago (2013-11-21 06:44:34 UTC) #1
sky
Have you tried this on windows non-metro? I have a feeling hiding is going to ...
7 years, 1 month ago (2013-11-21 16:43:06 UTC) #2
varkha
https://codereview.chromium.org/80323002/diff/1/chrome/browser/ui/views/tabs/tab_drag_controller.cc File chrome/browser/ui/views/tabs/tab_drag_controller.cc (right): https://codereview.chromium.org/80323002/diff/1/chrome/browser/ui/views/tabs/tab_drag_controller.cc#newcode557 chrome/browser/ui/views/tabs/tab_drag_controller.cc:557: widget->Hide(); I need to see if this breaks non-metro ...
7 years, 1 month ago (2013-11-21 16:59:34 UTC) #3
sky
https://codereview.chromium.org/80323002/diff/1/chrome/browser/ui/views/tabs/tab_drag_controller.cc File chrome/browser/ui/views/tabs/tab_drag_controller.cc (right): https://codereview.chromium.org/80323002/diff/1/chrome/browser/ui/views/tabs/tab_drag_controller.cc#newcode2293 chrome/browser/ui/views/tabs/tab_drag_controller.cc:2293: case DETACH_BEFORE: On 2013/11/21 16:59:35, varkha wrote: > On ...
7 years, 1 month ago (2013-11-21 17:15:34 UTC) #4
varkha
Still need to try Windows non-metro. Do you think there is a simpler way to ...
7 years, 1 month ago (2013-11-21 17:23:10 UTC) #5
varkha
PTAL. I hope that not passing |window| to GetCrossFadeDuration was an oversight and not intentional. ...
7 years, 1 month ago (2013-11-21 19:48:00 UTC) #6
varkha
https://codereview.chromium.org/80323002/diff/1/chrome/browser/ui/views/tabs/tab_drag_controller.cc File chrome/browser/ui/views/tabs/tab_drag_controller.cc (right): https://codereview.chromium.org/80323002/diff/1/chrome/browser/ui/views/tabs/tab_drag_controller.cc#newcode2293 chrome/browser/ui/views/tabs/tab_drag_controller.cc:2293: case DETACH_BEFORE: On 2013/11/21 17:23:10, varkha wrote: > On ...
7 years, 1 month ago (2013-11-21 20:34:48 UTC) #7
sky
https://codereview.chromium.org/80323002/diff/130001/chrome/browser/ui/views/tabs/tab_drag_controller.cc File chrome/browser/ui/views/tabs/tab_drag_controller.cc (right): https://codereview.chromium.org/80323002/diff/130001/chrome/browser/ui/views/tabs/tab_drag_controller.cc#newcode556 chrome/browser/ui/views/tabs/tab_drag_controller.cc:556: std::vector<gfx::Rect> drag_bounds = CalculateBoundsForDraggedTabs(); Does this do the right ...
7 years, 1 month ago (2013-11-21 23:29:29 UTC) #8
varkha
https://codereview.chromium.org/80323002/diff/130001/chrome/browser/ui/views/tabs/tab_drag_controller.cc File chrome/browser/ui/views/tabs/tab_drag_controller.cc (right): https://codereview.chromium.org/80323002/diff/130001/chrome/browser/ui/views/tabs/tab_drag_controller.cc#newcode556 chrome/browser/ui/views/tabs/tab_drag_controller.cc:556: std::vector<gfx::Rect> drag_bounds = CalculateBoundsForDraggedTabs(); On 2013/11/21 23:29:29, sky wrote: ...
7 years, 1 month ago (2013-11-22 02:57:16 UTC) #9
varkha
sky@, even though this works I have played with resized and non-resized maximized tab dragging ...
7 years, 1 month ago (2013-11-22 06:12:52 UTC) #10
sky
It is for ash, but for non-ash the desktop window manager restores the window when ...
7 years ago (2013-11-25 17:10:01 UTC) #11
sky
Since the window ends up snapping right back I almost feel like we shouldn't allow ...
7 years ago (2013-11-25 17:20:55 UTC) #12
varkha
>> ash and non-windows only as windows does the right thing already So what you ...
7 years ago (2013-11-25 17:55:45 UTC) #13
sky
That's right. I also don't feel particularly strongly. It's worth asking the UX team for ...
7 years ago (2013-11-25 21:33:11 UTC) #14
varkha
sky@, I have tried it again on Pixel and it looks quite good and consistent ...
7 years ago (2013-11-27 19:54:44 UTC) #15
sky
LGTM https://codereview.chromium.org/80323002/diff/400001/chrome/browser/ui/views/tabs/tab_drag_controller.cc File chrome/browser/ui/views/tabs/tab_drag_controller.cc (right): https://codereview.chromium.org/80323002/diff/400001/chrome/browser/ui/views/tabs/tab_drag_controller.cc#newcode2254 chrome/browser/ui/views/tabs/tab_drag_controller.cc:2254: std::max(max_size.height() / 2, new_bounds.height())); On 2013/11/27 19:54:45, varkha ...
7 years ago (2013-12-02 15:51:38 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/80323002/400001
7 years ago (2013-12-02 15:58:28 UTC) #17
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=179769
7 years ago (2013-12-02 17:30:59 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/80323002/440001
7 years ago (2013-12-02 20:44:10 UTC) #19
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=195454
7 years ago (2013-12-02 22:20:24 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/80323002/440001
7 years ago (2013-12-02 22:36:07 UTC) #21
commit-bot: I haz the power
7 years ago (2013-12-02 23:53:47 UTC) #22
Message was sent while issue was closed.
Change committed as 238236

Powered by Google App Engine
This is Rietveld 408576698