fix: ensure context-menu emitted for draggable regions (#44761)

* fix: ensure context-menu emitted for draggable regions

* chore: address suggestions from review
This commit is contained in:
Shelley Vohr 2024-11-22 12:33:38 +01:00 committed by GitHub
parent 4fd1b5b186
commit 86e4529d26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 84 additions and 21 deletions

View file

@ -169,6 +169,9 @@ class NativeWindowMac : public NativeWindow,
void NotifyWindowDidFailToEnterFullScreen();
void NotifyWindowWillLeaveFullScreen();
// views::WidgetDelegate:
views::View* GetContentsView() override;
// Cleanup observers when window is getting closed. Note that the destructor
// can be called much later after window gets closed, so we should not do
// cleanup in destructor.
@ -220,7 +223,6 @@ class NativeWindowMac : public NativeWindow,
protected:
// views::WidgetDelegate:
views::View* GetContentsView() override;
bool CanMaximize() const override;
std::unique_ptr<views::NonClientFrameView> CreateNonClientFrameView(
views::Widget* widget) override;