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 namespace gfx { | |
| 9 class Size; | |
| 10 } | |
| 11 | |
| 12 @class NSWindow; | |
| 13 | |
| 14 // Set whether the window can be fullscreened. | |
| 15 void SetFullScreenCollectionBehavior(NSWindow* window, bool allow_fullscreen); | |
|
tapted
2015/03/30 06:33:37
can this and SetResizableStyleMask move to the .mm
jackhou1
2015/03/31 00:50:42
Done.
| |
| 16 | |
| 17 // Set whether the window is resizable. | |
| 18 void SetResizableStyleMask(NSWindow* window, bool resizable); | |
| 19 | |
| 20 // Sets the min/max size of the window as well as showing/hiding resize, | |
| 21 // maximize, and fullscreen controls. | |
| 22 // Sizes refer to the content size (inner bounds). | |
| 23 void ApplySizeConstraints(NSWindow* window, | |
|
tapted
2015/03/30 06:33:37
this should be in namespace gfx (missed this befor
jackhou1
2015/03/31 00:50:42
Done.
| |
| 24 const gfx::Size& min_size, | |
| 25 const gfx::Size& max_size, | |
| 26 bool can_resize, | |
| 27 bool can_fullscreen); | |
| 28 | |
| 29 #endif // UI_GFX_MAC_NSWINDOW_UTIL_H_ | |
| OLD | NEW |