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

Issue 10911274: Adding new window management (Closed)

Created:
8 years, 3 months ago by Mr4D (OOO till 08-26)
Modified:
8 years, 3 months ago
Reviewers:
sky
CC:
chromium-reviews
Visibility:
Public.

Description

Adding new window management Windows get placed according to the new algorithm: The first window restores as the previous window was created (or if none were, the default will be chosen). When the second window gets created, the first one will get pushed towards the left or right side (dependent on which side it was 'more') and the new window will get pushed to the other side and made fully visible. Everything else remains as is. Update: The bug 127283 seems also to be fixed with this change. I therefore add this into the bug section. BUG=146528, 127283 TEST=unit test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156655

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed #

Total comments: 6

Patch Set 3 : Addressed #

Patch Set 4 : Cahnged the SetBounds to SetBoundsInScreen #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -99 lines) Patch
M chrome/browser/ui/window_sizer/window_sizer.h View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_ash.cc View 1 2 3 2 chunks +94 lines, -25 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc View 1 42 chunks +120 lines, -67 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Mr4D (OOO till 08-26)
Please have a look!
8 years, 3 months ago (2012-09-13 02:24:11 UTC) #1
sky
http://codereview.chromium.org/10911274/diff/1/chrome/browser/ui/window_sizer/window_sizer_ash.cc File chrome/browser/ui/window_sizer/window_sizer_ash.cc (right): http://codereview.chromium.org/10911274/diff/1/chrome/browser/ui/window_sizer/window_sizer_ash.cc#newcode42 chrome/browser/ui/window_sizer/window_sizer_ash.cc:42: aura::Window* GetTopWindow(const gfx::Rect& bounds) { The coordinates you pass ...
8 years, 3 months ago (2012-09-13 15:44:51 UTC) #2
Mr4D (OOO till 08-26)
Addressed! Please have another look! http://codereview.chromium.org/10911274/diff/1/chrome/browser/ui/window_sizer/window_sizer_ash.cc File chrome/browser/ui/window_sizer/window_sizer_ash.cc (right): http://codereview.chromium.org/10911274/diff/1/chrome/browser/ui/window_sizer/window_sizer_ash.cc#newcode42 chrome/browser/ui/window_sizer/window_sizer_ash.cc:42: aura::Window* GetTopWindow(const gfx::Rect& bounds) ...
8 years, 3 months ago (2012-09-13 16:45:08 UTC) #3
sky
http://codereview.chromium.org/10911274/diff/12/chrome/browser/ui/window_sizer/window_sizer_ash.cc File chrome/browser/ui/window_sizer/window_sizer_ash.cc (right): http://codereview.chromium.org/10911274/diff/12/chrome/browser/ui/window_sizer/window_sizer_ash.cc#newcode30 chrome/browser/ui/window_sizer/window_sizer_ash.cc:30: remove this newline. http://codereview.chromium.org/10911274/diff/12/chrome/browser/ui/window_sizer/window_sizer_ash.cc#newcode145 chrome/browser/ui/window_sizer/window_sizer_ash.cc:145: if (MoveRect(work_area, other_bounds, !move_right)) ...
8 years, 3 months ago (2012-09-13 17:32:02 UTC) #4
Mr4D (OOO till 08-26)
Addressed! Please have another look! http://codereview.chromium.org/10911274/diff/12/chrome/browser/ui/window_sizer/window_sizer_ash.cc File chrome/browser/ui/window_sizer/window_sizer_ash.cc (right): http://codereview.chromium.org/10911274/diff/12/chrome/browser/ui/window_sizer/window_sizer_ash.cc#newcode30 chrome/browser/ui/window_sizer/window_sizer_ash.cc:30: On 2012/09/13 17:32:02, sky ...
8 years, 3 months ago (2012-09-13 18:56:59 UTC) #5
sky
LGTM when you fix the coordinate issue.
8 years, 3 months ago (2012-09-13 19:50:36 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/10911274/12003
8 years, 3 months ago (2012-09-13 20:16:27 UTC) #7
Mr4D (OOO till 08-26)
Done! Thanks!
8 years, 3 months ago (2012-09-13 20:16:38 UTC) #8
commit-bot: I haz the power
8 years, 3 months ago (2012-09-13 22:24:59 UTC) #9
Change committed as 156655

Powered by Google App Engine
This is Rietveld 408576698