зеркало из https://github.com/mozilla/pjs.git
Bug 543976 - Clean up Maemo defines. r=ted
This commit is contained in:
Родитель
3421145f67
Коммит
34f05ad210
|
@ -623,15 +623,9 @@ HAS_OGLES = @HAS_OGLES@
|
||||||
|
|
||||||
MOZ_DISTRIBUTION_ID = @MOZ_DISTRIBUTION_ID@
|
MOZ_DISTRIBUTION_ID = @MOZ_DISTRIBUTION_ID@
|
||||||
|
|
||||||
NS_OSSO = @NS_OSSO@
|
MOZ_PLATFORM_MAEMO = @MOZ_PLATFORM_MAEMO@
|
||||||
MOZ_PLATFORM_HILDON = @MOZ_PLATFORM_HILDON@
|
MOZ_PLATFORM_MAEMO_CFLAGS = @MOZ_PLATFORM_MAEMO_CFLAGS@
|
||||||
|
MOZ_PLATFORM_MAEMO_LIBS = @MOZ_PLATFORM_MAEMO_LIBS@
|
||||||
LIBHILDONMIME_CFLAGS = @LIBHILDONMIME_CFLAGS@
|
|
||||||
LIBHILDONMIME_LIBS = @LIBHILDONMIME_LIBS@
|
|
||||||
LIBOSSO_CFLAGS = @LIBOSSO_CFLAGS@
|
|
||||||
LIBOSSO_LIBS = @LIBOSSO_LIBS@
|
|
||||||
LIBHILDONFM_CFLAGS = @LIBHILDONFM_CFLAGS@
|
|
||||||
LIBHILDONFM_LIBS = @LIBHILDONFM_LIBS@
|
|
||||||
|
|
||||||
MOZ_ENABLE_LIBCONIC = @MOZ_ENABLE_LIBCONIC@
|
MOZ_ENABLE_LIBCONIC = @MOZ_ENABLE_LIBCONIC@
|
||||||
LIBCONIC_CFLAGS = @LIBCONIC_CFLAGS@
|
LIBCONIC_CFLAGS = @LIBCONIC_CFLAGS@
|
||||||
|
|
|
@ -1009,12 +1009,10 @@ hunspell.hxx
|
||||||
#if MOZ_NATIVE_BZ2==1
|
#if MOZ_NATIVE_BZ2==1
|
||||||
bzlib.h
|
bzlib.h
|
||||||
#endif
|
#endif
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
hildon-uri.h
|
hildon-uri.h
|
||||||
hildon-mime.h
|
hildon-mime.h
|
||||||
hildon-file-chooser-dialog.h
|
hildon-file-chooser-dialog.h
|
||||||
#endif
|
|
||||||
#ifdef NS_OSSO
|
|
||||||
libosso.h
|
libosso.h
|
||||||
osso-mem.h
|
osso-mem.h
|
||||||
#endif
|
#endif
|
||||||
|
|
113
configure.in
113
configure.in
|
@ -6408,47 +6408,78 @@ AC_SUBST(LIBCONIC_CFLAGS)
|
||||||
AC_SUBST(LIBCONIC_LIBS)
|
AC_SUBST(LIBCONIC_LIBS)
|
||||||
|
|
||||||
dnl ========================================================
|
dnl ========================================================
|
||||||
dnl = Hildon and OSSO checks
|
dnl = Maemo checks
|
||||||
dnl ========================================================
|
dnl ========================================================
|
||||||
PKG_CHECK_MODULES(LIBHILDONMIME,libhildonmime,
|
|
||||||
MOZ_PLATFORM_HILDON=1,
|
MAEMO_SDK_TARGET_VER=-1
|
||||||
MOZ_PLATFORM_HILDON=)
|
|
||||||
if test $MOZ_PLATFORM_HILDON; then
|
MOZ_ARG_WITH_STRING(maemo-version,
|
||||||
AC_DEFINE(MOZ_PLATFORM_HILDON)
|
[ --with-maemo-version=MAEMO_SDK_TARGET_VER
|
||||||
X11_COMPOSITED_PLUGINS="yes"
|
Maemo SDK Version],
|
||||||
|
MAEMO_SDK_TARGET_VER=$withval)
|
||||||
|
|
||||||
|
case "$MAEMO_SDK_TARGET_VER" in
|
||||||
|
5)
|
||||||
|
MOZ_PLATFORM_MAEMO=5
|
||||||
|
;;
|
||||||
|
|
||||||
|
6)
|
||||||
|
MOZ_PLATFORM_MAEMO=6
|
||||||
|
;;
|
||||||
|
|
||||||
|
-1)
|
||||||
|
dnl We aren't compiling for Maemo, move on.
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
AC_MSG_ERROR([Unknown Maemo Version. Try setting --with-maemo-version to 5 or 6.])
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test $MOZ_PLATFORM_MAEMO; then
|
||||||
|
AC_DEFINE_UNQUOTED([MOZ_PLATFORM_MAEMO], $MOZ_PLATFORM_MAEMO)
|
||||||
|
|
||||||
|
if test -z "$MOZ_ENABLE_DBUS"; then
|
||||||
|
AC_MSG_ERROR([DBus is required when building for Maemo])
|
||||||
|
fi
|
||||||
|
|
||||||
|
MOZ_GFX_OPTIMIZE_MOBILE=1
|
||||||
|
MOZ_WEBGL_GLX=
|
||||||
|
|
||||||
|
if test $MOZ_PLATFORM_MAEMO = 5; then
|
||||||
|
dnl if we have Xcomposite we should also have Xdamage and Xfixes
|
||||||
|
AC_CHECK_HEADERS([X11/extensions/Xdamage.h], [],
|
||||||
|
[AC_MSG_ERROR([Couldn't find X11/extensions/Xdamage.h which is required for composited plugins.])])
|
||||||
|
AC_CHECK_LIB(Xcomposite, XCompositeRedirectWindow, [XCOMPOSITE_LIBS="-lXcomposite -lXdamage -lXfixes"],
|
||||||
|
[MISSING_X="$MISSING_X -lXcomposite"], $XLIBS)
|
||||||
|
|
||||||
|
AC_SUBST(XCOMPOSITE_LIBS)
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(LIBHILDONMIME,libhildonmime, _LIB_FOUND=1, _LIB_FOUND=)
|
||||||
|
MOZ_PLATFORM_MAEMO_LIBS="$MOZ_PLATFORM_MAEMO_LIBS $LIBHILDONMIME_LIBS"
|
||||||
|
MOZ_PLATFORM_MAEMO_CFLAGS="$MOZ_PLATFORM_MAEMO_CFLAGS $LIBHILDONMIME_CFLAGS"
|
||||||
|
if test -z "$_LIB_FOUND"; then
|
||||||
|
AC_MSG_ERROR([Hildon Mime is required when building for Maemo])
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(LIBOSSO,libosso, _LIB_FOUND=1, _LIB_FOUND=)
|
||||||
|
MOZ_PLATFORM_MAEMO_LIBS="$MOZ_PLATFORM_MAEMO_LIBS $LIBOSSO_LIBS"
|
||||||
|
MOZ_PLATFORM_MAEMO_CFLAGS="$MOZ_PLATFORM_MAEMO_CFLAGS $LIBOSSO_CFLAGS"
|
||||||
|
if test -z "$_LIB_FOUND"; then
|
||||||
|
AC_MSG_ERROR([LibOSSO is required when building for Maemo])
|
||||||
|
fi
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(LIBHILDONFM,hildon-fm-2, _LIB_FOUND=1, _LIB_FOUND=)
|
||||||
|
MOZ_PLATFORM_MAEMO_LIBS="$MOZ_PLATFORM_MAEMO_LIBS $LIBHILDONFM_LIBS"
|
||||||
|
MOZ_PLATFORM_MAEMO_CFLAGS="$MOZ_PLATFORM_MAEMO_CFLAGS $LIBHILDONFM_CFLAGS"
|
||||||
|
if test -z "$_LIB_FOUND"; then
|
||||||
|
AC_MSG_ERROR([Hildon FM-2 is required when building for Maemo])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST(MOZ_PLATFORM_MAEMO_LIBS)
|
||||||
|
AC_SUBST(MOZ_PLATFORM_MAEMO_CFLAGS)
|
||||||
fi
|
fi
|
||||||
AC_SUBST(LIBHILDONMIME_CFLAGS)
|
|
||||||
AC_SUBST(LIBHILDONMIME_LIBS)
|
|
||||||
|
|
||||||
if test "$X11_COMPOSITED_PLUGINS" = "yes"; then
|
|
||||||
dnl if we have Xcomposite we should also have Xdamage and Xfixes
|
|
||||||
AC_CHECK_HEADERS([X11/extensions/Xdamage.h], [],
|
|
||||||
[AC_MSG_ERROR([Couldn't find X11/extentsions/Xdamage.h which is required for composited plugins.])])
|
|
||||||
AC_CHECK_LIB(Xcomposite, XCompositeRedirectWindow, [XCOMPOSITE_LIBS="-lXcomposite -lXdamage -lXfixes"],
|
|
||||||
[MISSING_X="$MISSING_X -lXcomposite"], $XLIBS)
|
|
||||||
fi
|
|
||||||
AC_SUBST(XCOMPOSITE_LIBS)
|
|
||||||
|
|
||||||
PKG_CHECK_MODULES(LIBOSSO,libosso,
|
|
||||||
NS_OSSO=1,
|
|
||||||
NS_OSSO=)
|
|
||||||
|
|
||||||
if test $NS_OSSO; then
|
|
||||||
if test -z "$MOZ_ENABLE_DBUS"; then
|
|
||||||
AC_MSG_ERROR([DBus is required when building for OSSO])
|
|
||||||
fi
|
|
||||||
AC_DEFINE(NS_OSSO)
|
|
||||||
MOZ_GFX_OPTIMIZE_MOBILE=1
|
|
||||||
MOZ_WEBGL_GLX=
|
|
||||||
fi
|
|
||||||
AC_SUBST(LIBOSSO_CFLAGS)
|
|
||||||
AC_SUBST(LIBOSSO_LIBS)
|
|
||||||
|
|
||||||
PKG_CHECK_MODULES(LIBHILDONFM,hildon-fm-2,
|
|
||||||
NS_HILDONFM=1,
|
|
||||||
NS_HILDONFM=)
|
|
||||||
AC_SUBST(LIBHILDONFM_CFLAGS)
|
|
||||||
AC_SUBST(LIBHILDONFM_LIBS)
|
|
||||||
|
|
||||||
dnl ========================================================
|
dnl ========================================================
|
||||||
dnl = faststripe theme
|
dnl = faststripe theme
|
||||||
|
@ -8018,9 +8049,7 @@ AC_SUBST(NS_USE_NATIVE)
|
||||||
AC_SUBST(MOZ_WIDGET_TOOLKIT)
|
AC_SUBST(MOZ_WIDGET_TOOLKIT)
|
||||||
AC_SUBST(MOZ_UPDATE_XTERM)
|
AC_SUBST(MOZ_UPDATE_XTERM)
|
||||||
AC_SUBST(MINIMO)
|
AC_SUBST(MINIMO)
|
||||||
AC_SUBST(MOZ_PLATFORM_HILDON)
|
AC_SUBST(MOZ_PLATFORM_MAEMO)
|
||||||
AC_SUBST(NS_OSSO)
|
|
||||||
AC_SUBST(NS_MAEMO_LOCATION)
|
|
||||||
AC_SUBST(MOZ_AUTH_EXTENSION)
|
AC_SUBST(MOZ_AUTH_EXTENSION)
|
||||||
AC_SUBST(MOZ_MATHML)
|
AC_SUBST(MOZ_MATHML)
|
||||||
AC_SUBST(MOZ_PERMISSIONS)
|
AC_SUBST(MOZ_PERMISSIONS)
|
||||||
|
|
|
@ -59,16 +59,15 @@ CPPSRCS = \
|
||||||
|
|
||||||
ifdef MOZ_WEBGL
|
ifdef MOZ_WEBGL
|
||||||
|
|
||||||
ifeq (1_1,$(MOZ_X11)_$(NS_OSSO))
|
ifdef MOZ_X11
|
||||||
|
ifdef MOZ_PLATFORM_MAEMO
|
||||||
WEBGL_PLATFORM = EGL
|
WEBGL_PLATFORM = EGL
|
||||||
DEFINES += -DUSE_GLES2
|
DEFINES += -DUSE_GLES2
|
||||||
endif
|
else
|
||||||
|
|
||||||
ifeq (1_,$(MOZ_X11)_$(NS_OSSO))
|
|
||||||
WEBGL_PLATFORM = GLX
|
WEBGL_PLATFORM = GLX
|
||||||
EXTRA_DSO_LIBS += X11
|
EXTRA_DSO_LIBS += X11
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
|
ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
|
||||||
ifdef WINCE
|
ifdef WINCE
|
||||||
|
|
|
@ -163,7 +163,7 @@ nsGLPbufferEGL::Init(mozilla::WebGLContext *priv)
|
||||||
{
|
{
|
||||||
mPriv = priv;
|
mPriv = priv;
|
||||||
|
|
||||||
#ifdef NS_OSSO
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
// Maemo has missing DSO dependencies on their OpenGL libraries;
|
// Maemo has missing DSO dependencies on their OpenGL libraries;
|
||||||
// so ensure that the prerequisite libs are loaded in the process
|
// so ensure that the prerequisite libs are loaded in the process
|
||||||
// before loading GL. An alternate approach is to use LD_PRELOAD.
|
// before loading GL. An alternate approach is to use LD_PRELOAD.
|
||||||
|
@ -199,7 +199,7 @@ nsGLPbufferEGL::Init(mozilla::WebGLContext *priv)
|
||||||
|
|
||||||
gEGLWrap.fBindAPI (EGL_OPENGL_ES_API);
|
gEGLWrap.fBindAPI (EGL_OPENGL_ES_API);
|
||||||
|
|
||||||
#if defined(MOZ_X11) && defined(NS_OSSO)
|
#if defined(MOZ_X11) && defined(MOZ_PLATFORM_MAEMO)
|
||||||
EGLint attribs[] = {
|
EGLint attribs[] = {
|
||||||
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
|
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
|
||||||
EGL_SURFACE_TYPE, EGL_PIXMAP_BIT,
|
EGL_SURFACE_TYPE, EGL_PIXMAP_BIT,
|
||||||
|
@ -477,7 +477,7 @@ nsGLPbufferEGL::SwapBuffers()
|
||||||
gfxASurface*
|
gfxASurface*
|
||||||
nsGLPbufferEGL::ThebesSurface()
|
nsGLPbufferEGL::ThebesSurface()
|
||||||
{
|
{
|
||||||
#if defined(MOZ_X11) && defined(NS_OSSO)
|
#if defined(MOZ_X11) && defined(MOZ_PLATFORM_MAEMO)
|
||||||
if (getenv("IMAGE"))
|
if (getenv("IMAGE"))
|
||||||
return mThebesSurface;
|
return mThebesSurface;
|
||||||
return mXlibSurface;
|
return mXlibSurface;
|
||||||
|
|
|
@ -63,9 +63,9 @@ class imgIContainer;
|
||||||
class nsDOMDataTransfer;
|
class nsDOMDataTransfer;
|
||||||
|
|
||||||
// mac uses click-hold context menus, a holdover from 4.x
|
// mac uses click-hold context menus, a holdover from 4.x
|
||||||
// touch screens (like hildon) could use this also,
|
// touch screens (like maemo) could use this also,
|
||||||
// perhaps we should move to NS_TOUCHSCREEN
|
// perhaps we should move to NS_TOUCHSCREEN
|
||||||
#if defined(XP_MACOSX) || defined(MOZ_PLATFORM_HILDON)
|
#if defined(XP_MACOSX) || defined(MOZ_PLATFORM_MAEMO)
|
||||||
#define CLICK_HOLD_CONTEXT_MENUS 1
|
#define CLICK_HOLD_CONTEXT_MENUS 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -115,6 +115,6 @@ ifdef MOZ_ENABLE_DBUS
|
||||||
EXTRA_DSO_LDOPTS += $(MOZ_DBUS_GLIB_LIBS)
|
EXTRA_DSO_LDOPTS += $(MOZ_DBUS_GLIB_LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef MOZ_PLATFORM_HILDON
|
ifdef MOZ_PLATFORM_MAEMO
|
||||||
EXTRA_DSO_LDOPTS += $(LIBHILDONMIME_LIBS)
|
EXTRA_DSO_LDOPTS += $(MOZ_PLATFORM_MAEMO_LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -1009,12 +1009,10 @@ hunspell.hxx
|
||||||
#if MOZ_NATIVE_BZ2==1
|
#if MOZ_NATIVE_BZ2==1
|
||||||
bzlib.h
|
bzlib.h
|
||||||
#endif
|
#endif
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
hildon-uri.h
|
hildon-uri.h
|
||||||
hildon-mime.h
|
hildon-mime.h
|
||||||
hildon-file-chooser-dialog.h
|
hildon-file-chooser-dialog.h
|
||||||
#endif
|
|
||||||
#ifdef NS_OSSO
|
|
||||||
libosso.h
|
libosso.h
|
||||||
osso-mem.h
|
osso-mem.h
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -173,7 +173,7 @@ enum { XKeyPress = KeyPress };
|
||||||
#undef KeyPress
|
#undef KeyPress
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MOZ_PLATFORM_HILDON) && defined(MOZ_WIDGET_GTK2)
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
#define MOZ_COMPOSITED_PLUGINS 1
|
#define MOZ_COMPOSITED_PLUGINS 1
|
||||||
|
|
||||||
#include "gfxXlibSurface.h"
|
#include "gfxXlibSurface.h"
|
||||||
|
@ -416,7 +416,7 @@ public:
|
||||||
return strncmp(GetPluginName(), aPluginName, strlen(aPluginName)) == 0;
|
return strncmp(GetPluginName(), aPluginName, strlen(aPluginName)) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MOZ_PLATFORM_HILDON) && defined(MOZ_WIDGET_GTK2)
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
nsresult SetAbsoluteScreenPosition(nsIDOMElement* element,
|
nsresult SetAbsoluteScreenPosition(nsIDOMElement* element,
|
||||||
nsIDOMClientRect* position,
|
nsIDOMClientRect* position,
|
||||||
nsIDOMClientRect* clip);
|
nsIDOMClientRect* clip);
|
||||||
|
@ -511,7 +511,7 @@ private:
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MOZ_PLATFORM_HILDON) && defined(MOZ_WIDGET_GTK2)
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
|
|
||||||
// On hildon, we attempt to use NPImageExpose which allows us faster
|
// On hildon, we attempt to use NPImageExpose which allows us faster
|
||||||
// painting.
|
// painting.
|
||||||
|
@ -1225,7 +1225,7 @@ nsObjectFrame::SetAbsoluteScreenPosition(nsIDOMElement* element,
|
||||||
nsIDOMClientRect* position,
|
nsIDOMClientRect* position,
|
||||||
nsIDOMClientRect* clip)
|
nsIDOMClientRect* clip)
|
||||||
{
|
{
|
||||||
#if defined(MOZ_PLATFORM_HILDON) && defined(MOZ_WIDGET_GTK2)
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
if (!mInstanceOwner)
|
if (!mInstanceOwner)
|
||||||
return NS_ERROR_NOT_AVAILABLE;
|
return NS_ERROR_NOT_AVAILABLE;
|
||||||
return mInstanceOwner->SetAbsoluteScreenPosition(element, position, clip);
|
return mInstanceOwner->SetAbsoluteScreenPosition(element, position, clip);
|
||||||
|
@ -2137,7 +2137,7 @@ GetMIMEType(nsIPluginInstance *aPluginInstance)
|
||||||
static PRBool
|
static PRBool
|
||||||
DoDelayedStop(nsPluginInstanceOwner *aInstanceOwner, PRBool aDelayedStop)
|
DoDelayedStop(nsPluginInstanceOwner *aInstanceOwner, PRBool aDelayedStop)
|
||||||
{
|
{
|
||||||
#if defined(MOZ_PLATFORM_HILDON) && defined(MOZ_WIDGET_GTK2)
|
#if (MOZ_PLATFORM_MAEMO==5)
|
||||||
// Don't delay stop on Maemo/Hildon (bug 530739).
|
// Don't delay stop on Maemo/Hildon (bug 530739).
|
||||||
if (aDelayedStop && aInstanceOwner->MatchPluginName("Shockwave Flash"))
|
if (aDelayedStop && aInstanceOwner->MatchPluginName("Shockwave Flash"))
|
||||||
return PR_FALSE;
|
return PR_FALSE;
|
||||||
|
@ -2455,7 +2455,7 @@ nsPluginInstanceOwner::nsPluginInstanceOwner()
|
||||||
mLastPoint = nsIntPoint(0,0);
|
mLastPoint = nsIntPoint(0,0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MOZ_PLATFORM_HILDON) && defined(MOZ_WIDGET_GTK2)
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
mPluginSize = nsIntSize(0,0);
|
mPluginSize = nsIntSize(0,0);
|
||||||
mXlibSurfGC = None;
|
mXlibSurfGC = None;
|
||||||
mBlitWindow = nsnull;
|
mBlitWindow = nsnull;
|
||||||
|
@ -2525,7 +2525,7 @@ nsPluginInstanceOwner::~nsPluginInstanceOwner()
|
||||||
mInstance->InvalidateOwner();
|
mInstance->InvalidateOwner();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MOZ_PLATFORM_HILDON) && defined(MOZ_WIDGET_GTK2)
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
ReleaseXShm();
|
ReleaseXShm();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -2737,7 +2737,7 @@ NS_IMETHODIMP nsPluginInstanceOwner::InvalidateRect(NPRect *invalidRect)
|
||||||
if (!mObjectFrame || !invalidRect || !mWidgetVisible)
|
if (!mObjectFrame || !invalidRect || !mWidgetVisible)
|
||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
|
|
||||||
#if defined(MOZ_PLATFORM_HILDON) && defined(MOZ_WIDGET_GTK2)
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
PRBool simpleImageRender = PR_FALSE;
|
PRBool simpleImageRender = PR_FALSE;
|
||||||
mInstance->GetValueFromPlugin(NPPVpluginWindowlessLocalBool,
|
mInstance->GetValueFromPlugin(NPPVpluginWindowlessLocalBool,
|
||||||
&simpleImageRender);
|
&simpleImageRender);
|
||||||
|
@ -4871,7 +4871,7 @@ void nsPluginInstanceOwner::Paint(gfxContext* aContext,
|
||||||
if (!mInstance || !mObjectFrame)
|
if (!mInstance || !mObjectFrame)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#if defined(MOZ_PLATFORM_HILDON) && defined(MOZ_WIDGET_GTK2)
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
// through to be able to paint the context passed in. This allows
|
// through to be able to paint the context passed in. This allows
|
||||||
// us to handle plugins that do not self invalidate (slowly, but
|
// us to handle plugins that do not self invalidate (slowly, but
|
||||||
// accurately), and it allows us to reduce flicker.
|
// accurately), and it allows us to reduce flicker.
|
||||||
|
@ -4960,7 +4960,7 @@ DepthOfVisual(const Screen* screen, const Visual* visual)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MOZ_PLATFORM_HILDON) && defined(MOZ_WIDGET_GTK2)
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
|
|
||||||
static GdkWindow* GetClosestWindow(nsIDOMElement *element)
|
static GdkWindow* GetClosestWindow(nsIDOMElement *element)
|
||||||
{
|
{
|
||||||
|
@ -5651,7 +5651,7 @@ void nsPluginInstanceOwner::SetPluginHost(nsIPluginHost* aHost)
|
||||||
mPluginHost = aHost;
|
mPluginHost = aHost;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MOZ_PLATFORM_HILDON) && defined(MOZ_WIDGET_GTK2)
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
PRBool nsPluginInstanceOwner::UpdateVisibility(PRBool aVisible)
|
PRBool nsPluginInstanceOwner::UpdateVisibility(PRBool aVisible)
|
||||||
{
|
{
|
||||||
// NOTE: Death grip must be held by caller.
|
// NOTE: Death grip must be held by caller.
|
||||||
|
@ -5815,7 +5815,7 @@ void nsPluginInstanceOwner::FixUpURLS(const nsString &name, nsAString &value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MOZ_PLATFORM_HILDON) && defined(MOZ_WIDGET_GTK2)
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
nsresult
|
nsresult
|
||||||
nsPluginInstanceOwner::SetAbsoluteScreenPosition(nsIDOMElement* element,
|
nsPluginInstanceOwner::SetAbsoluteScreenPosition(nsIDOMElement* element,
|
||||||
nsIDOMClientRect* position,
|
nsIDOMClientRect* position,
|
||||||
|
|
|
@ -338,7 +338,7 @@ typedef enum {
|
||||||
, NPPVpluginEventModel = 1001
|
, NPPVpluginEventModel = 1001
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
, NPPVpluginWindowlessLocalBool = 2002
|
, NPPVpluginWindowlessLocalBool = 2002
|
||||||
#endif
|
#endif
|
||||||
} NPPVariable;
|
} NPPVariable;
|
||||||
|
@ -383,7 +383,7 @@ typedef enum {
|
||||||
#endif
|
#endif
|
||||||
, NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa event model */
|
, NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa event model */
|
||||||
#endif
|
#endif
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
, NPNVSupportsWindowlessLocal = 2002
|
, NPNVSupportsWindowlessLocal = 2002
|
||||||
#endif
|
#endif
|
||||||
} NPNVariable;
|
} NPNVariable;
|
||||||
|
|
|
@ -103,7 +103,7 @@ public:
|
||||||
SetPluginInstance(aPluginInstance);
|
SetPluginInstance(aPluginInstance);
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
#if defined(MOZ_PLATFORM_HILDON) && defined(MOZ_WIDGET_GTK2)
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
#define MOZ_COMPOSITED_PLUGINS
|
#define MOZ_COMPOSITED_PLUGINS
|
||||||
#endif
|
#endif
|
||||||
#ifdef MOZ_COMPOSITED_PLUGINS
|
#ifdef MOZ_COMPOSITED_PLUGINS
|
||||||
|
|
|
@ -2139,7 +2139,7 @@ _getvalue(NPP npp, NPNVariable variable, void *result)
|
||||||
return NPERR_GENERIC_ERROR;
|
return NPERR_GENERIC_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
case NPNVSupportsWindowlessLocal: {
|
case NPNVSupportsWindowlessLocal: {
|
||||||
*(NPBool*)result = PR_TRUE;
|
*(NPBool*)result = PR_TRUE;
|
||||||
return NPERR_NO_ERROR;
|
return NPERR_NO_ERROR;
|
||||||
|
@ -2277,7 +2277,7 @@ _setvalue(NPP npp, NPPVariable variable, void *result)
|
||||||
return inst->SetWindowless(bWindowless);
|
return inst->SetWindowless(bWindowless);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
case NPPVpluginWindowlessLocalBool: {
|
case NPPVpluginWindowlessLocalBool: {
|
||||||
NPBool bWindowlessLocal = (result != nsnull);
|
NPBool bWindowlessLocal = (result != nsnull);
|
||||||
return inst->SetWindowlessLocal(bWindowlessLocal);
|
return inst->SetWindowlessLocal(bWindowlessLocal);
|
||||||
|
|
|
@ -1392,7 +1392,7 @@ NS_IMETHODIMP nsNPAPIPluginInstance::HandleEvent(void* event, PRBool* handled)
|
||||||
|
|
||||||
NS_IMETHODIMP nsNPAPIPluginInstance::GetValueFromPlugin(NPPVariable variable, void* value)
|
NS_IMETHODIMP nsNPAPIPluginInstance::GetValueFromPlugin(NPPVariable variable, void* value)
|
||||||
{
|
{
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
// The maemo flash plugin does not remember this. It sets the
|
// The maemo flash plugin does not remember this. It sets the
|
||||||
// value, but doesn't support the get value.
|
// value, but doesn't support the get value.
|
||||||
if (variable == NPPVpluginWindowlessLocalBool) {
|
if (variable == NPPVpluginWindowlessLocalBool) {
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
#include <gdk/gdkx.h>
|
#include <gdk/gdkx.h>
|
||||||
#include <gdk/gdk.h>
|
#include <gdk/gdk.h>
|
||||||
|
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
#define MOZ_COMPOSITED_PLUGINS
|
#define MOZ_COMPOSITED_PLUGINS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -1170,7 +1170,7 @@ nsDownloadManager::GetDefaultDownloadsDirectory(nsILocalFile **aResult)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#elif defined(XP_UNIX)
|
#elif defined(XP_UNIX)
|
||||||
#if defined(NS_OSSO)
|
#if defined(MOZ_PLATFORM_MAEMO)
|
||||||
// As maemo does not follow the XDG "standard" (as usually desktop
|
// As maemo does not follow the XDG "standard" (as usually desktop
|
||||||
// Linux distros do) neither has a working $HOME/Desktop folder
|
// Linux distros do) neither has a working $HOME/Desktop folder
|
||||||
// for us to fallback into, "$HOME/MyDocs/.documents/" is the folder
|
// for us to fallback into, "$HOME/MyDocs/.documents/" is the folder
|
||||||
|
|
|
@ -197,18 +197,14 @@ EXTRA_DSO_LDOPTS += \
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef MOZ_PLATFORM_HILDON
|
ifdef MOZ_PLATFORM_MAEMO
|
||||||
EXTRA_DSO_LDOPTS += $(LIBHILDONMIME_LIBS) $(LIBHILDONFM_LIBS)
|
EXTRA_DSO_LDOPTS += $(MOZ_PLATFORM_MAEMO_LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef MOZ_ENABLE_LIBCONIC
|
ifdef MOZ_ENABLE_LIBCONIC
|
||||||
EXTRA_DSO_LDOPTS += $(LIBCONIC_LIBS)
|
EXTRA_DSO_LDOPTS += $(LIBCONIC_LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef NS_OSSO
|
|
||||||
EXTRA_DSO_LDOPTS += $(LIBOSSO_LIBS)
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef MOZ_ENABLE_DBUS
|
ifdef MOZ_ENABLE_DBUS
|
||||||
EXTRA_DSO_LDOPTS += $(MOZ_DBUS_GLIB_LIBS)
|
EXTRA_DSO_LDOPTS += $(MOZ_DBUS_GLIB_LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
#include <glib-object.h>
|
#include <glib-object.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
#ifdef NS_OSSO
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
struct DBusMessage; /* libosso.h references internals of dbus */
|
struct DBusMessage; /* libosso.h references internals of dbus */
|
||||||
|
|
||||||
#include <dbus/dbus.h>
|
#include <dbus/dbus.h>
|
||||||
|
@ -157,7 +157,7 @@ public:
|
||||||
NS_IMETHOD Stop(PRBool *aResult);
|
NS_IMETHOD Stop(PRBool *aResult);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
#ifdef NS_OSSO
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
osso_context_t *m_osso_context;
|
osso_context_t *m_osso_context;
|
||||||
/* A note about why we need to have m_hw_state:
|
/* A note about why we need to have m_hw_state:
|
||||||
the osso hardware callback does not tell us what changed, just
|
the osso hardware callback does not tell us what changed, just
|
||||||
|
@ -168,7 +168,7 @@ private:
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef NS_OSSO
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
|
|
||||||
static void OssoDisplayCallback(osso_display_state_t state, gpointer data)
|
static void OssoDisplayCallback(osso_display_state_t state, gpointer data)
|
||||||
{
|
{
|
||||||
|
@ -309,7 +309,7 @@ nsNativeAppSupportUnix::Start(PRBool *aRetVal)
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef NS_OSSO
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
/* zero state out. */
|
/* zero state out. */
|
||||||
memset(&m_hw_state, 0, sizeof(osso_hw_state_t));
|
memset(&m_hw_state, 0, sizeof(osso_hw_state_t));
|
||||||
|
|
||||||
|
@ -454,7 +454,7 @@ nsNativeAppSupportUnix::Stop(PRBool *aResult)
|
||||||
NS_ENSURE_ARG(aResult);
|
NS_ENSURE_ARG(aResult);
|
||||||
*aResult = PR_TRUE;
|
*aResult = PR_TRUE;
|
||||||
|
|
||||||
#ifdef NS_OSSO
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
if (m_osso_context) {
|
if (m_osso_context) {
|
||||||
osso_hw_unset_event_cb(m_osso_context, nsnull);
|
osso_hw_unset_event_cb(m_osso_context, nsnull);
|
||||||
osso_rpc_unset_default_cb_f(m_osso_context, OssoDbusCallback, nsnull);
|
osso_rpc_unset_default_cb_f(m_osso_context, OssoDbusCallback, nsnull);
|
||||||
|
|
|
@ -135,7 +135,7 @@ LOCAL_INCLUDES += $(TK_CFLAGS) $(MOZ_DBUS_GLIB_CFLAGS)
|
||||||
EXTRA_DSO_LDOPTS += $(MOZ_DBUS_GLIB_LIBS)
|
EXTRA_DSO_LDOPTS += $(MOZ_DBUS_GLIB_LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef MOZ_PLATFORM_HILDON
|
ifdef MOZ_PLATFORM_MAEMO
|
||||||
ifdef MOZ_ENABLE_GNOMEVFS
|
ifdef MOZ_ENABLE_GNOMEVFS
|
||||||
LOCAL_INCLUDES += $(MOZ_GNOMEVFS_CFLAGS)
|
LOCAL_INCLUDES += $(MOZ_GNOMEVFS_CFLAGS)
|
||||||
EXTRA_DSO_LDOPTS += $(MOZ_GNOMEVFS_LIBS)
|
EXTRA_DSO_LDOPTS += $(MOZ_GNOMEVFS_LIBS)
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
#include "nsIClassInfoImpl.h"
|
#include "nsIClassInfoImpl.h"
|
||||||
#include "nsCOMPtr.h"
|
#include "nsCOMPtr.h"
|
||||||
|
|
||||||
#ifdef NS_OSSO
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
#include <libosso.h>
|
#include <libosso.h>
|
||||||
|
|
||||||
#define APP_LAUNCH_BANNER_SERVICE "com.nokia.hildon-desktop"
|
#define APP_LAUNCH_BANNER_SERVICE "com.nokia.hildon-desktop"
|
||||||
|
@ -157,7 +157,7 @@ nsDBusHandlerApp::LaunchWithURI(nsIURI *aURI,
|
||||||
if (dbus_connection_send(connection, msg, NULL)) {
|
if (dbus_connection_send(connection, msg, NULL)) {
|
||||||
dbus_connection_flush(connection);
|
dbus_connection_flush(connection);
|
||||||
dbus_message_unref(msg);
|
dbus_message_unref(msg);
|
||||||
#ifdef NS_OSSO
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
msg = dbus_message_new_method_call (APP_LAUNCH_BANNER_SERVICE,
|
msg = dbus_message_new_method_call (APP_LAUNCH_BANNER_SERVICE,
|
||||||
APP_LAUNCH_BANNER_METHOD_PATH,
|
APP_LAUNCH_BANNER_METHOD_PATH,
|
||||||
APP_LAUNCH_BANNER_METHOD_INTERFACE,
|
APP_LAUNCH_BANNER_METHOD_INTERFACE,
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
#include <glib-object.h>
|
#include <glib-object.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
#include <libintl.h>
|
#include <libintl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -192,7 +192,7 @@ nsGNOMERegistry::GetFromType(const nsACString& aMIMEType)
|
||||||
else
|
else
|
||||||
gnomeHandlerApp->GetName(name);
|
gnomeHandlerApp->GetName(name);
|
||||||
|
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
// On Maemo/Hildon, GetName ends up calling gnome_vfs_mime_application_get_name,
|
// On Maemo/Hildon, GetName ends up calling gnome_vfs_mime_application_get_name,
|
||||||
// which happens to return a non-localized message-id for the application. To
|
// which happens to return a non-localized message-id for the application. To
|
||||||
// get the localized name for the application, we have to call dgettext with
|
// get the localized name for the application, we have to call dgettext with
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
*
|
*
|
||||||
* ***** END LICENSE BLOCK ***** */
|
* ***** END LICENSE BLOCK ***** */
|
||||||
|
|
||||||
#if defined (MOZ_PLATFORM_HILDON) && defined (MOZ_ENABLE_GNOMEVFS)
|
#if (MOZ_PLATFORM_MAEMO == 5) && defined (MOZ_ENABLE_GNOMEVFS)
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <hildon-uri.h>
|
#include <hildon-uri.h>
|
||||||
#include <hildon-mime.h>
|
#include <hildon-mime.h>
|
||||||
|
@ -57,7 +57,7 @@ nsresult
|
||||||
nsMIMEInfoUnix::LoadUriInternal(nsIURI * aURI)
|
nsMIMEInfoUnix::LoadUriInternal(nsIURI * aURI)
|
||||||
{
|
{
|
||||||
nsresult rv = nsGNOMERegistry::LoadURL(aURI);
|
nsresult rv = nsGNOMERegistry::LoadURL(aURI);
|
||||||
#if defined (MOZ_PLATFORM_HILDON) && defined (MOZ_ENABLE_GNOMEVFS)
|
#if (MOZ_PLATFORM_MAEMO == 5) && defined (MOZ_ENABLE_GNOMEVFS)
|
||||||
if (NS_FAILED(rv)){
|
if (NS_FAILED(rv)){
|
||||||
HildonURIAction *action = hildon_uri_get_default_action(mType.get(), nsnull);
|
HildonURIAction *action = hildon_uri_get_default_action(mType.get(), nsnull);
|
||||||
if (action) {
|
if (action) {
|
||||||
|
@ -90,7 +90,7 @@ nsMIMEInfoUnix::GetHasDefaultHandler(PRBool *_retval)
|
||||||
if (*_retval)
|
if (*_retval)
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
||||||
#if defined (MOZ_PLATFORM_HILDON) && defined (MOZ_ENABLE_GNOMEVFS)
|
#if (MOZ_PLATFORM_MAEMO == 5) && defined (MOZ_ENABLE_GNOMEVFS)
|
||||||
HildonURIAction *action = hildon_uri_get_default_action(mType.get(), nsnull);
|
HildonURIAction *action = hildon_uri_get_default_action(mType.get(), nsnull);
|
||||||
if (action) {
|
if (action) {
|
||||||
*_retval = PR_TRUE;
|
*_retval = PR_TRUE;
|
||||||
|
@ -109,7 +109,7 @@ nsMIMEInfoUnix::LaunchDefaultWithFile(nsIFile *aFile)
|
||||||
nsCAutoString nativePath;
|
nsCAutoString nativePath;
|
||||||
aFile->GetNativePath(nativePath);
|
aFile->GetNativePath(nativePath);
|
||||||
|
|
||||||
#if defined (MOZ_PLATFORM_HILDON) && defined (MOZ_ENABLE_GNOMEVFS)
|
#if (MOZ_PLATFORM_MAEMO == 5) && defined (MOZ_ENABLE_GNOMEVFS)
|
||||||
if(NS_SUCCEEDED(LaunchDefaultWithDBus(PromiseFlatCString(nativePath).get())))
|
if(NS_SUCCEEDED(LaunchDefaultWithDBus(PromiseFlatCString(nativePath).get())))
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
#endif
|
#endif
|
||||||
|
@ -150,7 +150,7 @@ nsMIMEInfoUnix::LaunchDefaultWithFile(nsIFile *aFile)
|
||||||
return LaunchWithIProcess(mDefaultApplication, nativePath);
|
return LaunchWithIProcess(mDefaultApplication, nativePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined (MOZ_PLATFORM_HILDON) && defined (MOZ_ENABLE_GNOMEVFS)
|
#if (MOZ_PLATFORM_MAEMO == 5) && defined (MOZ_ENABLE_GNOMEVFS)
|
||||||
|
|
||||||
/* This method tries to launch the associated default handler for the given
|
/* This method tries to launch the associated default handler for the given
|
||||||
* mime/file via hildon specific APIs (in this case hildon_mime_open_file*
|
* mime/file via hildon specific APIs (in this case hildon_mime_open_file*
|
||||||
|
|
|
@ -57,7 +57,7 @@ protected:
|
||||||
virtual NS_HIDDEN_(nsresult) LoadUriInternal(nsIURI *aURI);
|
virtual NS_HIDDEN_(nsresult) LoadUriInternal(nsIURI *aURI);
|
||||||
|
|
||||||
virtual NS_HIDDEN_(nsresult) LaunchDefaultWithFile(nsIFile *aFile);
|
virtual NS_HIDDEN_(nsresult) LaunchDefaultWithFile(nsIFile *aFile);
|
||||||
#if defined (MOZ_PLATFORM_HILDON) && defined (MOZ_ENABLE_GNOMEVFS)
|
#if (MOZ_PLATFORM_MAEMO == 5) && defined (MOZ_ENABLE_GNOMEVFS)
|
||||||
nsresult LaunchDefaultWithDBus(const char *aFilePath);
|
nsresult LaunchDefaultWithDBus(const char *aFilePath);
|
||||||
NS_IMETHOD GetPossibleApplicationHandlers(nsIMutableArray * *aPossibleAppHandlers);
|
NS_IMETHOD GetPossibleApplicationHandlers(nsIMutableArray * *aPossibleAppHandlers);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1211,7 +1211,7 @@ nsresult nsOSHelperAppService::OSProtocolHandlerExists(const char * aProtocolSch
|
||||||
#ifdef MOZ_WIDGET_GTK2
|
#ifdef MOZ_WIDGET_GTK2
|
||||||
// Check the GConf registry for a protocol handler
|
// Check the GConf registry for a protocol handler
|
||||||
*aHandlerExists = nsGNOMERegistry::HandlerExists(aProtocolScheme);
|
*aHandlerExists = nsGNOMERegistry::HandlerExists(aProtocolScheme);
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
*aHandlerExists = nsMIMEInfoUnix::HandlerExists(aProtocolScheme);
|
*aHandlerExists = nsMIMEInfoUnix::HandlerExists(aProtocolScheme);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -118,7 +118,7 @@ EXTRA_DSO_LDOPTS += \
|
||||||
$(QCMS_LIBS) \
|
$(QCMS_LIBS) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
ifdef MOZ_PLATFORM_HILDON
|
ifdef MOZ_PLATFORM_MAEMO
|
||||||
ifdef MOZ_ENABLE_GCONF
|
ifdef MOZ_ENABLE_GCONF
|
||||||
EXTRA_DSO_LDOPTS += $(MOZ_GCONF_LIBS)
|
EXTRA_DSO_LDOPTS += $(MOZ_GCONF_LIBS)
|
||||||
endif
|
endif
|
||||||
|
@ -145,7 +145,7 @@ include $(topsrcdir)/config/rules.mk
|
||||||
CFLAGS += $(MOZ_GTK2_CFLAGS) $(MOZ_STARTUP_NOTIFICATION_CFLAGS)
|
CFLAGS += $(MOZ_GTK2_CFLAGS) $(MOZ_STARTUP_NOTIFICATION_CFLAGS)
|
||||||
CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(MOZ_GTK2_CFLAGS) $(MOZ_STARTUP_NOTIFICATION_CFLAGS)
|
CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(MOZ_GTK2_CFLAGS) $(MOZ_STARTUP_NOTIFICATION_CFLAGS)
|
||||||
|
|
||||||
ifdef MOZ_PLATFORM_HILDON
|
ifdef MOZ_PLATFORM_MAEMO
|
||||||
ifdef MOZ_ENABLE_GCONF
|
ifdef MOZ_ENABLE_GCONF
|
||||||
CXXFLAGS += $(MOZ_GCONF_CFLAGS)
|
CXXFLAGS += $(MOZ_GCONF_CFLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -84,7 +84,7 @@ extern "C" {
|
||||||
#define MOZ_CONAINTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MOZ_CONTAINER_TYPE, MozContainerClass))
|
#define MOZ_CONAINTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MOZ_CONTAINER_TYPE, MozContainerClass))
|
||||||
|
|
||||||
#if (GTK_CHECK_VERSION(2, 12, 0) || \
|
#if (GTK_CHECK_VERSION(2, 12, 0) || \
|
||||||
(GTK_CHECK_VERSION(2, 10, 0) && defined(MOZ_PLATFORM_HILDON)))
|
(GTK_CHECK_VERSION(2, 10, 0) && defined(MOZ_PLATFORM_MAEMO)))
|
||||||
#define HAVE_GTK_MOTION_HINTS
|
#define HAVE_GTK_MOTION_HINTS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
#include "nsFilePicker.h"
|
#include "nsFilePicker.h"
|
||||||
#include "nsAccessibilityHelper.h"
|
#include "nsAccessibilityHelper.h"
|
||||||
|
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
#include <hildon-fm-2/hildon/hildon-file-chooser-dialog.h>
|
#include <hildon-fm-2/hildon/hildon-file-chooser-dialog.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -433,7 +433,7 @@ nsFilePicker::Show(PRInt16 *aReturn)
|
||||||
GtkFileChooserAction action = GetGtkFileChooserAction(mMode);
|
GtkFileChooserAction action = GetGtkFileChooserAction(mMode);
|
||||||
const gchar *accept_button = (action == GTK_FILE_CHOOSER_ACTION_SAVE)
|
const gchar *accept_button = (action == GTK_FILE_CHOOSER_ACTION_SAVE)
|
||||||
? GTK_STOCK_SAVE : GTK_STOCK_OPEN;
|
? GTK_STOCK_SAVE : GTK_STOCK_OPEN;
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
GtkWidget *file_chooser =
|
GtkWidget *file_chooser =
|
||||||
hildon_file_chooser_dialog_new_with_properties(parent_widget,
|
hildon_file_chooser_dialog_new_with_properties(parent_widget,
|
||||||
"action", action,
|
"action", action,
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
#include "gtkdrawing.h"
|
#include "gtkdrawing.h"
|
||||||
|
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
#include "nsIServiceManager.h"
|
#include "nsIServiceManager.h"
|
||||||
#include "nsIPropertyBag2.h"
|
#include "nsIPropertyBag2.h"
|
||||||
#include "nsLiteralString.h"
|
#include "nsLiteralString.h"
|
||||||
|
@ -582,7 +582,7 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricID aID, PRInt32 & aMetric)
|
||||||
res = NS_ERROR_NOT_IMPLEMENTED;
|
res = NS_ERROR_NOT_IMPLEMENTED;
|
||||||
break;
|
break;
|
||||||
case eMetric_TouchEnabled:
|
case eMetric_TouchEnabled:
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
// All Hildon devices are touch-enabled
|
// All Hildon devices are touch-enabled
|
||||||
aMetric = 1;
|
aMetric = 1;
|
||||||
#else
|
#else
|
||||||
|
@ -591,7 +591,7 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricID aID, PRInt32 & aMetric)
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case eMetric_MaemoClassic:
|
case eMetric_MaemoClassic:
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
{
|
{
|
||||||
aMetric = 0;
|
aMetric = 0;
|
||||||
nsCOMPtr<nsIPropertyBag2> infoService(do_GetService("@mozilla.org/system-info;1"));
|
nsCOMPtr<nsIPropertyBag2> infoService(do_GetService("@mozilla.org/system-info;1"));
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
*
|
*
|
||||||
* ***** END LICENSE BLOCK ***** */
|
* ***** END LICENSE BLOCK ***** */
|
||||||
|
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
#define MAEMO_CHANGES
|
#define MAEMO_CHANGES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -305,7 +305,7 @@ static GdkEventKey *gKeyEvent = NULL;
|
||||||
static PRBool gKeyEventCommitted = PR_FALSE;
|
static PRBool gKeyEventCommitted = PR_FALSE;
|
||||||
static PRBool gKeyEventChanged = PR_FALSE;
|
static PRBool gKeyEventChanged = PR_FALSE;
|
||||||
static PRBool gIMESuppressCommit = PR_FALSE;
|
static PRBool gIMESuppressCommit = PR_FALSE;
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
static PRBool gIMEVirtualKeyboardOpened = PR_FALSE;
|
static PRBool gIMEVirtualKeyboardOpened = PR_FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -3500,7 +3500,7 @@ nsWindow::OnVisibilityNotifyEvent(GtkWidget *aWidget,
|
||||||
|
|
||||||
mIsFullyObscured = PR_FALSE;
|
mIsFullyObscured = PR_FALSE;
|
||||||
|
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
#ifdef USE_XIM
|
#ifdef USE_XIM
|
||||||
// In Hildon/Maemo, a browser window will get into 'patially visible' state wheneven an
|
// In Hildon/Maemo, a browser window will get into 'patially visible' state wheneven an
|
||||||
// autocomplete feature is dropped down (from urlbar or from an entry form completion),
|
// autocomplete feature is dropped down (from urlbar or from an entry form completion),
|
||||||
|
@ -3510,7 +3510,7 @@ nsWindow::OnVisibilityNotifyEvent(GtkWidget *aWidget,
|
||||||
// to this it until the pointer is ungrabbed.
|
// to this it until the pointer is ungrabbed.
|
||||||
if(!gIMEVirtualKeyboardOpened)
|
if(!gIMEVirtualKeyboardOpened)
|
||||||
#endif // USE_XIM
|
#endif // USE_XIM
|
||||||
#endif // MOZ_PLATFORM_HILDON
|
#endif // MOZ_PLATFORM_MAEMO
|
||||||
// if we have to retry the grab, retry it.
|
// if we have to retry the grab, retry it.
|
||||||
EnsureGrabs();
|
EnsureGrabs();
|
||||||
break;
|
break;
|
||||||
|
@ -6853,7 +6853,7 @@ nsWindow::IMEGetContext()
|
||||||
static PRBool
|
static PRBool
|
||||||
IsIMEEnabledState(PRUint32 aState)
|
IsIMEEnabledState(PRUint32 aState)
|
||||||
{
|
{
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
return aState == nsIWidget::IME_STATUS_ENABLED ||
|
return aState == nsIWidget::IME_STATUS_ENABLED ||
|
||||||
aState == nsIWidget::IME_STATUS_PLUGIN ||
|
aState == nsIWidget::IME_STATUS_PLUGIN ||
|
||||||
aState == nsIWidget::IME_STATUS_PASSWORD;
|
aState == nsIWidget::IME_STATUS_PASSWORD;
|
||||||
|
@ -7061,7 +7061,7 @@ nsWindow::SetIMEEnabled(PRUint32 aState)
|
||||||
// Even when aState is not PR_TRUE, we need to set IME focus.
|
// Even when aState is not PR_TRUE, we need to set IME focus.
|
||||||
// Because some IMs are updating the status bar of them in this time.
|
// Because some IMs are updating the status bar of them in this time.
|
||||||
focusedWin->IMESetFocus();
|
focusedWin->IMESetFocus();
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
if (mIMEData->mEnabled) {
|
if (mIMEData->mEnabled) {
|
||||||
// It is not desired that the hildon's autocomplete mechanism displays
|
// It is not desired that the hildon's autocomplete mechanism displays
|
||||||
// user previous entered passwds, so lets make completions invisible
|
// user previous entered passwds, so lets make completions invisible
|
||||||
|
@ -7437,7 +7437,7 @@ IM_get_input_context(nsWindow *aWindow)
|
||||||
data->mEnabled == nsIWidget::IME_STATUS_PLUGIN)
|
data->mEnabled == nsIWidget::IME_STATUS_PLUGIN)
|
||||||
return data->mContext;
|
return data->mContext;
|
||||||
if (data->mEnabled == nsIWidget::IME_STATUS_PASSWORD)
|
if (data->mEnabled == nsIWidget::IME_STATUS_PASSWORD)
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
return data->mContext;
|
return data->mContext;
|
||||||
#else
|
#else
|
||||||
return data->mSimpleContext;
|
return data->mSimpleContext;
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined (NS_OSSO)
|
#if defined(MOZ_PLATFORM_MAEMO)
|
||||||
#include <osso-mem.h>
|
#include <osso-mem.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -128,7 +128,7 @@ nsMemoryImpl::IsLowMemory(PRBool *result)
|
||||||
GlobalMemoryStatusEx(&stat);
|
GlobalMemoryStatusEx(&stat);
|
||||||
*result = (stat.ullAvailPageFile < kRequiredMemory) &&
|
*result = (stat.ullAvailPageFile < kRequiredMemory) &&
|
||||||
((float)stat.ullAvailPageFile / stat.ullTotalPageFile) < 0.1;
|
((float)stat.ullAvailPageFile / stat.ullTotalPageFile) < 0.1;
|
||||||
#elif defined(NS_OSSO)
|
#elif defined(MOZ_PLATFORM_MAEMO)
|
||||||
static int osso_highmark_fd = -1;
|
static int osso_highmark_fd = -1;
|
||||||
if (osso_highmark_fd == -1) {
|
if (osso_highmark_fd == -1) {
|
||||||
osso_highmark_fd = open (kHighMark, O_RDONLY);
|
osso_highmark_fd = open (kHighMark, O_RDONLY);
|
||||||
|
|
|
@ -100,7 +100,7 @@ nsSystemInfo::Init()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#ifdef MOZ_PLATFORM_MAEMO
|
||||||
char * line = nsnull;
|
char * line = nsnull;
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
ssize_t read;
|
ssize_t read;
|
||||||
|
|
|
@ -170,8 +170,8 @@ endif
|
||||||
|
|
||||||
ifneq (,$(filter gtk2,$(MOZ_WIDGET_TOOLKIT)))
|
ifneq (,$(filter gtk2,$(MOZ_WIDGET_TOOLKIT)))
|
||||||
EXTRA_DSO_LDOPTS += $(MOZ_GTK2_LIBS)
|
EXTRA_DSO_LDOPTS += $(MOZ_GTK2_LIBS)
|
||||||
ifdef MOZ_PLATFORM_HILDON
|
ifdef MOZ_PLATFORM_MAEMO
|
||||||
EXTRA_DSO_LDOPTS += $(LIBHILDONMIME_LIBS)
|
EXTRA_DSO_LDOPTS += $(MOZ_PLATFORM_MAEMO_LIBS)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -199,8 +199,8 @@ endif
|
||||||
|
|
||||||
LOCAL_INCLUDES = -I..
|
LOCAL_INCLUDES = -I..
|
||||||
|
|
||||||
ifdef MOZ_PLATFORM_HILDON
|
ifeq ($(MOZ_PLATFORM_MAEMO), 5)
|
||||||
CFLAGS += $(MOZ_DBUS_GLIB_CFLAGS) $(LIBHILDONMIME_CFLAGS)
|
CFLAGS += $(MOZ_DBUS_GLIB_CFLAGS) $(MOZ_PLATFORM_MAEMO_CFLAGS)
|
||||||
CXXFLAGS += $(MOZ_DBUS_GLIB_CFLAGS) $(LIBHILDONMIME_CFLAGS)
|
CXXFLAGS += $(MOZ_DBUS_GLIB_CFLAGS) $(MOZ_PLATFORM_MAEMO_CFLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -490,7 +490,7 @@ GetUnixXDGUserDirectory(SystemDirectories aSystemDirectory,
|
||||||
|
|
||||||
rv = file->AppendNative(NS_LITERAL_CSTRING("Desktop"));
|
rv = file->AppendNative(NS_LITERAL_CSTRING("Desktop"));
|
||||||
}
|
}
|
||||||
#if defined(NS_OSSO)
|
#if defined(MOZ_PLATFORM_MAEMO)
|
||||||
// "MYDOCSDIR" is exported to point to "/home/user/MyDocs" in maemo.
|
// "MYDOCSDIR" is exported to point to "/home/user/MyDocs" in maemo.
|
||||||
else if (Unix_XDG_Documents == aSystemDirectory) {
|
else if (Unix_XDG_Documents == aSystemDirectory) {
|
||||||
|
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
#include "nsIGnomeVFSService.h"
|
#include "nsIGnomeVFSService.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#if (MOZ_PLATFORM_MAEMO == 5)
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <hildon-uri.h>
|
#include <hildon-uri.h>
|
||||||
#include <hildon-mime.h>
|
#include <hildon-mime.h>
|
||||||
|
@ -1746,7 +1746,7 @@ NS_IMETHODIMP
|
||||||
nsLocalFile::Launch()
|
nsLocalFile::Launch()
|
||||||
{
|
{
|
||||||
#ifdef MOZ_WIDGET_GTK2
|
#ifdef MOZ_WIDGET_GTK2
|
||||||
#ifdef MOZ_PLATFORM_HILDON
|
#if (MOZ_PLATFORM_MAEMO==5)
|
||||||
const PRInt32 kHILDON_SUCCESS = 1;
|
const PRInt32 kHILDON_SUCCESS = 1;
|
||||||
DBusError err;
|
DBusError err;
|
||||||
dbus_error_init(&err);
|
dbus_error_init(&err);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче