Bug 1418829 - Export GetCSDSupportLevel() as public from nsWindow, r=jhorak

We need that for nsLookAndFeel module.

MozReview-Commit-ID: 61YKeAUoKEu

--HG--
extra : rebase_source : 3587d39005fe8e6a63b527f55f377182bf1c69bd
This commit is contained in:
Martin Stransky 2017-11-20 14:28:29 +01:00
Родитель f36cf21409
Коммит 5b47065c12
1 изменённых файлов: 12 добавлений и 10 удалений

Просмотреть файл

@ -374,6 +374,18 @@ public:
virtual bool WidgetTypeSupportsAcceleration() override;
bool DoDrawTitlebar() const;
typedef enum { CSD_SUPPORT_FULL, // CSD including shadows
CSD_SUPPORT_FLAT, // CSD without shadows
CSD_SUPPORT_NONE, // WM does not support CSD at all
CSD_SUPPORT_UNKNOWN
} CSDSupportLevel;
/**
* Get the support of Client Side Decoration by checking
* the XDG_CURRENT_DESKTOP environment variable.
*/
static CSDSupportLevel GetCSDSupportLevel();
protected:
virtual ~nsWindow();
@ -578,16 +590,6 @@ private:
RefPtr<mozilla::widget::IMContextWrapper> mIMContext;
mozilla::UniquePtr<mozilla::CurrentX11TimeGetter> mCurrentTimeGetter;
typedef enum { CSD_SUPPORT_FULL, // CSD including shadows
CSD_SUPPORT_FLAT, // CSD without shadows
CSD_SUPPORT_NONE, // WM does not support CSD at all
CSD_SUPPORT_UNKNOWN
} CSDSupportLevel;
/**
* Get the support of Client Side Decoration by checking
* the XDG_CURRENT_DESKTOP environment variable.
*/
static CSDSupportLevel GetCSDSupportLevel();
static CSDSupportLevel sCSDSupportLevel;
};