blob: d58eecae3b9a754fd0494242ac456fc5d6614957 [file] [log] [blame]
// 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.
#include "ui/gfx/gfx_export.h"
@class NSWindow;
namespace gfx {
class Size;
// Set whether the window can be fullscreened.
GFX_EXPORT void SetNSWindowCanFullscreen(NSWindow* window,
bool allow_fullscreen);
// Sets whether the window appears on all workspaces.
GFX_EXPORT void SetNSWindowVisibleOnAllWorkspaces(NSWindow* window,
bool always_visible);
// 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).
GFX_EXPORT void ApplyNSWindowSizeConstraints(NSWindow* window,
const gfx::Size& min_size,
const gfx::Size& max_size,
bool can_resize,
bool can_fullscreen);
} // namespace gfx