Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_GFX_MAC_NSWINDOW_UTIL_H_ | |
| 6 #define UI_GFX_MAC_NSWINDOW_UTIL_H_ | |
| 7 | |
| 8 #import <Cocoa/Cocoa.h> | |
|
tapted
2015/03/25 18:50:23
nit: forward declare @class NSWindow;
jackhou1
2015/03/26 03:50:46
Done.
| |
| 9 | |
| 10 #include "ui/gfx/geometry/size.h" | |
|
tapted
2015/03/25 18:50:23
nit: forward declare
jackhou1
2015/03/26 03:50:46
Done.
| |
| 11 | |
| 12 void SetFullScreenCollectionBehavior(NSWindow* window, bool allow_fullscreen); | |
| 13 | |
| 14 void SetResizableStyleMask(NSWindow* window, bool resizable); | |
| 15 | |
| 16 // Sizes refer to the content size (inner bounds). | |
| 17 void ApplySizeConstraints(NSWindow* window, | |
| 18 gfx::Size min_size, | |
|
tapted
2015/03/25 18:50:23
nit: const-reference
jackhou1
2015/03/26 03:50:46
Done.
Is it a rule to always pass gfx::SmallThing
tapted
2015/03/30 06:33:37
`git grep '(.*gfx::Size' -- '*.h'` has mostly cons
| |
| 19 gfx::Size max_size, | |
| 20 bool can_resize, | |
| 21 bool can_fullscreen); | |
| 22 | |
| 23 #endif // UI_GFX_MAC_NSWINDOW_UTIL_H_ | |
| OLD | NEW |