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

Unified Diff: ui/gfx/mac/nswindow_util.h

Issue 1023083002: [MacViews] Implement size constraints for app windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698