Issue MoonchildProductions/UXP#1578 - Add global menubar support for GTK

This commit is contained in:
Lootyhoof 2020-06-06 00:37:29 +01:00 • committed by Roy Tam
commit 564f1026d5
32 changed files with 4811 additions and 4 deletions

View file

@ -35,6 +35,8 @@
#include "IMContextWrapper.h"
#include "nsMenuBar.h"
#undef LOG
#ifdef MOZ_LOGGING
@ -162,6 +164,8 @@ public:
nsIScreen* aTargetScreen = nullptr) override;
NS_IMETHOD HideWindowChrome(bool aShouldHide) override;
void SetMenuBar(mozilla::UniquePtr<nsMenuBar> aMenuBar);
/**
* GetLastUserInputTime returns a timestamp for the most recent user input
* event. This is intended for pointer grab requests (including drags).
@ -569,6 +573,8 @@ private:
RefPtr<mozilla::widget::IMContextWrapper> mIMContext;
mozilla::UniquePtr<mozilla::CurrentX11TimeGetter> mCurrentTimeGetter;
mozilla::UniquePtr<nsMenuBar> mMenuBar;
};
class nsChildWindow : public nsWindow {