Chromium Code Reviews| 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_ |