Index: ui/gfx/mac/nswindow_util.h |
diff --git a/ui/gfx/mac/nswindow_util.h b/ui/gfx/mac/nswindow_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b5618fda4b7388d866bd410b5443783300e6a911 |
--- /dev/null |
+++ b/ui/gfx/mac/nswindow_util.h |
@@ -0,0 +1,29 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef UI_GFX_MAC_NSWINDOW_UTIL_H_ |
+#define UI_GFX_MAC_NSWINDOW_UTIL_H_ |
+ |
+namespace gfx { |
+class Size; |
+} |
+ |
+@class NSWindow; |
+ |
+// Set whether the window can be fullscreened. |
+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.
|
+ |
+// Set whether the window is resizable. |
+void SetResizableStyleMask(NSWindow* window, bool resizable); |
+ |
+// Sets the min/max size of the window as well as showing/hiding resize, |
+// maximize, and fullscreen controls. |
+// Sizes refer to the content size (inner bounds). |
+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.
|
+ const gfx::Size& min_size, |
+ const gfx::Size& max_size, |
+ bool can_resize, |
+ bool can_fullscreen); |
+ |
+#endif // UI_GFX_MAC_NSWINDOW_UTIL_H_ |