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

Issue 7003063: Enforce different min size for popups than tabbed browsers on MacOSX. (Closed)

Created:
9 years, 6 months ago by jennb
Modified:
9 years, 6 months ago
CC:
chromium-reviews, pam+watch_chromium.org, Paweł Hajdan Jr., Dmitry Titov, dcheng
Visibility:
Public.

Description

Enforce different min size for popups than tabbed browsers on MacOSX. xib changes: Removed browser window minSize and minContentSize from xib file. Instead, set the min size programmatically in BrowserWindowController::awakeFromNib in order to customize the min size depending on the browser type. BUG=83985 TEST=BrowserWindowControllerTest.TestSetBounds and TestSetBoundsPopup Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88588

Patch Set 1 #

Patch Set 2 : Comment cleanup. #

Patch Set 3 : Update window sizing test broken by change. #

Total comments: 4

Patch Set 4 : Use setMinSize instead of setContentMinSize. #

Total comments: 5

Patch Set 5 : address prev round of feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -12 lines) Patch
M chrome/app/nibs/BrowserWindow.xib View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 4 3 chunks +20 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_unittest.mm View 1 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/window_update/sizing/test.html View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jennb
9 years, 6 months ago (2011-06-08 21:32:26 UTC) #1
jennb
+levin as I had to change his test.
9 years, 6 months ago (2011-06-08 22:58:27 UTC) #2
levin
On 2011/06/08 22:58:27, jennb wrote: > +levin as I had to change his test. Test ...
9 years, 6 months ago (2011-06-08 23:04:24 UTC) #3
Nico
http://codereview.chromium.org/7003063/diff/4001/chrome/browser/ui/cocoa/browser_window_cocoa.mm File chrome/browser/ui/cocoa/browser_window_cocoa.mm (right): http://codereview.chromium.org/7003063/diff/4001/chrome/browser/ui/cocoa/browser_window_cocoa.mm#newcode79 chrome/browser/ui/cocoa/browser_window_cocoa.mm:79: gfx::Rect real_bounds = [controller_ enforceMinWindowSize:bounds]; No abbreviations in method ...
9 years, 6 months ago (2011-06-09 16:24:08 UTC) #4
jennb
http://codereview.chromium.org/7003063/diff/4001/chrome/browser/ui/cocoa/browser_window_cocoa.mm File chrome/browser/ui/cocoa/browser_window_cocoa.mm (right): http://codereview.chromium.org/7003063/diff/4001/chrome/browser/ui/cocoa/browser_window_cocoa.mm#newcode79 chrome/browser/ui/cocoa/browser_window_cocoa.mm:79: gfx::Rect real_bounds = [controller_ enforceMinWindowSize:bounds]; On 2011/06/09 16:24:08, Nico ...
9 years, 6 months ago (2011-06-09 16:44:54 UTC) #5
Nico
LGTM When changing xib files,please add a comment like this to the CL description: "xib ...
9 years, 6 months ago (2011-06-09 16:54:35 UTC) #6
jennb
xib changes added to CL description. http://codereview.chromium.org/7003063/diff/3002/chrome/browser/ui/cocoa/browser_window_controller.h File chrome/browser/ui/cocoa/browser_window_controller.h (right): http://codereview.chromium.org/7003063/diff/3002/chrome/browser/ui/cocoa/browser_window_controller.h#newcode148 chrome/browser/ui/cocoa/browser_window_controller.h:148: - (void)awakeFromNib; On ...
9 years, 6 months ago (2011-06-09 17:54:51 UTC) #7
Nico
Thanks for the changes! http://codereview.chromium.org/7003063/diff/3002/chrome/browser/ui/cocoa/browser_window_controller.mm File chrome/browser/ui/cocoa/browser_window_controller.mm (right): http://codereview.chromium.org/7003063/diff/3002/chrome/browser/ui/cocoa/browser_window_controller.mm#newcode464 chrome/browser/ui/cocoa/browser_window_controller.mm:464: gfx::Rect checked_bounds = bounds; On ...
9 years, 6 months ago (2011-06-09 17:56:18 UTC) #8
jennb
9 years, 6 months ago (2011-06-09 18:05:06 UTC) #9
On 2011/06/09 17:56:18, Nico wrote:
> Thanks for the changes!
> 
>
http://codereview.chromium.org/7003063/diff/3002/chrome/browser/ui/cocoa/brow...
> File chrome/browser/ui/cocoa/browser_window_controller.mm (right):
> 
>
http://codereview.chromium.org/7003063/diff/3002/chrome/browser/ui/cocoa/brow...
> chrome/browser/ui/cocoa/browser_window_controller.mm:464: gfx::Rect
> checked_bounds = bounds;
> On 2011/06/09 17:54:51, jennb wrote:
> > On 2011/06/09 16:54:35, Nico wrote:
> > > since this is an objc method, this should be called checkedBounds
> > 
> > Changed. Also fixed this style issue in unittest .mm file.
> 
> In the mm file, the code is in a C++ class, so it should follow c++ naming
there
> :-P
> 
> It's not the filetype that determines it but if it's in an objc class or and
c++
> class.
> 
> Sorry that this is annoying :-/

Ok, will change tests back before committing.

Powered by Google App Engine
This is Rietveld 408576698