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

Issue 1156893008: Fixes tab dragging out of a window with maximzied bounds (Closed)

Created:
5 years, 6 months ago by varkha
Modified:
5 years, 6 months ago
Reviewers:
msw, oshima, sky
CC:
chromium-reviews, tfarina, dcheng, oshima, sky
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixes tab dragging out of a window with maximzied bounds The breaking change was a fix for http://crbug.com/392599 (https://codereview.chromium.org/424463002/) that causes a browser window to be maximized at creation time if its size is as big as a work area. When a tab is dragged into a new browser window this new window may be maximized and so not draggable. BUG=491502 TEST=DetachToBrowserTabDragControllerTest.DetachFromFullsizeWindow Committed: https://crrev.com/3cf4fa484a5aa92211f937148c9ab80d6f0be163 Cr-Commit-Position: refs/heads/master@{#333220}

Patch Set 1 #

Patch Set 2 : Fixes tab dragging out of a window with maximzied bounds (test) #

Total comments: 7

Patch Set 3 : Fixes tab dragging out of a window with maximzied bounds (nits) #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -3 lines) Patch
M ash/wm/default_state.cc View 1 2 2 chunks +7 lines, -3 lines 4 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller.cc View 1 2 2 chunks +20 lines, -0 lines 4 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc View 1 1 chunk +68 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1156893008/20001
5 years, 6 months ago (2015-06-04 22:10:29 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-04 22:43:48 UTC) #4
varkha
msw@, can you please take a look?
5 years, 6 months ago (2015-06-04 23:47:56 UTC) #6
msw
lgtm with comment nits, but oshima or sky are better reviewers here. https://codereview.chromium.org/1156893008/diff/20001/ash/wm/default_state.cc File ash/wm/default_state.cc ...
5 years, 6 months ago (2015-06-05 17:20:52 UTC) #7
varkha
Thanks. +oshima@ in case there are comments about this behaviour. https://codereview.chromium.org/1156893008/diff/20001/ash/wm/default_state.cc File ash/wm/default_state.cc (right): https://codereview.chromium.org/1156893008/diff/20001/ash/wm/default_state.cc#newcode35 ...
5 years, 6 months ago (2015-06-05 17:55:28 UTC) #9
sky
https://codereview.chromium.org/1156893008/diff/40001/chrome/browser/ui/views/tabs/tab_drag_controller.cc File chrome/browser/ui/views/tabs/tab_drag_controller.cc (right): https://codereview.chromium.org/1156893008/diff/40001/chrome/browser/ui/views/tabs/tab_drag_controller.cc#newcode1651 chrome/browser/ui/views/tabs/tab_drag_controller.cc:1651: screen_->GetDisplayNearestPoint(last_point_in_screen_).work_area(); Shouldn't this be an else condition of maximized? ...
5 years, 6 months ago (2015-06-05 19:24:27 UTC) #11
varkha
Thanks sky@, see my comment below. https://codereview.chromium.org/1156893008/diff/40001/chrome/browser/ui/views/tabs/tab_drag_controller.cc File chrome/browser/ui/views/tabs/tab_drag_controller.cc (right): https://codereview.chromium.org/1156893008/diff/40001/chrome/browser/ui/views/tabs/tab_drag_controller.cc#newcode1651 chrome/browser/ui/views/tabs/tab_drag_controller.cc:1651: screen_->GetDisplayNearestPoint(last_point_in_screen_).work_area(); On 2015/06/05 ...
5 years, 6 months ago (2015-06-05 19:48:48 UTC) #12
sky
Fair enough, LGTM https://codereview.chromium.org/1156893008/diff/40001/ash/wm/default_state.cc File ash/wm/default_state.cc (right): https://codereview.chromium.org/1156893008/diff/40001/ash/wm/default_state.cc#newcode37 ash/wm/default_state.cc:37: const int kMaximizedWindowInset = 10; // ...
5 years, 6 months ago (2015-06-06 17:59:30 UTC) #13
varkha
Thanks! Not sure what the bounds are in other than pixels? Are those device independent ...
5 years, 6 months ago (2015-06-06 20:13:17 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1156893008/40001
5 years, 6 months ago (2015-06-06 20:13:52 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/59048)
5 years, 6 months ago (2015-06-06 20:52:09 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1156893008/40001
5 years, 6 months ago (2015-06-06 22:27:46 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 6 months ago (2015-06-06 23:13:58 UTC) #22
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/3cf4fa484a5aa92211f937148c9ab80d6f0be163 Cr-Commit-Position: refs/heads/master@{#333220}
5 years, 6 months ago (2015-06-06 23:14:52 UTC) #23
sky
https://codereview.chromium.org/1156893008/diff/40001/ash/wm/default_state.cc File ash/wm/default_state.cc (right): https://codereview.chromium.org/1156893008/diff/40001/ash/wm/default_state.cc#newcode37 ash/wm/default_state.cc:37: const int kMaximizedWindowInset = 10; // Pixels. On 2015/06/06 ...
5 years, 6 months ago (2015-06-07 00:05:20 UTC) #24
oshima
5 years, 6 months ago (2015-06-07 01:19:02 UTC) #25
Message was sent while issue was closed.
https://codereview.chromium.org/1156893008/diff/40001/ash/wm/default_state.cc
File ash/wm/default_state.cc (right):

https://codereview.chromium.org/1156893008/diff/40001/ash/wm/default_state.cc...
ash/wm/default_state.cc:37: const int kMaximizedWindowInset = 10;  // Pixels.
On 2015/06/07 00:05:20, sky wrote:
> On 2015/06/06 20:13:17, varkha wrote:
> > On 2015/06/06 17:59:30, sky wrote:
> > > Is this really pixels?
> > 
> > I thought so. Isn't that what window bounds are expressed in?
> 
> It may depend upon the platform, but I have to look. Certainly on chromeos
they
> are DIPs.

This is DIP.

Powered by Google App Engine
This is Rietveld 408576698