fix: ensure context-menu
emitted for draggable regions (#44800)
* fix: ensure context-menu emitted for draggable regions Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * chore: address suggestions from review Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
parent
5b9fbb2e19
commit
1329e22fce
6 changed files with 84 additions and 21 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue