gecko-dev/widget/WindowButtonType.h
Emilio Cobos Álvarez 098175cf10 Bug 1801956 - Move titlebar button handling out of nsBoxFrame. r=tnikkel
This fixes the snap layouts feature on Windows 11.

Instead of using a content attribute (which is somewhat expensive to
look up) use the default appearance and do this where we deal with other
appearance hacks (before building themed backgrounds).

Consolidate this inside a DealWithWindowsAppearanceHacks function along
with the glass stuff.

Differential Revision: https://phabricator.services.mozilla.com/D162757
2022-11-23 09:31:58 +00:00

23 lines
519 B
C++

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef mozilla_WindowButtonType_h
#define mozilla_WindowButtonType_h
#include <cstdint>
namespace mozilla {
enum class WindowButtonType : uint8_t {
Minimize,
Maximize, // Also covers restore.
Close,
Count,
};
}
#endif