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

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..5d7b7e44e986f4c5bc4ea891fbd9e927b4f1bcbb
--- /dev/null
+++ b/ui/gfx/mac/nswindow_util.h
@@ -0,0 +1,23 @@
+// 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_
+
+#import <Cocoa/Cocoa.h>
tapted 2015/03/25 18:50:23 nit: forward declare @class NSWindow;
jackhou1 2015/03/26 03:50:46 Done.
+
+#include "ui/gfx/geometry/size.h"
tapted 2015/03/25 18:50:23 nit: forward declare
jackhou1 2015/03/26 03:50:46 Done.
+
+void SetFullScreenCollectionBehavior(NSWindow* window, bool allow_fullscreen);
+
+void SetResizableStyleMask(NSWindow* window, bool resizable);
+
+// Sizes refer to the content size (inner bounds).
+void ApplySizeConstraints(NSWindow* window,
+ 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
+ gfx::Size max_size,
+ bool can_resize,
+ bool can_fullscreen);
+
+#endif // UI_GFX_MAC_NSWINDOW_UTIL_H_
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/gfx/mac/nswindow_util.mm » ('j') | ui/gfx/mac/nswindow_util.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698