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

Issue 9969164: Ignoring alignment when it pushes a window out of the screen (Closed)

Created:
8 years, 8 months ago by Mr4D (OOO till 08-26)
Modified:
8 years, 8 months ago
Reviewers:
sky
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Ignoring alignment when it pushes a window out of the screen BUG=121580, 122841 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132316

Patch Set 1 #

Total comments: 2

Patch Set 2 : Moving align to grid functionality into WindowPositioner / WindowSizer #

Total comments: 10

Patch Set 3 : Upload for merge comparison #

Patch Set 4 : Fixed merge issues with moved file and addressed issues #

Patch Set 5 : Reverted one change #

Patch Set 6 : Update the window manager unit test to the new alignment procedure #

Patch Set 7 : Fixed slipped in break of test #

Patch Set 8 : #

Patch Set 9 : Replacing clean formula with obscure function. #

Total comments: 4

Patch Set 10 : Not my code anymore #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -58 lines) Patch
M ash/wm/workspace/workspace_layout_manager.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M ash/wm/workspace/workspace_manager.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M ash/wm/workspace/workspace_manager.cc View 1 2 4 chunks +0 lines, -19 lines 0 comments Download
M ash/wm/workspace/workspace_manager_unittest.cc View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/views/ash/window_positioner.h View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/ash/window_positioner.cc View 1 2 3 4 5 6 7 8 9 5 chunks +32 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/ash/window_positioner_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +16 lines, -9 lines 0 comments Download
M chrome/browser/ui/window_sizer_ash.cc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/window_sizer_ash_unittest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +22 lines, -14 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Mr4D (OOO till 08-26)
This change will ignore any alignment requests which pushes a window out of the screen.
8 years, 8 months ago (2012-04-11 20:29:57 UTC) #1
sky
http://codereview.chromium.org/9969164/diff/1/ash/wm/workspace/workspace_manager.cc File ash/wm/workspace/workspace_manager.cc (right): http://codereview.chromium.org/9969164/diff/1/ash/wm/workspace/workspace_manager.cc#newcode53 ash/wm/workspace/workspace_manager.cc:53: gfx::Rect AlignRectToGrid(const gfx::Rect& rect, int grid_size) { I believe ...
8 years, 8 months ago (2012-04-11 21:10:00 UTC) #2
Mr4D (OOO till 08-26)
As discussed, I have moved the logic from the WindowManager into the WindowSizer / PopupPositioner
8 years, 8 months ago (2012-04-13 18:08:11 UTC) #3
sky
http://codereview.chromium.org/9969164/diff/7001/ash/wm/workspace/workspace_manager.cc File ash/wm/workspace/workspace_manager.cc (right): http://codereview.chromium.org/9969164/diff/7001/ash/wm/workspace/workspace_manager.cc#newcode14 ash/wm/workspace/workspace_manager.cc:14: #include "ash/wm/window_resizer.h" Can you remove this include now? http://codereview.chromium.org/9969164/diff/7001/chrome/browser/ui/views/ash/window_positioner.cc ...
8 years, 8 months ago (2012-04-13 19:44:01 UTC) #4
Mr4D (OOO till 08-26)
Merged and addressed http://codereview.chromium.org/9969164/diff/7001/ash/wm/workspace/workspace_manager.cc File ash/wm/workspace/workspace_manager.cc (right): http://codereview.chromium.org/9969164/diff/7001/ash/wm/workspace/workspace_manager.cc#newcode14 ash/wm/workspace/workspace_manager.cc:14: #include "ash/wm/window_resizer.h" On 2012/04/13 19:44:02, sky ...
8 years, 8 months ago (2012-04-13 20:47:39 UTC) #5
sky
http://codereview.chromium.org/9969164/diff/7001/chrome/browser/ui/views/ash/window_positioner.cc File chrome/browser/ui/views/ash/window_positioner.cc (right): http://codereview.chromium.org/9969164/diff/7001/chrome/browser/ui/views/ash/window_positioner.cc#newcode158 chrome/browser/ui/views/ash/window_positioner.cc:158: y += (grid - (y + grid - 1) ...
8 years, 8 months ago (2012-04-13 21:42:03 UTC) #6
Mr4D (OOO till 08-26)
There wasn't any change necessary (to my view). http://codereview.chromium.org/9969164/diff/7001/chrome/browser/ui/views/ash/window_positioner.cc File chrome/browser/ui/views/ash/window_positioner.cc (right): http://codereview.chromium.org/9969164/diff/7001/chrome/browser/ui/views/ash/window_positioner.cc#newcode158 chrome/browser/ui/views/ash/window_positioner.cc:158: y ...
8 years, 8 months ago (2012-04-13 22:33:48 UTC) #7
sky
On 2012/04/13 22:33:48, Mr4D wrote: > There wasn't any change necessary (to my view). > ...
8 years, 8 months ago (2012-04-13 22:51:07 UTC) #8
Mr4D (OOO till 08-26)
I have replaced it as requested. I have to point out here that a real ...
8 years, 8 months ago (2012-04-13 23:22:56 UTC) #9
sky
*simple*, eh? I must be stupid. I had to stare at that code for a ...
8 years, 8 months ago (2012-04-13 23:37:29 UTC) #10
Mr4D (OOO till 08-26)
Okay done as requested. This isn't my code anymore. http://codereview.chromium.org/9969164/diff/9016/chrome/browser/ui/views/ash/window_positioner.cc File chrome/browser/ui/views/ash/window_positioner.cc (right): http://codereview.chromium.org/9969164/diff/9016/chrome/browser/ui/views/ash/window_positioner.cc#newcode173 chrome/browser/ui/views/ash/window_positioner.cc:173: ...
8 years, 8 months ago (2012-04-14 00:19:45 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/9969164/15014
8 years, 8 months ago (2012-04-14 01:17:48 UTC) #12
commit-bot: I haz the power
8 years, 8 months ago (2012-04-14 02:44:24 UTC) #13
Change committed as 132316

Powered by Google App Engine
This is Rietveld 408576698