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

Side by Side Diff: ui/gfx/mac/nswindow_frame_controls.h

Issue 1105613002: [MacViews] Implement AlwaysOnTop and VisibleOnAllWorkspaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments Created 5 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_MAC_NSWINDOW_FRAME_CONTROLS_H_ 5 #ifndef UI_GFX_MAC_NSWINDOW_FRAME_CONTROLS_H_
6 #define UI_GFX_MAC_NSWINDOW_FRAME_CONTROLS_H_ 6 #define UI_GFX_MAC_NSWINDOW_FRAME_CONTROLS_H_
7 7
8 #import <Cocoa/Cocoa.h>
tapted 2015/05/06 02:00:18 Can you keep the forward-declare?
jackhou1 2015/05/12 01:42:12 Done.
9
8 #include "ui/gfx/gfx_export.h" 10 #include "ui/gfx/gfx_export.h"
9 11
10 @class NSWindow;
11
12 namespace gfx { 12 namespace gfx {
13 13
14 class Size; 14 class Size;
15 15
16 // Set whether the window can be fullscreened. 16 // Set whether the window can be fullscreened.
17 GFX_EXPORT void SetNSWindowCanFullscreen(NSWindow* window, 17 GFX_EXPORT void SetNSWindowCanFullscreen(NSWindow* window,
18 bool allow_fullscreen); 18 bool allow_fullscreen);
19 19
20 // Returns whether the window is always-on-top.
21 GFX_EXPORT bool IsNSWindowAlwaysOnTop(NSWindow* window);
22
23 // Sets whether the window is always-on-top. If the window is |transient| it
24 // will not appear in Expose and cannot be moved between workspaces.
25 GFX_EXPORT void SetNSWindowAlwaysOnTop(NSWindow* window,
26 bool always_on_top,
27 bool transient);
28
29 // Sets whether the window appears on all workspaces.
30 GFX_EXPORT void SetNSWindowVisibleOnAllWorkspaces(NSWindow* window,
31 bool always_visible);
32
20 // Sets the min/max size of the window as well as showing/hiding resize, 33 // Sets the min/max size of the window as well as showing/hiding resize,
21 // maximize, and fullscreen controls. 34 // maximize, and fullscreen controls.
22 // Sizes refer to the content size (inner bounds). 35 // Sizes refer to the content size (inner bounds).
23 GFX_EXPORT void ApplyNSWindowSizeConstraints(NSWindow* window, 36 GFX_EXPORT void ApplyNSWindowSizeConstraints(NSWindow* window,
24 const gfx::Size& min_size, 37 const gfx::Size& min_size,
25 const gfx::Size& max_size, 38 const gfx::Size& max_size,
26 bool can_resize, 39 bool can_resize,
27 bool can_fullscreen); 40 bool can_fullscreen);
28 41
29 } // namespace gfx 42 } // namespace gfx
30 43
31 #endif // UI_GFX_MAC_NSWINDOW_FRAME_CONTROLS_H_ 44 #endif // UI_GFX_MAC_NSWINDOW_FRAME_CONTROLS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698