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

Issue 115180: Change the window bounds adjusting algorithm to restore... (Closed)

Created:
11 years, 7 months ago by yuzo
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Change the window bounds adjusting algorithm to restore the window size as far as possible. Currently, the window size can shrunk by 2*kWindowTilePixels=20 even when the shrinkage can be avoided by adjusting the location. BUG=9587

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 6

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 4

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -152 lines) Patch
M chrome/browser/window_sizer.cc View 1 2 3 4 2 chunks +17 lines, -31 lines 0 comments Download
M chrome/browser/window_sizer_unittest.cc View 2 3 4 5 6 7 8 chunks +119 lines, -121 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
yuzo
Hi, Peter, Can you review this? Yuzo
11 years, 7 months ago (2009-05-11 11:32:55 UTC) #1
Peter Kasting
The browser.cc change is fine. I don't understand why the window_sizer change should fix the ...
11 years, 7 months ago (2009-05-11 13:26:52 UTC) #2
yuzo
Hi, Peter, Thank you for the review. On 2009/05/11 13:26:52, pkasting wrote: > The browser.cc ...
11 years, 7 months ago (2009-05-12 02:33:23 UTC) #3
yuzo
On 2009/05/12 02:33:23, yuzo wrote: > Hi, Peter, > > Thank you for the review. ...
11 years, 7 months ago (2009-05-12 06:11:04 UTC) #4
Peter Kasting
On 2009/05/12 06:11:04, yuzo wrote: > > The current (i.e. before this change) Chrome tries ...
11 years, 7 months ago (2009-05-12 18:41:49 UTC) #5
yuzo
Yes, you are right. My explanation and understanding was wrong. Actually, the current code works ...
11 years, 7 months ago (2009-05-14 08:32:05 UTC) #6
Peter Kasting
On 2009/05/14 08:32:05, yuzo wrote: > The issue occurs when it becomes offscreen. When a ...
11 years, 7 months ago (2009-05-14 17:08:25 UTC) #7
yuzo
Ben, Can you tell me your opinion on the following? Yuzo On 2009/05/14 17:08:25, pkasting ...
11 years, 7 months ago (2009-05-15 01:24:11 UTC) #8
yuzo
Ping, Ben?
11 years, 7 months ago (2009-05-19 06:39:37 UTC) #9
yuzo
Peter, Ben, I've simplified the adjusting algorithm as follows: - Window is moved if necessary ...
11 years, 7 months ago (2009-05-25 06:34:06 UTC) #10
Peter Kasting
I'm about to go to bed, but I would say that having the top left ...
11 years, 7 months ago (2009-05-25 06:39:26 UTC) #11
yuzo
Thank you for your comment. I've modified the code such that: - The code doesn't ...
11 years, 7 months ago (2009-05-25 07:48:59 UTC) #12
Peter Kasting
Code looks OK; testcases need some work. Ben should comment on whether he's OK with ...
11 years, 7 months ago (2009-05-27 19:56:46 UTC) #13
yuzo
Thank you for the review. Can you take yet another look? Yuzo http://codereview.chromium.org/115180/diff/16/18 File chrome/browser/window_sizer_unittest.cc ...
11 years, 7 months ago (2009-05-28 07:09:35 UTC) #14
Peter Kasting
LGTM with nits http://codereview.chromium.org/115180/diff/1025/1027 File chrome/browser/window_sizer_unittest.cc (right): http://codereview.chromium.org/115180/diff/1025/1027#newcode398 Line 398: gfx::Rect(-470, 50, 500, 400), false, ...
11 years, 7 months ago (2009-05-28 18:10:34 UTC) #15
yuzo
Thank you for the review. Addressed the comments and confirmed that gcl try succeeds. Can ...
11 years, 7 months ago (2009-05-29 02:21:24 UTC) #16
Peter Kasting
11 years, 6 months ago (2009-05-29 20:48:17 UTC) #17
Landed in r17233.

Powered by Google App Engine
This is Rietveld 408576698