mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
Issue #1516 - Part 1: Add a global build define to determine if the client can draw in the titlebar and update consumers of the local define
This commit is contained in:
parent
91c64d8c3f
commit
c3d2282ba8
4 changed files with 19 additions and 5 deletions
|
|
@ -2176,6 +2176,7 @@ MOZ_LDAP_XPCOM=
|
|||
MOZ_MORK=
|
||||
MOZ_MAPI_SUPPORT=
|
||||
MOZ_INCOMPLETE_EXTERNAL_LINKAGE=
|
||||
MOZ_CAN_DRAW_IN_TITLEBAR=
|
||||
|
||||
case "$target_os" in
|
||||
mingw*)
|
||||
|
|
@ -2824,6 +2825,22 @@ fi
|
|||
|
||||
AC_SUBST(MOZ_MAPI_SUPPORT)
|
||||
|
||||
dnl ========================================================
|
||||
dnl = Client drawing in titlebar
|
||||
dnl ========================================================
|
||||
if test -n "$MOZ_CAN_DRAW_IN_TITLEBAR"; then
|
||||
case "$OS_TARGET" in
|
||||
WINNT|Darwin)
|
||||
AC_DEFINE(MOZ_CAN_DRAW_IN_TITLEBAR)
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([Drawing in the titlebar is only supported on Windows and Macintosh targets])
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
AC_SUBST(MOZ_CAN_DRAW_IN_TITLEBAR)
|
||||
|
||||
dnl ========================================================
|
||||
dnl = Enable WebRTC code
|
||||
dnl ========================================================
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ MOZ_SAFE_BROWSING:
|
|||
#endif
|
||||
|
||||
CAN_DRAW_IN_TITLEBAR:
|
||||
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||
#ifdef MOZ_CAN_DRAW_IN_TITLEBAR
|
||||
true,
|
||||
#else
|
||||
false,
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ LightweightThemeConsumer.prototype = {
|
|||
footer.removeAttribute("lwthemefooter");
|
||||
}
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
#if defined(XP_MACOSX) && defined(MOZ_CAN_DRAW_IN_TITLEBAR)
|
||||
// On OS X, we extend the lightweight theme into the titlebar, which means setting
|
||||
// the chromemargin attribute. Some XUL applications already draw in the titlebar,
|
||||
// so we need to save the chromemargin value before we overwrite it with the value
|
||||
|
|
|
|||
|
|
@ -92,9 +92,6 @@ EXTRA_PP_JS_MODULES += [
|
|||
'WindowDraggingUtils.jsm',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'cocoa'):
|
||||
DEFINES['CAN_DRAW_IN_TITLEBAR'] = 1
|
||||
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gtk2', 'gtk3'):
|
||||
DEFINES['MENUBAR_CAN_AUTOHIDE'] = 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue