[Android] Implement 3-way sensor fallback for Device Orientation.
[chromium-blink-merge.git] / ui / gfx / mac / nswindow_frame_controls.h
blob61c6331ecfa51f37b6e4a0008aacc52f24150b4c
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
3 // found in the LICENSE file.
5 #ifndef UI_GFX_MAC_NSWINDOW_FRAME_CONTROLS_H_
6 #define UI_GFX_MAC_NSWINDOW_FRAME_CONTROLS_H_
8 #include "ui/gfx/gfx_export.h"
10 @class NSWindow;
12 namespace gfx {
14 class Size;
16 // Set whether the window can be fullscreened.
17 GFX_EXPORT void SetNSWindowCanFullscreen(NSWindow* window,
18 bool allow_fullscreen);
20 // Returns whether the window is always-on-top.
21 GFX_EXPORT bool IsNSWindowAlwaysOnTop(NSWindow* window);
23 // Sets whether the window is always-on-top. This also sets
24 // NSWindowCollectionBehaviorManaged because by default always-on-top windows
25 // are NSWindowCollectionBehaviorTransient which means they will not appear in
26 // Expose and cannot be moved between workspaces.
27 GFX_EXPORT void SetNSWindowAlwaysOnTop(NSWindow* window,
28 bool always_on_top);
30 // Sets whether the window appears on all workspaces.
31 GFX_EXPORT void SetNSWindowVisibleOnAllWorkspaces(NSWindow* window,
32 bool always_visible);
34 // Sets the min/max size of the window as well as showing/hiding resize,
35 // maximize, and fullscreen controls.
36 // Sizes refer to the content size (inner bounds).
37 GFX_EXPORT void ApplyNSWindowSizeConstraints(NSWindow* window,
38 const gfx::Size& min_size,
39 const gfx::Size& max_size,
40 bool can_resize,
41 bool can_fullscreen);
43 } // namespace gfx
45 #endif // UI_GFX_MAC_NSWINDOW_FRAME_CONTROLS_H_