feat: enable Windows Control Overlay on Linux (#41769)

This commit is contained in:
Shelley Vohr 2024-06-27 14:56:36 +02:00 committed by GitHub
parent 1d4b00692d
commit 32e5012017
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 1026 additions and 107 deletions

View file

@ -0,0 +1,26 @@
// Copyright 2024 Microsoft GmbH.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ELECTRON_SHELL_BROWSER_UI_VIEWS_CAPTION_BUTTON_PLACEHOLDER_CONTAINER_H_
#define ELECTRON_SHELL_BROWSER_UI_VIEWS_CAPTION_BUTTON_PLACEHOLDER_CONTAINER_H_
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/views/view.h"
// A placeholder container for control buttons with window controls
// overlay display override. Does not interact with the buttons. It is just
// used to indicate that this is non-client-area.
class CaptionButtonPlaceholderContainer : public views::View {
METADATA_HEADER(CaptionButtonPlaceholderContainer, views::View)
public:
CaptionButtonPlaceholderContainer();
CaptionButtonPlaceholderContainer(const CaptionButtonPlaceholderContainer&) =
delete;
CaptionButtonPlaceholderContainer& operator=(
const CaptionButtonPlaceholderContainer&) = delete;
~CaptionButtonPlaceholderContainer() override;
};
#endif // ELECTRON_SHELL_BROWSER_UI_VIEWS_CAPTION_BUTTON_PLACEHOLDER_CONTAINER_H_