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.
5 #ifndef UI_GFX_MAC_NSWINDOW_FRAME_CONTROLS_H_
6 #define UI_GFX_MAC_NSWINDOW_FRAME_CONTROLS_H_
8 #include "ui/gfx/gfx_export.h"
16 // Set whether the window can be fullscreened.
17 GFX_EXPORT
void SetNSWindowCanFullscreen(NSWindow
* window
,
18 bool allow_fullscreen
);
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 GFX_EXPORT
void ApplyNSWindowSizeConstraints(NSWindow
* window
,
24 const gfx::Size
& min_size
,
25 const gfx::Size
& max_size
,
31 #endif // UI_GFX_MAC_NSWINDOW_FRAME_CONTROLS_H_